Interface MessageFormatter

    • Method Detail

      • writeTo

        void writeTo​(MessageContext messageContext,
                     OMOutputFormat format,
                     OutputStream outputStream,
                     boolean preserve)
              throws AxisFault
        To support deffered writing transports as in http chunking.. Axis2 was doing this for some time..

        Preserve flag can be used to preserve the envelope for later use. This is usefull when implementing authentication machnisms like NTLM.

        Parameters:
        outputStream -
        preserve - : do not consume the OM when this is set..
        Throws:
        AxisFault
      • getContentType

        String getContentType​(MessageContext messageContext,
                              OMOutputFormat format,
                              String soapAction)
        Different message formats can set their own content types Eg: JSONFormatter can set the content type as application/json
        Parameters:
        messageContext -
        format -
        soapAction -