| java.lang.Object org.apache.axis2.transport.http.HTTPTransportUtils
HTTPTransportUtils | public class HTTPTransportUtils (Code) | | |
Method Summary | |
public static SOAPEnvelope | createEnvelopeFromGetRequest(String requestUrl, Map map, ConfigurationContext configCtx) | public static boolean | doWriteMTOM(MessageContext msgContext)
Checks whether MTOM needs to be enabled for the message represented by
the msgContext. | public static boolean | doWriteSwA(MessageContext msgContext)
Checks whether SOAP With Attachments (SwA) needs to be enabled for the
message represented by the msgContext. | public static String | getCharSetEncoding(MessageContext msgContext) Utility method to query CharSetEncoding. | public static InputStream | handleGZip(MessageContext msgContext, InputStream in) | public static int | initializeMessageContext(MessageContext msgContext, String soapActionHeader, String requestURI, String contentType) | public static boolean | isDoingREST(MessageContext msgContext) | public static boolean | isRESTRequest(String contentType) This will match for content types that will be regarded as REST in WSDL2.0.
This contains,
1. | public static boolean | processHTTPGetRequest(MessageContext msgContext, OutputStream out, String soapAction, String requestURI, ConfigurationContext configurationContext, Map requestParameters) | public static InvocationResponse | processHTTPPostRequest(MessageContext msgContext, InputStream in, OutputStream out, String contentType, String soapActionHeader, String requestURI) |
doWriteMTOM | public static boolean doWriteMTOM(MessageContext msgContext)(Code) | |
Checks whether MTOM needs to be enabled for the message represented by
the msgContext. We check value assigned to the "enableMTOM" property
either using the config files (axis2.xml, services.xml) or
programatically. Programatic configuration is given priority. If the
given value is "optional", MTOM will be enabled only if the incoming
message was an MTOM message.
Parameters: msgContext - true if SwA needs to be enabled |
doWriteSwA | public static boolean doWriteSwA(MessageContext msgContext)(Code) | |
Checks whether SOAP With Attachments (SwA) needs to be enabled for the
message represented by the msgContext. We check value assigned to the
"enableSwA" property either using the config files (axis2.xml,
services.xml) or programatically. Programatic configuration is given
priority. If the given value is "optional", SwA will be enabled only if
the incoming message was SwA type.
Parameters: msgContext - true if SwA needs to be enabled |
getCharSetEncoding | public static String getCharSetEncoding(MessageContext msgContext)(Code) | | Utility method to query CharSetEncoding. First look in the
MessageContext. If it's not there look in the OpContext. Use the defualt,
if it's not given in either contexts.
Parameters: msgContext - CharSetEncoding |
isRESTRequest | public static boolean isRESTRequest(String contentType)(Code) | | 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 - Boolean |
processHTTPGetRequest | public static boolean processHTTPGetRequest(MessageContext msgContext, OutputStream out, String soapAction, String requestURI, ConfigurationContext configurationContext, Map requestParameters) throws AxisFault(Code) | | Parameters: msgContext - - The MessageContext of the Request Message Parameters: out - - The output stream of the response Parameters: soapAction - - SoapAction of the request Parameters: requestURI - - The URL that the request came to Parameters: configurationContext - - The Axis Configuration Context Parameters: requestParameters - - The parameters of the request message - boolean indication whether the operation was succesfull throws: AxisFault - - Thrown in case a fault occurs |
|
|