public abstract class HttpRequestor extends Object
HttpURLConnection
implementation, then just use StandardHttpRequestor.Instance.| Modifier and Type | Class and Description |
|---|---|
static class |
HttpRequestor.Header
A simple structure holding an HTTP header, which is key/value pair.
|
static class |
HttpRequestor.Response |
static class |
HttpRequestor.Uploader |
| Constructor and Description |
|---|
HttpRequestor() |
| Modifier and Type | Method and Description |
|---|---|
abstract HttpRequestor.Response |
doGet(String url,
Iterable<HttpRequestor.Header> headers) |
abstract HttpRequestor.Uploader |
startPost(String url,
Iterable<HttpRequestor.Header> headers) |
abstract HttpRequestor.Uploader |
startPut(String url,
Iterable<HttpRequestor.Header> headers) |
public abstract HttpRequestor.Response doGet(String url, Iterable<HttpRequestor.Header> headers) throws IOException
IOExceptionpublic abstract HttpRequestor.Uploader startPost(String url, Iterable<HttpRequestor.Header> headers) throws IOException
IOExceptionpublic abstract HttpRequestor.Uploader startPut(String url, Iterable<HttpRequestor.Header> headers) throws IOException
IOExceptionCopyright © 2014. All rights reserved.