public interface HttpClient
Modifier and Type | Method and Description |
---|---|
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)
Sends the given payload as content-type text/xml with UTF-8 encoding 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 with UTF-8 encoding to the determined URI.
|
org.apache.http.impl.client.DefaultHttpClient |
getHttpClientToDecorate() |
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
executePost(String, String, ContentType)
instead.uri
- the target to send the POST request to.payloadToSend
- the POST payload as XML encoded as UTF-8.HttpClientException
- if sending the request fails.org.apache.http.HttpResponse executePost(String uri, String payloadToSend) throws HttpClientException
executePost(String, String, ContentType)
instead.uri
- the target to send the POST request to.payloadToSend
- the POST payload as XML encoded as UTF-8.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
- the HTTP method to execute.HttpClientException
- if sending the request failsCopyright © 2012–2017 52North Initiative for Geospatial Open Source Software GmbH. All rights reserved.