Class HTTPTransportUtils


  • public class HTTPTransportUtils
    extends Object
    • Constructor Detail

      • HTTPTransportUtils

        public HTTPTransportUtils()
    • Method Detail

      • createEnvelopeFromGetRequest

        public static SOAPEnvelope createEnvelopeFromGetRequest​(String requestUrl,
                                                                Map map,
                                                                ConfigurationContext configCtx)
                                                         throws AxisFault
        Deprecated.
        This was used only by the now deprecated processHTTPGetRequest() method.
        Parameters:
        requestUrl - the request url
        map - the map of url parameters
        configCtx - axis ConfigurationContext
        Returns:
        the SOAPEnvelope object
        Throws:
        AxisFault - if an error occurs
      • processHTTPGetRequest

        public static boolean processHTTPGetRequest​(MessageContext msgContext,
                                                    OutputStream out,
                                                    String soapAction,
                                                    String requestURI,
                                                    ConfigurationContext configurationContext,
                                                    Map requestParameters)
                                             throws AxisFault
        Deprecated.
        use RESTUtil.processURLRequest(MessageContext msgContext, OutputStream out, String contentType) instead
        Parameters:
        msgContext - - The MessageContext of the Request Message
        out - - The output stream of the response
        soapAction - - SoapAction of the request
        requestURI - - The URL that the request came to
        configurationContext - - The Axis Configuration Context
        requestParameters - - The parameters of the request message
        Returns:
        - boolean indication whether the operation was succesfull
        Throws:
        AxisFault - - Thrown in case a fault occurs
      • initializeMessageContext

        public static int initializeMessageContext​(MessageContext msgContext,
                                                   String soapActionHeader,
                                                   String requestURI,
                                                   String contentType)
      • isRESTRequest

        public static boolean isRESTRequest​(String contentType)
        This will match for content types that will be regarded as REST in WSDL2.0. This contains, 1. application/xml 2. application/x-www-form-urlencoded 3. multipart/form-data

        If the request doesnot contain a content type; this will return true.

        Parameters:
        contentType - content type to check
        Returns:
        Boolean