|
||||||||||
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(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 |
---|
void addAttachment(String id, DataHandler content) throws MessagingException
id
- unique identifier for the attachmentcontent
- attachment content
MessagingException
- failed to add attachmentSource getContent()
DataHandler getAttachment(String id)
id
- unique identifier for attachment
Set getAttachmentNames()
void removeAttachment(String id) throws MessagingException
id
- attachment identifier
MessagingException
- failed to remove attachmentvoid setContent(Source content) throws MessagingException
content
- message content
MessagingException
- failed to set contentvoid setProperty(String name, Object value)
name
- property namevalue
- property valuevoid setSecuritySubject(Subject subject)
subject
- Subject to associated with message.Set getPropertyNames()
Object getProperty(String name)
name
- property name
Subject getSecuritySubject()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |