public class RMMessage extends Object
Constructor and Description |
---|
RMMessage() |
Modifier and Type | Method and Description |
---|---|
CachedOutputStream |
getCachedOutputStream()
Returns the associated cached output stream.
|
byte[] |
getContent()
Deprecated.
|
InputStream |
getInputStream()
Returns the input stream of this message content.
|
long |
getMessageNumber()
Returns the message number of the message within its sequence.
|
int |
getSize()
Returns the length of the message content in bytes.
|
String |
getTo()
Returns the to address of this message.
|
void |
setContent(byte[] c)
Deprecated.
|
void |
setContent(CachedOutputStream c)
Sets the message content using the cached output stream.
|
void |
setContent(InputStream in)
Sets the message content using the input stream.
|
void |
setMessageNumber(long mn)
Sets the message number of the message within its sequence.
|
void |
setTo(String t)
Sets the to address of this message.
|
public long getMessageNumber()
public void setMessageNumber(long mn)
messageNumber
- the message numberpublic byte[] getContent()
public void setContent(byte[] c)
content
- the message contentpublic void setContent(InputStream in) throws IOException
in
- IOException
public void setContent(CachedOutputStream c)
c
- public String getTo()
public void setTo(String t)
t
- the to addresspublic InputStream getInputStream() throws IOException
IOException
public CachedOutputStream getCachedOutputStream()
public int getSize()
Apache CXF