public class RESTUtil extends Object
| Constructor and Description |
|---|
RESTUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
dispatchAndVerify(org.apache.axis2.context.MessageContext msgContext) |
static String |
getURI(org.apache.axis2.context.MessageContext messageContext,
String address)
This method will return the URI part for the GET HTTPRequest by converting
the SOAP infoset to the URL-encoded GET format
|
static void |
processGetAndDeleteRequest(org.apache.axis2.context.MessageContext msgContext,
OutputStream out,
String requestURI,
org.apache.http.Header contentTypeHeader,
org.apache.axis2.builder.Builder builder,
String httpMethod,
boolean dispatching)
Processes the HTTP GET / DELETE request and builds the SOAP info-set of the REST message
|
static void |
processGetAndDeleteRequest(org.apache.axis2.context.MessageContext msgContext,
OutputStream out,
String requestURI,
org.apache.http.Header contentTypeHeader,
String httpMethod,
boolean dispatching)
Processes the HTTP GET / DELETE request and builds the SOAP info-set of the REST message
|
static void |
processPOSTRequest(org.apache.axis2.context.MessageContext msgContext,
InputStream is,
OutputStream os,
String requestURI,
org.apache.http.Header contentTypeHeader,
boolean dispatching)
Processes the HTTP POST request and builds the SOAP info-set of the REST message
|
static void |
processPOSTRequest(org.apache.axis2.context.MessageContext msgContext,
InputStream is,
OutputStream os,
String requestURI,
org.apache.http.Header contentTypeHeader,
org.apache.axis2.builder.Builder builder,
boolean dispatching)
Processes the HTTP POST request and builds the SOAP info-set of the REST message
|
static void |
processURLRequest(org.apache.axis2.context.MessageContext msgContext,
OutputStream out,
String soapAction,
String requestURI)
Processes the HTTP GET request and builds the SOAP info-set of the REST message
|
public static String getURI(org.apache.axis2.context.MessageContext messageContext, String address) throws org.apache.axis2.AxisFault
messageContext - - from which the SOAP infoset will be extracted to encodeaddress - - address of the actual serviceorg.apache.axis2.AxisFault - - if the SOAP infoset cannot be converted in to the GET URL-encoded formatpublic static void processGetAndDeleteRequest(org.apache.axis2.context.MessageContext msgContext,
OutputStream out,
String requestURI,
org.apache.http.Header contentTypeHeader,
String httpMethod,
boolean dispatching)
throws org.apache.axis2.AxisFault
msgContext - The MessageContext of the Request Messageout - The output stream of the responserequestURI - The URL that the request came tocontentTypeHeader - The contentType header of the requesthttpMethod - The http method of the requestdispatching - Weather we should do service dispatchingorg.apache.axis2.AxisFault - - Thrown in case a fault occurspublic static void processGetAndDeleteRequest(org.apache.axis2.context.MessageContext msgContext,
OutputStream out,
String requestURI,
org.apache.http.Header contentTypeHeader,
org.apache.axis2.builder.Builder builder,
String httpMethod,
boolean dispatching)
throws org.apache.axis2.AxisFault
msgContext - The MessageContext of the Request Messageout - The output stream of the responserequestURI - The URL that the request came tocontentTypeHeader - The contentType header of the requestbuilder - The message builder to usehttpMethod - The http method of the requestdispatching - Weather we should do service dispatchingorg.apache.axis2.AxisFault - - Thrown in case a fault occurspublic static void processURLRequest(org.apache.axis2.context.MessageContext msgContext,
OutputStream out,
String soapAction,
String requestURI)
throws org.apache.axis2.AxisFault
msgContext - The MessageContext of the Request Messageout - The output stream of the responsesoapAction - SoapAction of the requestrequestURI - The URL that the request came toorg.apache.axis2.AxisFault - - Thrown in case a fault occurspublic static void processPOSTRequest(org.apache.axis2.context.MessageContext msgContext,
InputStream is,
OutputStream os,
String requestURI,
org.apache.http.Header contentTypeHeader,
boolean dispatching)
throws org.apache.axis2.AxisFault
msgContext - The MessageContext of the Request Messageis - The input stream of the requestos - The output stream of the responserequestURI - The URL that the request came tocontentTypeHeader - The contentType header of the requestdispatching - Weather we should do dispatchingorg.apache.axis2.AxisFault - - Thrown in case a fault occurspublic static void processPOSTRequest(org.apache.axis2.context.MessageContext msgContext,
InputStream is,
OutputStream os,
String requestURI,
org.apache.http.Header contentTypeHeader,
org.apache.axis2.builder.Builder builder,
boolean dispatching)
throws org.apache.axis2.AxisFault
msgContext - The MessageContext of the Request Messageis - The input stream of the requestos - The output stream of the responserequestURI - The URL that the request came tocontentTypeHeader - The contentType header of the requestbuilder - The message builder to usedispatching - Weather we should do dispatchingorg.apache.axis2.AxisFault - - Thrown in case a fault occurspublic static void dispatchAndVerify(org.apache.axis2.context.MessageContext msgContext)
throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFaultCopyright © 2005-2017 Apache Software Foundation. All Rights Reserved.