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
 List<InputStream> getAttachments()
          Returns the list of attachments.
 InputStream getContent()
          Returns the input stream of this message content.
 long getMessageNumber()
          Returns the message number of the message within its sequence.
 String getTo()
          Returns the to address of this message.
 void setAttachments(List<InputStream> attaches)
          Set the list of attachments.
 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

setContent

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

Parameters:
in -

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

getContent

public InputStream getContent()
Returns the input stream of this message content.

Returns:
Throws:
IOException

getAttachments

public List<InputStream> getAttachments()
Returns the list of attachments.

Returns:
list (non-null)

setAttachments

public void setAttachments(List<InputStream> attaches)
Set the list of attachments.

Parameters:
attaches - (non-null)

Apache CXF API

Apache CXF