Class FastInfosetMessageFormatter

  • All Implemented Interfaces:
    org.apache.axis2.kernel.MessageFormatter

    public class FastInfosetMessageFormatter
    extends Object
    implements org.apache.axis2.kernel.MessageFormatter
    • Constructor Detail

      • FastInfosetMessageFormatter

        public FastInfosetMessageFormatter()
    • Method Detail

      • formatSOAPAction

        public String formatSOAPAction​(org.apache.axis2.context.MessageContext messageContext,
                                       org.apache.axiom.om.OMOutputFormat format,
                                       String soapAction)
        Fast Infoset message formatter doesn't need to handle SOAP. Hence do nothing.
        Specified by:
        formatSOAPAction in interface org.apache.axis2.kernel.MessageFormatter
        See Also:
        MessageFormatter.formatSOAPAction(org.apache.axis2.context.MessageContext, org.apache.axiom.om.OMOutputFormat, java.lang.String)
      • getContentType

        public String getContentType​(org.apache.axis2.context.MessageContext messageContext,
                                     org.apache.axiom.om.OMOutputFormat format,
                                     String soapAction)
        Returns the content type
        Specified by:
        getContentType in interface org.apache.axis2.kernel.MessageFormatter
        See Also:
        MessageFormatter.getContentType(org.apache.axis2.context.MessageContext, org.apache.axiom.om.OMOutputFormat, java.lang.String)
      • getTargetAddress

        public URL getTargetAddress​(org.apache.axis2.context.MessageContext messageContext,
                                    org.apache.axiom.om.OMOutputFormat format,
                                    URL targetURL)
                             throws org.apache.axis2.AxisFault
        Returns the target address to send the response FIXME This is very HTTP specific. What about other transport?
        Specified by:
        getTargetAddress in interface org.apache.axis2.kernel.MessageFormatter
        Throws:
        org.apache.axis2.AxisFault
        See Also:
        MessageFormatter.getTargetAddress(org.apache.axis2.context.MessageContext, org.apache.axiom.om.OMOutputFormat, java.net.URL)
      • writeTo

        public void writeTo​(org.apache.axis2.context.MessageContext messageContext,
                            org.apache.axiom.om.OMOutputFormat format,
                            OutputStream outputStream,
                            boolean preserve)
                     throws org.apache.axis2.AxisFault
        Write the SOAP envelop to the given OutputStream.
        Specified by:
        writeTo in interface org.apache.axis2.kernel.MessageFormatter
        Throws:
        org.apache.axis2.AxisFault
        See Also:
        MessageFormatter.writeTo(org.apache.axis2.context.MessageContext, org.apache.axiom.om.OMOutputFormat, java.io.OutputStream, boolean)