|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
void |
addPart(MessagePart part)
adds a body part to the end of the message being built |
void |
addRecipient(java.lang.String destination)
adds a recipient to a message |
java.util.Date |
getExpirationDate()
returns the date of expiration of this message. |
java.lang.String |
getHeader(java.lang.String header)
get the value of a header |
java.lang.String |
getMessageId()
returns the message identifier. |
java.lang.String |
getOriginator()
returns the originator address |
MessagePart[] |
getParts()
get the nested parts of a multi-part message or message part |
java.lang.String[] |
getRecipients()
get the recipients of the message. |
MessagePart |
newPart()
instantiates a new body part. |
void |
removePart(MessagePart part)
removes a bodypart |
void |
removeRecipient(java.lang.String destination)
removes a recipient from the recipient list of a message. |
void |
sendReply(Message message)
send a reply to the alert message |
void |
sendStatus(int status)
acknowledge reception of the message |
void |
setExpirationDate(java.util.Date expireAt)
|
void |
setHeader(java.lang.String header,
java.lang.String value)
set the value of a header |
void |
setOriginator(java.lang.String originator)
returns the originator address |
Methods inherited from interface com.sun.im.service.MessagePart |
clearContent, setContent, setContent, setContent, setContent, setContentName, setContentType |
Methods inherited from interface com.sun.im.service.ReadOnlyMessagePart |
getBytes, getContent, getContent, getContentEncoding, getContentID, getContentName, getContentType, getInputStream, getSize |
Method Detail |
public void sendStatus(int status) throws CollaborationException
CollaborationException
MessageStatus
public void sendReply(Message message) throws CollaborationException
message
- reply message. The reply message must be implemented with the
createReply method.
CollaborationException
public java.lang.String getOriginator()
public void setOriginator(java.lang.String originator) throws CollaborationException
CollaborationException
public void addRecipient(java.lang.String destination) throws CollaborationException
destination
- recipient's address
CollaborationException
public void removeRecipient(java.lang.String destination) throws CollaborationException
destination
- recipient's address
CollaborationException
public java.lang.String[] getRecipients() throws CollaborationException
CollaborationException
public java.lang.String getMessageId()
public java.util.Date getExpirationDate()
public MessagePart newPart() throws CollaborationException
CollaborationException
addPart.
public java.lang.String getHeader(java.lang.String header)
public void setHeader(java.lang.String header, java.lang.String value) throws CollaborationException
CollaborationException
public void addPart(MessagePart part) throws CollaborationException
part
- message bodypart to add.
CollaborationException
public void removePart(MessagePart part) throws CollaborationException
part
- Message Part tp remove.
CollaborationException
public MessagePart[] getParts()
public void setExpirationDate(java.util.Date expireAt) throws CollaborationException
expireAt
- date at which the message will expire
CollaborationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |