public class HessianMessageFormatter extends Object implements org.apache.axis2.transport.MessageFormatter
MessageFormatter,
SynapseBinaryDataSource| Constructor and Description |
|---|
HessianMessageFormatter() |
| Modifier and Type | Method and Description |
|---|---|
String |
formatSOAPAction(org.apache.axis2.context.MessageContext messageContext,
org.apache.axiom.om.OMOutputFormat format,
String soapAction)
Simply returns the soapAction unchanged.
|
byte[] |
getBytes(org.apache.axis2.context.MessageContext msgCtxt,
org.apache.axiom.om.OMOutputFormat format)
This method is not supported because of large file handling limitations
|
String |
getContentType(org.apache.axis2.context.MessageContext msgCtxt,
org.apache.axiom.om.OMOutputFormat format,
String soapActionString)
Formats the content type to be written in to the transport
|
URL |
getTargetAddress(org.apache.axis2.context.MessageContext messageContext,
org.apache.axiom.om.OMOutputFormat format,
URL targetURL) |
void |
writeTo(org.apache.axis2.context.MessageContext msgCtx,
org.apache.axiom.om.OMOutputFormat format,
OutputStream out,
boolean preserve)
Extract Hessian bytes from the received SOAP message and write it onto the wire
|
public String getContentType(org.apache.axis2.context.MessageContext msgCtxt, org.apache.axiom.om.OMOutputFormat format, String soapActionString)
getContentType in interface org.apache.axis2.transport.MessageFormattermsgCtxt - message of which the content type has to be formattedformat - fomat of the expected formatted messagesoapActionString - soap action of the messagepublic void writeTo(org.apache.axis2.context.MessageContext msgCtx,
org.apache.axiom.om.OMOutputFormat format,
OutputStream out,
boolean preserve)
throws org.apache.axis2.AxisFault
writeTo in interface org.apache.axis2.transport.MessageFormattermsgCtx - message from which the Hessian message has to be extractedformat - message format to be writtenout - stream to which the message is writtenpreserve - whether to preserve the indentationsorg.apache.axis2.AxisFault - in case of a failure in writing the message to the provided streampublic byte[] getBytes(org.apache.axis2.context.MessageContext msgCtxt,
org.apache.axiom.om.OMOutputFormat format)
throws org.apache.axis2.AxisFault
getBytes in interface org.apache.axis2.transport.MessageFormattermsgCtxt - message which contains the Hessian message inside the HessianDataSourceformat - message format to be writtenorg.apache.axis2.AxisFault - for any invocationpublic String formatSOAPAction(org.apache.axis2.context.MessageContext messageContext, org.apache.axiom.om.OMOutputFormat format, String soapAction)
formatSOAPAction in interface org.apache.axis2.transport.MessageFormatterpublic URL getTargetAddress(org.apache.axis2.context.MessageContext messageContext, org.apache.axiom.om.OMOutputFormat format, URL targetURL) throws org.apache.axis2.AxisFault
getTargetAddress in interface org.apache.axis2.transport.MessageFormatterorg.apache.axis2.AxisFaultCopyright © 2005-2017 Apache Software Foundation. All Rights Reserved.