Package org.apache.axis2.fastinfoset
Class FastInfosetPOXMessageFormatter
java.lang.Object
org.apache.axis2.fastinfoset.FastInfosetPOXMessageFormatter
- All Implemented Interfaces:
MessageFormatter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionformatSOAPAction(MessageContext messageContext, org.apache.axiom.om.OMOutputFormat format, String soapAction) Plain Fast Infoset message formatter doesn't need to handle SOAP.byte[]getBytes(MessageContext messageContext, org.apache.axiom.om.OMOutputFormat format) Retrieves the raw bytes from the SOAP envelop.getContentType(MessageContext messageContext, org.apache.axiom.om.OMOutputFormat format, String soapAction) Returns the content typegetTargetAddress(MessageContext messageContext, org.apache.axiom.om.OMOutputFormat format, URL targetURL) Returns the target address to send the response FIXME This is very HTTP specific.voidwriteTo(MessageContext messageContext, org.apache.axiom.om.OMOutputFormat format, OutputStream outputStream, boolean preserve) Write the SOAP envelop to the given OutputStream.
-
Constructor Details
-
FastInfosetPOXMessageFormatter
public FastInfosetPOXMessageFormatter()
-
-
Method Details
-
formatSOAPAction
public String formatSOAPAction(MessageContext messageContext, org.apache.axiom.om.OMOutputFormat format, String soapAction) Plain Fast Infoset message formatter doesn't need to handle SOAP. Hence do nothing.- Specified by:
formatSOAPActionin interfaceMessageFormatter- See Also:
-
getBytes
public byte[] getBytes(MessageContext messageContext, org.apache.axiom.om.OMOutputFormat format) throws AxisFault Retrieves the raw bytes from the SOAP envelop.- Specified by:
getBytesin interfaceMessageFormatter- Throws:
AxisFault- See Also:
-
getContentType
public String getContentType(MessageContext messageContext, org.apache.axiom.om.OMOutputFormat format, String soapAction) Returns the content type- Specified by:
getContentTypein interfaceMessageFormatter- See Also:
-
getTargetAddress
public URL getTargetAddress(MessageContext messageContext, org.apache.axiom.om.OMOutputFormat format, URL targetURL) throws AxisFault Returns the target address to send the response FIXME This is very HTTP specific. What about other transport?- Specified by:
getTargetAddressin interfaceMessageFormatter- Throws:
AxisFault- See Also:
-
writeTo
public void writeTo(MessageContext messageContext, org.apache.axiom.om.OMOutputFormat format, OutputStream outputStream, boolean preserve) throws AxisFault Write the SOAP envelop to the given OutputStream.- Specified by:
writeToin interfaceMessageFormatter- Throws:
AxisFault- See Also:
-