01: /**
02: * Licensed to the Apache Software Foundation (ASF) under one
03: * or more contributor license agreements. See the NOTICE file
04: * distributed with this work for additional information
05: * regarding copyright ownership. The ASF licenses this file
06: * to you under the Apache License, Version 2.0 (the
07: * "License"); you may not use this file except in compliance
08: * with the License. You may obtain a copy of the License at
09: *
10: * http://www.apache.org/licenses/LICENSE-2.0
11: *
12: * Unless required by applicable law or agreed to in writing,
13: * software distributed under the License is distributed on an
14: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15: * KIND, either express or implied. See the License for the
16: * specific language governing permissions and limitations
17: * under the License.
18: */package org.apache.cxf.ws.rm.persistence;
19:
20: import java.math.BigInteger;
21:
22: public class RMMessage {
23:
24: private byte[] content;
25: private BigInteger messageNumber;
26: private String to;
27:
28: /**
29: * Returns the message number of the message within its sequence.
30: * @return the message number
31: */
32: public BigInteger getMessageNumber() {
33: return messageNumber;
34: }
35:
36: /**
37: * Sets the message number of the message within its sequence.
38: * @param messageNumber the message number
39: */
40: public void setMessageNumber(BigInteger mn) {
41: messageNumber = mn;
42: }
43:
44: /**
45: * Returns the content of the message as an input stream.
46: * @return the content
47: */
48: public byte[] getContent() {
49: return content;
50: }
51:
52: /**
53: * Sets the message content as an input stream.
54: * @param content the message content
55: */
56: public void setContent(byte[] c) {
57: content = c;
58: }
59:
60: /**
61: * Returns the to address of this message.
62: * @return the to address
63: */
64: public String getTo() {
65: return to;
66: }
67:
68: /**
69: * Sets the to address of this message.
70: * @param t the to address
71: */
72: public void setTo(String t) {
73: to = t;
74: }
75:
76: }
|