|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.servicemix.jbi.messaging.NormalizedMessageImpl
public class NormalizedMessageImpl
Represents a JBI NormalizedMessage.
| Field Summary | |
|---|---|
protected MessageExchangeImpl |
exchange
|
| Constructor Summary | |
|---|---|
NormalizedMessageImpl()
Constructor |
|
NormalizedMessageImpl(MessageExchangeImpl exchange)
Constructor |
|
| Method Summary | |
|---|---|
void |
addAttachment(String id,
DataHandler handler)
Add an attachment |
protected Map |
createAttachmentsMap()
|
javax.jbi.messaging.Fault |
createFault()
|
protected Map |
createPropertiesMap()
|
DataHandler |
getAttachment(String id)
Get a named attachement |
Set |
getAttachmentNames()
Returns a list of identifiers for each attachment to the message. |
protected Map |
getAttachments()
|
Object |
getBody()
|
Object |
getBody(PojoMarshaler marshaler)
|
Object |
getBody(org.apache.servicemix.jbi.marshaler.PojoMarshaler marshaler)
|
String |
getBodyText()
|
Source |
getContent()
|
javax.jbi.messaging.MessageExchange |
getExchange()
|
PojoMarshaler |
getMarshaler()
|
protected Map |
getProperties()
|
Object |
getProperty(String name)
get a named property |
Set |
getPropertyNames()
|
Subject |
getSecuritySubject()
|
Iterator |
listAttachments()
|
void |
readExternal(ObjectInput in)
Read from a stream |
void |
removeAttachment(String id)
remove an identified attachment |
protected void |
setAttachments(Map attachments)
|
void |
setBody(Object body)
|
void |
setBodyText(String xml)
|
void |
setContent(Source source)
set the content fo the message |
protected void |
setProperties(Map properties)
|
void |
setProperty(String name,
Object value)
set a property |
void |
setSecuritySubject(Subject securitySubject)
set the security subject |
String |
toString()
|
void |
writeExternal(ObjectOutput out)
Write to a Stream |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected transient MessageExchangeImpl exchange
| Constructor Detail |
|---|
public NormalizedMessageImpl()
public NormalizedMessageImpl(MessageExchangeImpl exchange)
exchange - | Method Detail |
|---|
public Source getContent()
getContent in interface javax.jbi.messaging.NormalizedMessagepublic void setContent(Source source)
setContent in interface javax.jbi.messaging.NormalizedMessagesource - public Subject getSecuritySubject()
getSecuritySubject in interface javax.jbi.messaging.NormalizedMessagepublic void setSecuritySubject(Subject securitySubject)
setSecuritySubject in interface javax.jbi.messaging.NormalizedMessagesecuritySubject - public Object getProperty(String name)
getProperty in interface javax.jbi.messaging.NormalizedMessagename -
public Set getPropertyNames()
getPropertyNames in interface javax.jbi.messaging.NormalizedMessage
public void setProperty(String name,
Object value)
setProperty in interface javax.jbi.messaging.NormalizedMessagename - value -
public void addAttachment(String id,
DataHandler handler)
addAttachment in interface javax.jbi.messaging.NormalizedMessageid - handler - public DataHandler getAttachment(String id)
getAttachment in interface javax.jbi.messaging.NormalizedMessageid - the id of the stored attachment
public Iterator listAttachments()
public void removeAttachment(String id)
removeAttachment in interface javax.jbi.messaging.NormalizedMessageid - public Set getAttachmentNames()
getAttachmentNames in interface javax.jbi.messaging.NormalizedMessagepublic String toString()
toString in class Object
public Object getBody()
throws javax.jbi.messaging.MessagingException
getBody in interface org.apache.servicemix.jbi.api.Messagejavax.jbi.messaging.MessagingException
public Object getBody(PojoMarshaler marshaler)
throws javax.jbi.messaging.MessagingException
javax.jbi.messaging.MessagingException
public Object getBody(org.apache.servicemix.jbi.marshaler.PojoMarshaler marshaler)
throws javax.jbi.messaging.MessagingException
getBody in interface org.apache.servicemix.jbi.api.Messagejavax.jbi.messaging.MessagingException
public void setBody(Object body)
throws javax.jbi.messaging.MessagingException
setBody in interface org.apache.servicemix.jbi.api.Messagejavax.jbi.messaging.MessagingException
public String getBodyText()
throws TransformerException
TransformerExceptionpublic void setBodyText(String xml)
public PojoMarshaler getMarshaler()
public javax.jbi.messaging.MessageExchange getExchange()
getExchange in interface org.apache.servicemix.jbi.api.Message
public javax.jbi.messaging.Fault createFault()
throws javax.jbi.messaging.MessagingException
createFault in interface org.apache.servicemix.jbi.api.Messagejavax.jbi.messaging.MessagingExceptionprotected Map getProperties()
protected Map getAttachments()
protected void setAttachments(Map attachments)
protected void setProperties(Map properties)
protected Map createPropertiesMap()
protected Map createAttachmentsMap()
public void writeExternal(ObjectOutput out)
throws IOException
writeExternal in interface Externalizableout -
IOException
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal in interface Externalizablein -
IOException
ClassNotFoundException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||