Package org.apache.cxf.ws.rm.persistence
Class RMMessage
- java.lang.Object
-
- org.apache.cxf.ws.rm.persistence.RMMessage
-
public class RMMessage extends Object
-
-
Constructor Summary
Constructors Constructor Description RMMessage()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description List<InputStream>getAttachments()Deprecated.not used as the optional attachments are stored in the contentCachedOutputStreamgetContent()Returns the CachedOutputStream of this message content.StringgetContentType()Returns the content type of the message contentlonggetCreatedTime()longgetMessageNumber()Returns the message number of the message within its sequence.StringgetTo()Returns the to address of this message.voidsetAttachments(List<InputStream> attaches)Deprecated.not used as the optional attachments are stored in the contentvoidsetContent(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.voidsetTo(String t)Sets the to address of this message.
-
-
-
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:
mn- the message number
-
setContent
public void setContent(CachedOutputStream cos)
Sets the message content using the CachedOutputStream.class.- Parameters:
cos-
-
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 CachedOutputStream getContent()
Returns the CachedOutputStream of this message content.- Returns:
- Throws:
IOException
-
getAttachments
@Deprecated public List<InputStream> getAttachments()
Deprecated.not used as the optional attachments are stored in the contentReturns the list of attachments.- Returns:
- list (non-null)
-
setAttachments
@Deprecated public void setAttachments(List<InputStream> attaches)
Deprecated.not used as the optional attachments are stored in the contentSet the list of attachments.- Parameters:
attaches- (non-null)
-
getContentType
public String getContentType()
Returns the content type of the message content- Returns:
-
setContentType
public void setContentType(String contentType)
Set the content type of the RMMessage- Parameters:
contentType-
-
getCreatedTime
public long getCreatedTime()
-
setCreatedTime
public void setCreatedTime(long createdTime)
-
-