public class DefaultMessageAdapter extends java.lang.Object implements IMessageAdapter
Modifier and Type | Field and Description |
---|---|
protected java.util.Map |
message
The message envelope.
|
protected MessageType |
type
The message type.
|
TYPE
Constructor and Description |
---|
DefaultMessageAdapter()
Bean constructor.
|
DefaultMessageAdapter(java.util.Map message,
MessageType type)
Create a new message adapter.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getMessage()
Get the platform message.
|
MessageType |
getMessageType()
Get the message type.
|
java.util.Map |
getParameterMap()
Get the parameters as map.
|
java.lang.Object |
getValue(java.lang.String name)
Get the value for a parameter, or the values
for a parameter set.
|
void |
setMessageType(MessageType type)
Set the message type.
|
void |
setParameterMap(java.util.Map parameters)
Set the parameters as map.
|
java.lang.String |
toString()
Get the string representation.
|
protected java.util.Map message
protected MessageType type
public DefaultMessageAdapter()
public DefaultMessageAdapter(java.util.Map message, MessageType type)
message
- The message.public MessageType getMessageType()
getMessageType
in interface IMessageAdapter
public void setMessageType(MessageType type)
type
- The message type.public java.lang.Object getMessage()
getMessage
in interface IMessageAdapter
public java.lang.Object getValue(java.lang.String name)
getValue
in interface IMessageAdapter
public java.util.Map getParameterMap()
getParameterMap
in interface IMessageAdapter
public void setParameterMap(java.util.Map parameters)
parameters
- A map of parameters.public java.lang.String toString()
toString
in class java.lang.Object