|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.axis2.transport.http.HTTPTransportUtils
public class HTTPTransportUtils
Constructor Summary | |
---|---|
HTTPTransportUtils()
|
Method Summary | |
---|---|
static org.apache.axiom.soap.SOAPEnvelope |
createEnvelopeFromGetRequest(java.lang.String requestUrl,
java.util.Map map,
ConfigurationContext configCtx)
Deprecated. This was used only by the now deprecated processHTTPGetRequest() method. |
static boolean |
doWriteMTOM(MessageContext msgContext)
Checks whether MTOM needs to be enabled for the message represented by the msgContext. |
static boolean |
doWriteSwA(MessageContext msgContext)
Checks whether SOAP With Attachments (SwA) needs to be enabled for the message represented by the msgContext. |
static java.lang.String |
getCharSetEncoding(MessageContext msgContext)
Utility method to query CharSetEncoding. |
static java.io.InputStream |
handleGZip(MessageContext msgContext,
java.io.InputStream in)
|
static int |
initializeMessageContext(MessageContext msgContext,
java.lang.String soapActionHeader,
java.lang.String requestURI,
java.lang.String contentType)
|
static boolean |
isDoingREST(MessageContext msgContext)
|
static boolean |
isRESTRequest(java.lang.String contentType)
This will match for content types that will be regarded as REST in WSDL2.0. |
static boolean |
processHTTPGetRequest(MessageContext msgContext,
java.io.OutputStream out,
java.lang.String soapAction,
java.lang.String requestURI,
ConfigurationContext configurationContext,
java.util.Map requestParameters)
Deprecated. use RESTUtil.processURLRequest(MessageContext msgContext, OutputStream out, String contentType) instead |
static Handler.InvocationResponse |
processHTTPPostRequest(MessageContext msgContext,
java.io.InputStream in,
java.io.OutputStream out,
java.lang.String contentType,
java.lang.String soapActionHeader,
java.lang.String requestURI)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HTTPTransportUtils()
Method Detail |
---|
public static org.apache.axiom.soap.SOAPEnvelope createEnvelopeFromGetRequest(java.lang.String requestUrl, java.util.Map map, ConfigurationContext configCtx) throws AxisFault
AxisFault
public static boolean doWriteMTOM(MessageContext msgContext)
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.
msgContext
-
public static boolean doWriteSwA(MessageContext msgContext)
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.
msgContext
-
public static java.lang.String getCharSetEncoding(MessageContext msgContext)
msgContext
-
public static boolean processHTTPGetRequest(MessageContext msgContext, java.io.OutputStream out, java.lang.String soapAction, java.lang.String requestURI, ConfigurationContext configurationContext, java.util.Map requestParameters) throws AxisFault
msgContext
- - The MessageContext of the Request Messageout
- - The output stream of the responsesoapAction
- - SoapAction of the requestrequestURI
- - The URL that the request came toconfigurationContext
- - The Axis Configuration ContextrequestParameters
- - The parameters of the request message
AxisFault
- - Thrown in case a fault occurspublic static Handler.InvocationResponse processHTTPPostRequest(MessageContext msgContext, java.io.InputStream in, java.io.OutputStream out, java.lang.String contentType, java.lang.String soapActionHeader, java.lang.String requestURI) throws AxisFault
AxisFault
public static int initializeMessageContext(MessageContext msgContext, java.lang.String soapActionHeader, java.lang.String requestURI, java.lang.String contentType)
public static java.io.InputStream handleGZip(MessageContext msgContext, java.io.InputStream in) throws java.io.IOException
java.io.IOException
public static boolean isDoingREST(MessageContext msgContext)
public static boolean isRESTRequest(java.lang.String contentType)
contentType
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |