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 contentorg.apache.cxf.io.CachedOutputStream
getContent()
Returns the CachedOutputStream of this message content.String
getContentType()
Returns the content type of the message contentlong
getCreatedTime()
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)
Deprecated.not used as the optional attachments are stored in the contentvoid
setContent(org.apache.cxf.io.CachedOutputStream cos)
Sets the message content using the CachedOutputStream.class.void
setContentType(String contentType)
Set the content type of the RMMessagevoid
setCreatedTime(long createdTime)
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.
-
-
-
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(org.apache.cxf.io.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 org.apache.cxf.io.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)
-
-