|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface NormalizedMessage
Represents a JBI Normalized Message. A normalized message consists of:
| Method Summary | |
|---|---|
void |
addAttachment(java.lang.String id,
javax.activation.DataHandler content)
Add an attachment to this message. |
javax.activation.DataHandler |
getAttachment(java.lang.String id)
Retrieve an attachment to this message with the specified identifier. |
java.util.Set |
getAttachmentNames()
Returns a list of identifiers for all attachments to this message. |
javax.xml.transform.Source |
getContent()
Retrieve the content of this message. |
java.lang.Object |
getProperty(java.lang.String name)
Retrieve a property from the message. |
java.util.Set |
getPropertyNames()
Retrieve a set of property names for this message. |
javax.security.auth.Subject |
getSecuritySubject()
Get the security subject associated with this message. |
void |
removeAttachment(java.lang.String id)
Removes the attachment from this message with the specified unique identifier. |
void |
setContent(javax.xml.transform.Source content)
Set the content of this 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 associated with this message. |
| Method Detail |
|---|
void addAttachment(java.lang.String id,
javax.activation.DataHandler content)
throws MessagingException
id - unique identifier for the attachment; must be non-null and
non-emptycontent - attachment content; must be non-null
MessagingException - failed to add attachmentjavax.activation.DataHandler getAttachment(java.lang.String id)
id - unique identifier for attachment; must be non-null and
non-empty
null
if an attachment with the specified identifier is not foundjava.util.Set getAttachmentNames()
javax.xml.transform.Source getContent()
nulljava.lang.Object getProperty(java.lang.String name)
name - property name; must be non-null and non-empty
null if the property does not
exist or has no valuejava.util.Set getPropertyNames()
javax.security.auth.Subject getSecuritySubject()
null if none.
void removeAttachment(java.lang.String id)
throws MessagingException
id - attachment identifier; must be non-null and non-empty
MessagingException - failed to remove attachment or the attachment does not exist
void setContent(javax.xml.transform.Source content)
throws MessagingException
content - message content; may be null
MessagingException - failed to set content
void setProperty(java.lang.String name,
java.lang.Object value)
name - property name; must be non-null and non-emptyvalue - property value; may be nullvoid setSecuritySubject(javax.security.auth.Subject subject)
subject - the security subject to associate with this message; may be
null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||