public interface HttpClient
| Modifier and Type | Method and Description |
|---|---|
org.apache.http.HttpResponse |
executeGet(String uri) |
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 executeGet(String uri) throws IOException
IOExceptionorg.apache.http.HttpResponse executePost(String uri, String payloadToSend) throws IOException
executePost(String, String, ContentType) instead.uri - the target to send the POST request to.payloadToSend - the POST payload as XML encoded as UTF-8.IOException - if sending the request fails.org.apache.http.HttpResponse executePost(String uri, String payloadToSend, org.apache.http.entity.ContentType contentType) throws IOException
uri - the target to send the POST request to.payloadToSend - the POST payload as XML.contentType - the content-type of the payload.IOException - if sending the request fails.org.apache.http.HttpResponse executePost(String uri, org.apache.http.HttpEntity payloadToSend) throws IOException
uri - the target to send the POST request to.payloadToSend - a more generic way to send arbitrary content.IOException - if sending the request fails.org.apache.http.HttpResponse executeMethod(org.apache.http.client.methods.HttpRequestBase method)
throws IOException
method - the HTTP method to execute.IOException - if sending the request failsCopyright © 2015–2018 52North Initiative for Geospatial Open Source Software GmbH. All rights reserved.