public class MessageImpl extends Object implements NormalizedMessage
NormalizedMessage interface.| Constructor and Description |
|---|
MessageImpl()
Creates a new MessageImpl without content.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAttachment(String id,
DataHandler content) |
DataHandler |
getAttachment(String id) |
Set |
getAttachmentNames() |
Source |
getContent()
Returns a Source representation of message content.
|
Object |
getProperty(String name) |
Set |
getPropertyNames() |
Subject |
getSecuritySubject() |
void |
removeAttachment(String id) |
void |
setContent(Source content)
Specifies the content of the message.
|
void |
setProperty(String name,
Object value) |
void |
setSecuritySubject(Subject subject) |
String |
toString() |
public MessageImpl()
MessagingException - failed to init message.public Source getContent()
getContent in interface NormalizedMessagepublic void setContent(Source content)
setContent in interface NormalizedMessagecontent - message content as Source objectpublic Object getProperty(String name)
getProperty in interface NormalizedMessagepublic Set getPropertyNames()
getPropertyNames in interface NormalizedMessagepublic void setProperty(String name, Object value)
setProperty in interface NormalizedMessagepublic void setSecuritySubject(Subject subject)
setSecuritySubject in interface NormalizedMessagepublic Subject getSecuritySubject()
getSecuritySubject in interface NormalizedMessagepublic void addAttachment(String id, DataHandler content) throws MessagingException
addAttachment in interface NormalizedMessageMessagingExceptionpublic DataHandler getAttachment(String id)
getAttachment in interface NormalizedMessagepublic Set getAttachmentNames()
getAttachmentNames in interface NormalizedMessagepublic void removeAttachment(String id) throws MessagingException
removeAttachment in interface NormalizedMessageMessagingExceptionCopyright © 2011-2016 OpenESB Community. All Rights Reserved.