Class JsonStreamFormatter

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

    public final class JsonStreamFormatter
    extends Object
    implements org.apache.axis2.transport.MessageFormatter
    • Constructor Detail

      • JsonStreamFormatter

        public JsonStreamFormatter()
    • Method Detail

      • getBytes

        public byte[] getBytes​(org.apache.axis2.context.MessageContext messageContext,
                               org.apache.axiom.om.OMOutputFormat format)
                        throws org.apache.axis2.AxisFault
        Specified by:
        getBytes in interface org.apache.axis2.transport.MessageFormatter
        Throws:
        org.apache.axis2.AxisFault
      • getContentType

        public String getContentType​(org.apache.axis2.context.MessageContext messageContext,
                                     org.apache.axiom.om.OMOutputFormat format,
                                     String soapActionString)
        Specified by:
        getContentType in interface org.apache.axis2.transport.MessageFormatter
      • writeTo

        public void writeTo​(org.apache.axis2.context.MessageContext messageContext,
                            org.apache.axiom.om.OMOutputFormat format,
                            OutputStream out,
                            boolean preserve)
                     throws org.apache.axis2.AxisFault
        Specified by:
        writeTo in interface org.apache.axis2.transport.MessageFormatter
        Throws:
        org.apache.axis2.AxisFault
      • getTargetAddress

        public URL getTargetAddress​(org.apache.axis2.context.MessageContext messageContext,
                                    org.apache.axiom.om.OMOutputFormat format,
                                    URL targetURL)
                             throws org.apache.axis2.AxisFault
        Specified by:
        getTargetAddress in interface org.apache.axis2.transport.MessageFormatter
        Throws:
        org.apache.axis2.AxisFault
      • formatSOAPAction

        public String formatSOAPAction​(org.apache.axis2.context.MessageContext messageContext,
                                       org.apache.axiom.om.OMOutputFormat omOutputFormat,
                                       String s)
        Specified by:
        formatSOAPAction in interface org.apache.axis2.transport.MessageFormatter