public class HTTPTransportUtils extends Object
Constructor and Description |
---|
HTTPTransportUtils() |
Modifier and Type | Method and Description |
---|---|
static org.apache.axiom.soap.SOAPEnvelope |
createEnvelopeFromGetRequest(String requestUrl,
Map map,
ConfigurationContext configCtx)
Deprecated.
This was used only by the now deprecated processHTTPGetRequest() method.
|
static EndpointReference[] |
getEPRsForService(ConfigurationContext configurationContext,
TransportInDescription trpInDesc,
String serviceName,
String ip,
int port) |
static InputStream |
handleGZip(MessageContext msgContext,
InputStream in) |
static int |
initializeMessageContext(MessageContext msgContext,
String soapActionHeader,
String requestURI,
String contentType) |
static boolean |
isRESTRequest(String contentType)
This will match for content types that will be regarded as REST in WSDL2.0.
|
static boolean |
processHTTPGetRequest(MessageContext msgContext,
OutputStream out,
String soapAction,
String requestURI,
ConfigurationContext configurationContext,
Map requestParameters)
Deprecated.
use RESTUtil.processURLRequest(MessageContext msgContext, OutputStream out, String contentType) instead
|
static Handler.InvocationResponse |
processHTTPPostRequest(MessageContext msgContext,
InputStream in,
OutputStream out,
String contentType,
Builder builder,
String soapActionHeader,
String requestURI) |
static Handler.InvocationResponse |
processHTTPPostRequest(MessageContext msgContext,
InputStream in,
OutputStream out,
String contentType,
String soapActionHeader,
String requestURI) |
public static org.apache.axiom.soap.SOAPEnvelope createEnvelopeFromGetRequest(String requestUrl, Map map, ConfigurationContext configCtx) throws AxisFault
requestUrl
- the request urlmap
- the map of url parametersconfigCtx
- axis ConfigurationContextAxisFault
- if an error occurspublic static boolean processHTTPGetRequest(MessageContext msgContext, OutputStream out, String soapAction, String requestURI, ConfigurationContext configurationContext, 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 messageAxisFault
- - Thrown in case a fault occurspublic static Handler.InvocationResponse processHTTPPostRequest(MessageContext msgContext, InputStream in, OutputStream out, String contentType, String soapActionHeader, String requestURI) throws AxisFault
AxisFault
public static Handler.InvocationResponse processHTTPPostRequest(MessageContext msgContext, InputStream in, OutputStream out, String contentType, Builder builder, String soapActionHeader, String requestURI) throws AxisFault
AxisFault
public static int initializeMessageContext(MessageContext msgContext, String soapActionHeader, String requestURI, String contentType)
public static InputStream handleGZip(MessageContext msgContext, InputStream in) throws IOException
IOException
public static boolean isRESTRequest(String contentType)
contentType
- content type to checkpublic static EndpointReference[] getEPRsForService(ConfigurationContext configurationContext, TransportInDescription trpInDesc, String serviceName, String ip, int port) throws AxisFault
AxisFault
Copyright © 2004–2019 The Apache Software Foundation. All rights reserved.