|
||||||||||
| 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(MessageContext messageContext,
OMOutputFormat format,
String soapAction)
Simply returns the soapAction unchanged. |
byte[] |
getBytes(MessageContext msgCtxt,
OMOutputFormat format)
This method is not supported because of large file handling limitations |
String |
getContentType(MessageContext msgCtxt,
OMOutputFormat format,
String soapActionString)
Formats the content type to be written in to the transport |
URL |
getTargetAddress(MessageContext messageContext,
OMOutputFormat format,
URL targetURL)
|
void |
writeTo(MessageContext msgCtx,
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(MessageContext msgCtxt,
OMOutputFormat format,
String soapActionString)
getContentType in interface 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(MessageContext msgCtx,
OMOutputFormat format,
OutputStream out,
boolean preserve)
throws AxisFault
writeTo in interface 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
AxisFault - in case of a failure in writing the message to the provided stream
public byte[] getBytes(MessageContext msgCtxt,
OMOutputFormat format)
throws AxisFault
getBytes in interface MessageFormattermsgCtxt - message which contains the Hessian message inside the HessianDataSourceformat - message format to be written
AxisFault - for any invocation
public String formatSOAPAction(MessageContext messageContext,
OMOutputFormat format,
String soapAction)
formatSOAPAction in interface MessageFormatter
public URL getTargetAddress(MessageContext messageContext,
OMOutputFormat format,
URL targetURL)
throws AxisFault
getTargetAddress in interface MessageFormatterAxisFault
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||