Class MessageExternalizeUtils
- java.lang.Object
-
- org.apache.axis2.context.externalize.MessageExternalizeUtils
-
- All Implemented Interfaces:
ExternalizeConstants
public class MessageExternalizeUtils extends Object implements ExternalizeConstants
Utility to read/write the Message of a MessageContext Message Object Format. Format := Prolog {DataBlocks} EndBlocks Prolog := NAME (UTF) REVISION (INT) ACTIVE (BOOL) [OPTIMIZED (BOOL)] [OPTIMIZED_CONTENT_TYPE (UTF)] <--- If OPTIMIZED=TRUE [CHARSET (UTF)] [NAMESPACE (UTF)] DataBlock := SIZE (INT >0) DATA (BYTES) EndBlocks SIZE (INT) {0 indicates end -1 indicates failure}
-
-
Field Summary
-
Fields inherited from interface org.apache.axis2.context.externalize.ExternalizeConstants
ACTIVE_OBJECT, EMPTY_MARKER, EMPTY_OBJECT, LAST_ENTRY, OBJ_RESTORE_PROBLEM, OBJ_SAVE_PROBLEM, UNSUPPORTED_REVID, UNSUPPORTED_SUID
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SOAPEnvelope
readExternal(ObjectInput in, MessageContext mc, String correlationIDString)
Read the Messagestatic void
writeExternal(ObjectOutput out, MessageContext mc, String correlationIDString, OMOutputFormat outputFormat)
Write out the Message
-
-
-
Method Detail
-
writeExternal
public static void writeExternal(ObjectOutput out, MessageContext mc, String correlationIDString, OMOutputFormat outputFormat) throws IOException
Write out the Message- Parameters:
out
-mc
-correlationIDString
-outputFormat
-- Throws:
IOException
-
readExternal
public static SOAPEnvelope readExternal(ObjectInput in, MessageContext mc, String correlationIDString) throws IOException, ClassNotFoundException
Read the Message- Parameters:
in
-mc
-correlationIDString
-- Returns:
- Throws:
IOException
ClassNotFoundException
-
-