
public interface HttpClient
| Modifier and Type | Method and Description |
|---|---|
HttpResponse |
get(HttpRequest request)
Sends a get request with the parameter specified in the
HttpRequest object. |
HttpResponse |
get(String url)
Send a get request to the given url.
|
HttpResponse |
get(String url,
Map<String,List<String>> parameters)
Send a get request to the given url with the specified post parameters.
|
HttpResponse |
post(HttpRequest request)
Sends a post request with the parameter specified in the
HttpRequest object. |
HttpResponse |
post(String url)
Send a post request to the given url.
|
HttpResponse |
post(String url,
Map<String,List<String>> parameters)
Send a post request to the given url with the specified post parameters.
|
HttpResponse post(String url) throws IOException
url - url for post requestIOExceptionHttpResponse post(HttpRequest request) throws IOException
HttpRequest object.request - request objectIOExceptionHttpResponse post(String url, Map<String,List<String>> parameters) throws IOException
url - url for post requestparameters - parameters for the post requestIOExceptionHttpResponse get(String url) throws IOException
url - url for get requestIOExceptionHttpResponse get(HttpRequest request) throws IOException
HttpRequest object.request - request objectIOExceptionHttpResponse get(String url, Map<String,List<String>> parameters) throws IOException
url - url for get requestparameters - parameters for the get requestIOExceptionCopyright © 2013. All Rights Reserved.