public class SerializerUtils extends Object
Constructor and Description |
---|
SerializerUtils() |
Modifier and Type | Method and Description |
---|---|
static Object |
deserialize(byte[] bytes) |
static byte[] |
serialize(Object obj) |
static org.apache.synapse.MessageContext |
toMessageContext(SerializableMessageContext message,
org.apache.axis2.context.MessageContext axis2Ctx,
org.apache.synapse.MessageContext synCtx)
Converts a message read from the message store to a Synapse Message Context object.
|
static SerializableMessageContext |
toStorableMessage(org.apache.synapse.MessageContext synCtx,
String messageId)
Converts a Synapse Message Context to a representation that can be stored in the
Message store queue.
|
public static byte[] serialize(Object obj)
public static Object deserialize(byte[] bytes) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
public static SerializableMessageContext toStorableMessage(org.apache.synapse.MessageContext synCtx, String messageId)
synCtx
- public static org.apache.synapse.MessageContext toMessageContext(SerializableMessageContext message, org.apache.axis2.context.MessageContext axis2Ctx, org.apache.synapse.MessageContext synCtx)
message
- Message from the message storeaxis2Ctx
- Final Axis2 Message ContextsynCtx
- Final Synapse message ContextCopyright © 2017 WSO2. All rights reserved.