|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.soa.esb.listeners.message.AbstractMessageComposer<T>
public abstract class AbstractMessageComposer<T>
An abstract MessageComposer
implementation, containing a useful
default implementation.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.jboss.soa.esb.listeners.message.MessageComposer |
---|
MessageComposer.Factory |
Constructor Summary | |
---|---|
AbstractMessageComposer()
|
Method Summary | |
---|---|
Message |
compose(T messagePayload)
Compose the message. |
java.lang.Object |
decompose(Message message,
T originalInputMessagePayload)
Decompose the message. |
ConfigTree |
getConfiguration()
Get the composer configuration. |
protected MessagePayloadProxy |
getPayloadProxy()
|
protected abstract void |
populateMessage(Message message,
T messagePayload)
Populate |
void |
setConfiguration(ConfigTree config)
Set the composers configuration. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractMessageComposer()
Method Detail |
---|
public void setConfiguration(ConfigTree config)
setConfiguration
in interface MessageComposer<T>
config
- public ConfigTree getConfiguration()
public Message compose(T messagePayload) throws MessageDeliverException
Message
construction strategy.
compose
in interface MessageComposer<T>
messagePayload
- Message payload to be packaged, or a channel specific
container class for the message payload (e.g. a JMS message).
MessageDeliverException
- Failed to compose message payload for delivery.protected MessagePayloadProxy getPayloadProxy()
public java.lang.Object decompose(Message message, T originalInputMessagePayload) throws MessageDeliverException
Message
decomposition strategy.
decompose
in interface MessageComposer<T>
message
- The message to be decomposed.originalInputMessagePayload
- The original input message payload used to
compose this (or ther original) message. The original message can sometimes contain
information relevant during the decomposition process. Whether or not this parameter
can be null depends on the MessageComposer implementation.
MessageDeliverException
protected abstract void populateMessage(Message message, T messagePayload) throws MessageDeliverException
message
- The message instance to be populated.messagePayload
- The message payload to to be populated into the message.
MessageDeliverException
- Unable to populate message with payload.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |