|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.soa.esb.message.mapping.ObjectMapper
public class ObjectMapper
Extracts objects from an ESB message and puts them into a Map, which can be used for later processsing.
| Field Summary | |
|---|---|
static java.lang.String |
BODY_CONTENT
Name to get the byte[] content |
| Constructor Summary | |
|---|---|
ObjectMapper()
|
|
| Method Summary | |
|---|---|
java.util.List<java.lang.Object> |
createObjectList(Message message,
java.util.List<java.lang.String> messageObjectPathList)
body.myObject will add 'myObject', while body.myObject.mySubObject will create an entry of 'mySubObject'. |
byte[] |
getBytes(java.io.Serializable object)
Turns an object into a byte[]. |
java.lang.Object |
getObjectFromMessage(Message message,
java.lang.String expression)
Extracts objects from the message, using a ESB Message Object Path. |
void |
setObjectOnMessage(Message message,
java.lang.String expression,
java.lang.Object object)
Sets an object somewhere on the Message, based on the value of the expression. |
Message |
setObjectsOnMessage(Message message,
java.util.Map<java.lang.Object,java.lang.String> expressionAndObject)
Set objects on the message using a OGNL expression syntax to describe the position in the message where the object needs to be attached. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static java.lang.String BODY_CONTENT
| Constructor Detail |
|---|
public ObjectMapper()
| Method Detail |
|---|
public java.util.List<java.lang.Object> createObjectList(Message message,
java.util.List<java.lang.String> messageObjectPathList)
throws ObjectMappingException
message - - the messagemessageObjectPathList - - the key represents the query to get the object from
from the message.
ObjectMappingException
public Message setObjectsOnMessage(Message message,
java.util.Map<java.lang.Object,java.lang.String> expressionAndObject)
throws ObjectMappingException
message - - the message on which the objects will be placedexpressionAndObject - map containing objects with their expression
ObjectMappingException
public java.lang.Object getObjectFromMessage(Message message,
java.lang.String expression)
throws ObjectMappingException
message - - an ESB Message.expression - - path to the object.
ObjectMappingException
public void setObjectOnMessage(Message message,
java.lang.String expression,
java.lang.Object object)
throws ObjectMappingException
message - - on which the object will be placed.expression - - desribes the place in the Message where the object should be placedobject - - the object which will be attached to the message.
ObjectMappingException
public byte[] getBytes(java.io.Serializable object)
throws ObjectMappingException
object - to be serialized to bytes.
ObjectMappingException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||