Package org.apache.cxf.ws.rm.persistence
Class RMMessage
java.lang.Object
org.apache.cxf.ws.rm.persistence.RMMessage
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.not used as the optional attachments are stored in the contentorg.apache.cxf.io.CachedOutputStreamReturns the CachedOutputStream of this message content.Returns the content type of the message contentlonglongReturns the message number of the message within its sequence.getTo()Returns the to address of this message.voidsetAttachments(List<InputStream> attaches) Deprecated.not used as the optional attachments are stored in the contentvoidsetContent(org.apache.cxf.io.CachedOutputStream cos) Sets the message content using the CachedOutputStream.class.voidsetContentType(String contentType) Set the content type of the RMMessagevoidsetCreatedTime(long createdTime) voidsetMessageNumber(long mn) Sets the message number of the message within its sequence.voidSets the to address of this message.
-
Constructor Details
-
RMMessage
public RMMessage()
-
-
Method Details
-
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:
mn- the message number
-
setContent
public void setContent(org.apache.cxf.io.CachedOutputStream cos) Sets the message content using the CachedOutputStream.class.- Parameters:
cos-
-
getTo
Returns the to address of this message.- Returns:
- the to address
-
setTo
Sets the to address of this message.- Parameters:
t- the to address
-
getContent
public org.apache.cxf.io.CachedOutputStream getContent()Returns the CachedOutputStream of this message content.- Returns:
- Throws:
IOException
-
getAttachments
Deprecated.not used as the optional attachments are stored in the contentReturns the list of attachments.- Returns:
- list (non-null)
-
setAttachments
Deprecated.not used as the optional attachments are stored in the contentSet the list of attachments.- Parameters:
attaches- (non-null)
-
getContentType
Returns the content type of the message content- Returns:
-
setContentType
Set the content type of the RMMessage- Parameters:
contentType-
-
getCreatedTime
public long getCreatedTime() -
setCreatedTime
public void setCreatedTime(long createdTime)
-