Package org.apache.axis2.fastinfoset
Class FastInfosetMessageFormatter
- java.lang.Object
-
- org.apache.axis2.fastinfoset.FastInfosetMessageFormatter
-
- All Implemented Interfaces:
MessageFormatter
public class FastInfosetMessageFormatter extends Object implements MessageFormatter
-
-
Constructor Summary
Constructors Constructor Description FastInfosetMessageFormatter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
formatSOAPAction(MessageContext messageContext, OMOutputFormat format, String soapAction)
Fast Infoset message formatter doesn't need to handle SOAP.String
getContentType(MessageContext messageContext, OMOutputFormat format, String soapAction)
Returns the content typeURL
getTargetAddress(MessageContext messageContext, OMOutputFormat format, URL targetURL)
Returns the target address to send the response FIXME This is very HTTP specific.void
writeTo(MessageContext messageContext, OMOutputFormat format, OutputStream outputStream, boolean preserve)
Write the SOAP envelop to the given OutputStream.
-
-
-
Method Detail
-
formatSOAPAction
public String formatSOAPAction(MessageContext messageContext, OMOutputFormat format, String soapAction)
Fast Infoset message formatter doesn't need to handle SOAP. Hence do nothing.- Specified by:
formatSOAPAction
in interfaceMessageFormatter
- Returns:
- this only if you want set a transport header for SOAP Action
- See Also:
MessageFormatter.formatSOAPAction(org.apache.axis2.context.MessageContext, org.apache.axiom.om.OMOutputFormat, java.lang.String)
-
getContentType
public String getContentType(MessageContext messageContext, OMOutputFormat format, String soapAction)
Returns the content type- Specified by:
getContentType
in interfaceMessageFormatter
- See Also:
MessageFormatter.getContentType(org.apache.axis2.context.MessageContext, org.apache.axiom.om.OMOutputFormat, java.lang.String)
-
getTargetAddress
public URL getTargetAddress(MessageContext messageContext, 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:
getTargetAddress
in interfaceMessageFormatter
- Returns:
- the target URL
- Throws:
AxisFault
- See Also:
MessageFormatter.getTargetAddress(org.apache.axis2.context.MessageContext, org.apache.axiom.om.OMOutputFormat, java.net.URL)
-
writeTo
public void writeTo(MessageContext messageContext, OMOutputFormat format, OutputStream outputStream, boolean preserve) throws AxisFault
Write the SOAP envelop to the given OutputStream.- Specified by:
writeTo
in interfaceMessageFormatter
preserve
- : do not consume the OM when this is set..- Throws:
AxisFault
- See Also:
MessageFormatter.writeTo(org.apache.axis2.context.MessageContext, org.apache.axiom.om.OMOutputFormat, java.io.OutputStream, boolean)
-
-