public class DefaultMessageAdapter extends Object implements IMessageAdapter
TYPE
Constructor and Description |
---|
DefaultMessageAdapter()
Bean constructor.
|
DefaultMessageAdapter(Map message,
MessageType type)
Create a new message adapter.
|
Modifier and Type | Method and Description |
---|---|
Object |
getMessage()
Get the platform message.
|
MessageType |
getMessageType()
Get the message type.
|
Map |
getParameterMap()
Get the parameters as map.
|
Object |
getValue(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(Map parameters)
Set the parameters as map.
|
String |
toString()
Get the string representation.
|
public DefaultMessageAdapter()
public DefaultMessageAdapter(Map message, MessageType type)
message
- The message.public MessageType getMessageType()
getMessageType
in interface IMessageAdapter
public void setMessageType(MessageType type)
type
- The message type.public Object getMessage()
getMessage
in interface IMessageAdapter
public Object getValue(String name)
getValue
in interface IMessageAdapter
public Map getParameterMap()
getParameterMap
in interface IMessageAdapter
public void setParameterMap(Map parameters)
parameters
- A map of parameters.Copyright © 2012. All Rights Reserved.