|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NormalizedMessage
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 |
---|
void addAttachment(java.lang.String id, javax.activation.DataHandler content) throws MessagingException
id
- unique identifier for the attachmentcontent
- attachment content
MessagingException
- failed to add attachmentjavax.xml.transform.Source getContent()
javax.activation.DataHandler getAttachment(java.lang.String id)
id
- unique identifier for attachment
java.util.Set getAttachmentNames()
void removeAttachment(java.lang.String id) throws MessagingException
id
- attachment identifier
MessagingException
- failed to remove attachmentvoid setContent(javax.xml.transform.Source content) throws MessagingException
content
- message content
MessagingException
- failed to set contentvoid setProperty(java.lang.String name, java.lang.Object value)
name
- property namevalue
- property valuevoid setSecuritySubject(javax.security.auth.Subject subject)
subject
- Subject to associated with message.java.util.Set getPropertyNames()
java.lang.Object getProperty(java.lang.String name)
name
- property name
javax.security.auth.Subject getSecuritySubject()
|
${build-info} | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |