|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.synapse.transport.nhttp.util.RESTUtil
public class RESTUtil
This class provides a set of utility methods to manage the REST invocation calls going out from the nhttp transport in the HTTP GET method
| Constructor Summary | |
|---|---|
RESTUtil()
|
|
| Method Summary | |
|---|---|
static String |
getURI(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(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(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 |
processURLRequest(MessageContext msgContext,
OutputStream out,
String soapAction,
String requestURI)
Processes the HTTP GET request and builds the SOAP info-set of the REST message |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RESTUtil()
| Method Detail |
|---|
public static String getURI(MessageContext messageContext,
String address)
throws AxisFault
messageContext - - from which the SOAP infoset will be extracted to encodeaddress - - address of the actual service
AxisFault - - if the SOAP infoset cannot be converted in to the GET URL-encoded format
public static void processGetAndDeleteRequest(MessageContext msgContext,
OutputStream out,
String requestURI,
org.apache.http.Header contentTypeHeader,
String httpMethod,
boolean dispatching)
throws 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 dispatching
AxisFault - - Thrown in case a fault occurs
public static void processURLRequest(MessageContext msgContext,
OutputStream out,
String soapAction,
String requestURI)
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 to
AxisFault - - Thrown in case a fault occurs
public static void processPOSTRequest(MessageContext msgContext,
InputStream is,
OutputStream os,
String requestURI,
org.apache.http.Header contentTypeHeader,
boolean dispatching)
throws 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 dispatching
AxisFault - - Thrown in case a fault occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||