|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvle.domain.webservice.http.impl.HttpRestTransportImpl
public class HttpRestTransportImpl
Thread-safe Http transport implementation which uses the Jakarta Commons HttpClient package. See http://jakarta.apache.org/commons/httpclient/
| Field Summary |
|---|
| Fields inherited from interface vle.domain.webservice.http.HttpRestTransport |
|---|
APPLICATION_XML |
| Constructor Summary | |
|---|---|
HttpRestTransportImpl()
Constructs a newly allocated HttpRestTransportImpl object. |
|
| Method Summary | |
|---|---|
InputStream |
get(HttpGetRequest httpGetRequestData)
Performs the GET operation given the data required for the get. |
String |
getBaseUrl()
Get the base url bound to this HTTP transport. |
org.apache.commons.httpclient.methods.PostMethod |
post(HttpPostRequest httpPostRequestData)
Performs the POST operation given the data required for the post. |
Map<String,String> |
put(HttpPutRequest httpPutRequestData)
Performs the PUT operation given the data required for the put. |
void |
setBaseUrl(String baseUrl)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HttpRestTransportImpl()
| Method Detail |
|---|
public String getBaseUrl()
HttpRestTransport
getBaseUrl in interface HttpRestTransportnet.sf.sail.webapp.domain.webservice.http.HttpRestTransport#getBaseUrl()public void setBaseUrl(String baseUrl)
baseUrl - the baseUrl to set
public InputStream get(HttpGetRequest httpGetRequestData)
throws HttpStatusCodeException
HttpRestTransport
get in interface HttpRestTransporthttpGetRequestData - All the data required for this get request.
InputStream containing the response body.
HttpStatusCodeException - for exceptions which are the result of getting an unexpected
HttpStatusCode in the response. These can be handled by the calling
method or ignored as required by the situation.net.sf.sail.webapp.domain.webservice.http.HttpRestTransport#get(net.sf.sail.webapp.domain.webservice.http.HttpGetRequest)
public org.apache.commons.httpclient.methods.PostMethod post(HttpPostRequest httpPostRequestData)
throws HttpStatusCodeException
HttpRestTransport
post in interface HttpRestTransporthttpPostRequestData - All the data required for this post request.
Map of response headers where the key is the
header name and the value is the header value.
HttpStatusCodeException - for exceptions which should be handled by the calling method.net.sf.sail.webapp.domain.webservice.http.HttpRestTransport#post(net.sf.sail.webapp.domain.webservice.http.HttpPostRequest)
public Map<String,String> put(HttpPutRequest httpPutRequestData)
throws HttpStatusCodeException
HttpRestTransport
put in interface HttpRestTransporthttpPutRequestData - All the data required for this put request
Map of response headers where the key is the
header name and the value is the header value.
HttpStatusCodeException - for exceptions which should be handled by the calling method.net.sf.sail.webapp.domain.webservice.http.HttpRestTransport#put(net.sf.sail.webapp.domain.webservice.http.HttpPutRequest)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||