|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HttpClient
Method Summary | |
---|---|
org.apache.http.HttpResponse |
executeGet(String uri)
|
org.apache.http.HttpResponse |
executeGet(String baseUri,
RequestParameters parameters)
|
org.apache.http.HttpResponse |
executeMethod(org.apache.http.client.methods.HttpRequestBase method)
|
org.apache.http.HttpResponse |
executePost(String uri,
org.apache.http.HttpEntity payloadToSend)
Sends the given payload to the determined URI. |
org.apache.http.HttpResponse |
executePost(String uri,
String payloadToSend,
org.apache.http.entity.ContentType contentType)
Sends the given payload (marked to be of a specific content-type) to the determined URI. |
org.apache.http.HttpResponse |
executePost(String uri,
org.apache.xmlbeans.XmlObject payloadToSend)
Sends the given payload as content-type text/xml to the determined URI. |
org.apache.http.impl.client.DefaultHttpClient |
getHttpClientToDecorate()
|
Method Detail |
---|
org.apache.http.impl.client.DefaultHttpClient getHttpClientToDecorate()
org.apache.http.HttpResponse executeGet(String uri) throws HttpClientException
HttpClientException
org.apache.http.HttpResponse executeGet(String baseUri, RequestParameters parameters) throws HttpClientException
baseUri
- the target to send the GET request to.parameters
- the request/query parameters.
HttpClientException
- if sending the request fails.org.apache.http.HttpResponse executePost(String uri, org.apache.xmlbeans.XmlObject payloadToSend) throws HttpClientException
uri
- the target to send the POST request to.payloadToSend
- the POST payload as XML.
HttpClientException
- if sending the request fails.org.apache.http.HttpResponse executePost(String uri, String payloadToSend, org.apache.http.entity.ContentType contentType) throws HttpClientException
uri
- the target to send the POST request to.payloadToSend
- the POST payload as XML.contentType
- the content-type of the payload.
HttpClientException
- if sending the request fails.org.apache.http.HttpResponse executePost(String uri, org.apache.http.HttpEntity payloadToSend) throws HttpClientException
uri
- the target to send the POST request to.payloadToSend
- a more generic way to send arbitrary content.
HttpClientException
- if sending the request fails.org.apache.http.HttpResponse executeMethod(org.apache.http.client.methods.HttpRequestBase method) throws HttpClientException
method
-
HttpClientException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |