|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The Message interface contains all of the information required for processing a business message in WebLogic Collaborate, either on the c-hub or on a c-enabler node.
Method Summary | |
void |
addPayloadPart(PayloadPart payloadPart)
Adds a single payload part to this business message. |
void |
addPayloadParts(PayloadPart[] payloadParts)
Adds one or more payload parts to this business message. |
void |
addRecipient(java.lang.String rec)
Adds a recipient to the current list of recipients of this business message. |
java.lang.String |
getConversationId()
Gets the conversation ID for the conversation in which this business message is sent. |
ConversationType |
getConversationType()
Gets the conversation type of this message. |
long |
getCreationTime()
Gets the time when this business message was created. |
java.lang.String |
getMessageId()
Returns the unique message ID of this business message. |
PayloadPart[] |
getPayloadParts()
Gets all of the payload parts of this business message. |
java.lang.String[] |
getRecipients()
Gets a copy of the current list of recipients for this business message. |
boolean |
isBusinessMessage()
Determines whether this message is a valid business message (true) or not (false). |
void |
removeAllPayloadParts()
Removes all payload parts from this business message. |
void |
removeAllRecipients()
Removes all recipients from the message recipient list, resulting in an empty list. |
boolean |
removeRecipient(java.lang.String rec)
Removes the specified recipient from the recipient list of this business message. |
MessageToken |
send()
Sends this business message to the c-hub. |
void |
setRecipient(java.lang.String recipient)
Sets the recipients list of this business message to the single specified trading partner. |
void |
setToRole(java.lang.String tRole)
Sets the to-role for the recipients of this business message. |
Method Detail |
public java.lang.String getMessageId()
The message ID is used to help tracking this business message. It can also be used in crash recovery to help identify duplicate messages that may have occurred during system failure. The message ID is not set until the c-enabler sends this business message.
public long getCreationTime()
public java.lang.String getConversationId()
public ConversationType getConversationType()
public void setToRole(java.lang.String tRole)
tRole
- To-role of recipient trading partners.public boolean isBusinessMessage()
public void addRecipient(java.lang.String rec) throws ModificationException
public void removeAllRecipients() throws ModificationException
public boolean removeRecipient(java.lang.String rec) throws ModificationException
public java.lang.String[] getRecipients()
public void setRecipient(java.lang.String recipient) throws ModificationException
recipient
- recipient of the messagepublic PayloadPart[] getPayloadParts()
public void addPayloadPart(PayloadPart payloadPart)
payloadPart
- Payload part.public void addPayloadParts(PayloadPart[] payloadParts)
payloadParts
- Payload parts.public void removeAllPayloadParts()
public MessageToken send() throws MessageDeliveryException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |