|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Represents a JBI Normalized Message.
| Method Summary | |
void |
addAttachment(String id,
DataHandler content)
Add an attachment to the message. |
DataHandler |
getAttachment(String id)
Retrieve attachment with the specified identifier. |
Set |
getAttachmentNames()
Returns a list of identifiers for each attachment to the message. |
Source |
getContent()
Retrieve the content of the message. |
Object |
getProperty(String name)
Retrieve a property from the message. |
Set |
getPropertyNames()
Retrieve a list of property names for the message. |
Subject |
getSecuritySubject()
Retrieve the security Subject from the message. |
void |
removeAttachment(String id)
Removes attachment with the specified unique identifier. |
void |
setContent(Source content)
Set the content of the message. |
void |
setProperty(String name,
Object value)
Set a property on the message. |
void |
setSecuritySubject(Subject subject)
Set the security Subject for the message. |
| Method Detail |
public void addAttachment(String id,
DataHandler content)
throws MessagingException
id - unique identifier for the attachmentcontent - attachment content
MessagingException - failed to add attachmentpublic Source getContent()
public DataHandler getAttachment(String id)
id - unique identifier for attachment
public Set getAttachmentNames()
public void removeAttachment(String id)
throws MessagingException
id - attachment identifier
MessagingException - failed to remove attachment
public void setContent(Source content)
throws MessagingException
content - message content
MessagingException - failed to set content
public void setProperty(String name,
Object value)
name - property namevalue - property valuepublic void setSecuritySubject(Subject subject)
subject - Subject to associated with message.public Set getPropertyNames()
public Object getProperty(String name)
name - property name
public Subject getSecuritySubject()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||