Apache CXF API

org.apache.cxf.ws.rm.persistence
Class RMMessage

java.lang.Object
  extended by org.apache.cxf.ws.rm.persistence.RMMessage

public class RMMessage
extends Object


Constructor Summary
RMMessage()
           
 
Method Summary
 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.
 long 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RMMessage

public RMMessage()
Method Detail

getMessageNumber

public long getMessageNumber()
Returns the message number of the message within its sequence.

Returns:
the message number

setMessageNumber

public void setMessageNumber(long mn)
Sets the message number of the message within its sequence.

Parameters:
messageNumber - the message number

getContent

public byte[] getContent()
Deprecated. 

Returns the content of the message as an input stream.

Returns:
the content

setContent

public void setContent(byte[] c)
Deprecated. 

Sets the message content as an input stream.

Parameters:
content - the message content

setContent

public void setContent(InputStream in)
                throws IOException
Sets the message content using the input stream.

Parameters:
in -
Throws:
IOException

setContent

public void setContent(CachedOutputStream c)
Sets the message content using the cached output stream.

Parameters:
c -

getTo

public String getTo()
Returns the to address of this message.

Returns:
the to address

setTo

public void setTo(String t)
Sets the to address of this message.

Parameters:
t - the to address

getInputStream

public InputStream getInputStream()
                           throws IOException
Returns the input stream of this message content.

Returns:
Throws:
IOException

getCachedOutputStream

public CachedOutputStream getCachedOutputStream()
Returns the associated cached output stream.

Returns:

getSize

public long getSize()
Returns the length of the message content in bytes.

Returns:

Apache CXF API

Apache CXF