|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.synapse.format.hessian.HessianMessageFormatter
public class HessianMessageFormatter
Enables a message encoded using the Hessian binary protocol to be written to transport by axis2/synapse and this formats the HessianDataSource to a Hessian message.
MessageFormatter,
SynapseBinaryDataSource| Constructor Summary | |
|---|---|
HessianMessageFormatter()
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HessianMessageFormatter()
| Method Detail |
|---|
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 message
public 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 indentations
org.apache.axis2.AxisFault - in case of a failure in writing the message to the provided stream
public 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 written
org.apache.axis2.AxisFault - for any invocation
public String formatSOAPAction(org.apache.axis2.context.MessageContext messageContext,
org.apache.axiom.om.OMOutputFormat format,
String soapAction)
formatSOAPAction in interface org.apache.axis2.transport.MessageFormatter
public 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.AxisFault
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||