public interface NormalizedMessage
| Modifier and Type | Method and Description |
|---|---|
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.
|
void addAttachment(String id, DataHandler content) throws MessagingException
id - unique identifier for the attachmentcontent - attachment contentMessagingException - failed to add attachmentSource getContent()
DataHandler getAttachment(String id)
id - unique identifier for attachmentSet getAttachmentNames()
void removeAttachment(String id) throws MessagingException
id - attachment identifierMessagingException - failed to remove attachmentvoid setContent(Source content) throws MessagingException
content - message contentMessagingException - 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 nameSubject getSecuritySubject()
Copyright © 2011-2016 OpenESB Community. All Rights Reserved.