|
|||||||||||
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(java.lang.String id,
javax.activation.DataHandler content)
Add an attachment to the message. |
javax.activation.DataHandler |
getAttachment(java.lang.String id)
Retrieve attachment with the specified identifier. |
java.util.Set |
getAttachmentNames()
Returns a list of identifiers for each attachment to the message. |
javax.xml.transform.Source |
getContent()
Retrieve the content of the message. |
java.lang.Object |
getProperty(java.lang.String name)
Retrieve a property from the message. |
java.util.Set |
getPropertyNames()
Retrieve a list of property names for the message. |
javax.security.auth.Subject |
getSecuritySubject()
Retrieve the security Subject from the message. |
void |
removeAttachment(java.lang.String id)
Removes attachment with the specified unique identifier. |
void |
setContent(javax.xml.transform.Source content)
Set the content of the message. |
void |
setProperty(java.lang.String name,
java.lang.Object value)
Set a property on the message. |
void |
setSecuritySubject(javax.security.auth.Subject subject)
Set the security Subject for the message. |
Method Detail |
public void addAttachment(java.lang.String id, javax.activation.DataHandler content) throws MessagingException
id
- unique identifier for the attachmentcontent
- attachment content
MessagingException
- failed to add attachmentpublic javax.xml.transform.Source getContent()
public javax.activation.DataHandler getAttachment(java.lang.String id)
id
- unique identifier for attachment
public java.util.Set getAttachmentNames()
public void removeAttachment(java.lang.String id) throws MessagingException
id
- attachment identifier
MessagingException
- failed to remove attachmentpublic void setContent(javax.xml.transform.Source content) throws MessagingException
content
- message content
MessagingException
- failed to set contentpublic void setProperty(java.lang.String name, java.lang.Object value)
name
- property namevalue
- property valuepublic void setSecuritySubject(javax.security.auth.Subject subject)
subject
- Subject to associated with message.public java.util.Set getPropertyNames()
public java.lang.Object getProperty(java.lang.String name)
name
- property name
public javax.security.auth.Subject getSecuritySubject()
|
Built 06/07/2005 11:16 AM on acer (SunOS 5.9) | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |