|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HttpConnector
HttpConnector - reads/writes bytes from/to http endpoints.
Nested Class Summary | |
---|---|
static class |
HttpConnector.Parameter
A key/value pair |
static interface |
HttpConnector.Response
The http response which can be used to obtain the http status, headers and the content via input stream. |
Field Summary | |
---|---|
static String |
CONTENT_LENGTH_HEADER
|
static String |
CONTENT_TYPE_HEADER
|
static String |
DEFAULT_ENCODING
|
static String |
DELETE
|
static String |
GET
|
static String |
HEAD
|
static String |
POST
|
static String |
PUT
|
static String |
X_WWW_FORM_URLENCODED
|
Method Summary | |
---|---|
HttpConnector.Response |
doDELETE(String url,
Iterable<HttpConnector.Parameter> headers)
Makes a DELETE request with the given http headers . |
HttpConnector.Response |
doDELETE(String url,
Iterable<HttpConnector.Parameter> headers,
Iterable<HttpConnector.Parameter> parameters)
Makes a DELETE request with the given http headers , parameters . |
HttpConnector.Response |
doDELETE(String url,
Iterable<HttpConnector.Parameter> headers,
Map<?,?> parameters)
Makes a DELETE request with the given http headers , parameters . |
HttpConnector.Response |
doDELETE(String url,
Map<?,?> headers)
Makes a DELETE request with the given http headers . |
HttpConnector.Response |
doDELETE(String url,
Map<?,?> headers,
Map<?,?> parameters)
Makes a DELETE request with the given http headers , parameters . |
HttpConnector.Response |
doGET(String url,
Iterable<HttpConnector.Parameter> headers)
Makes a GET request with the given http headers . |
HttpConnector.Response |
doGET(String url,
Iterable<HttpConnector.Parameter> headers,
Iterable<HttpConnector.Parameter> parameters)
Makes a GET request with the given http headers , parameters . |
HttpConnector.Response |
doGET(String url,
Iterable<HttpConnector.Parameter> headers,
Map<?,?> parameters)
Makes a GET request with the given http headers , parameters . |
HttpConnector.Response |
doGET(String url,
Map<?,?> headers)
Makes a GET request with the given http headers . |
HttpConnector.Response |
doGET(String url,
Map<?,?> headers,
Map<?,?> parameters)
Makes a GET request with the given http headers , parameters . |
HttpConnector.Response |
doHEAD(String url,
Iterable<HttpConnector.Parameter> headers)
Makes a HEAD request with the given http headers . |
HttpConnector.Response |
doHEAD(String url,
Map<?,?> headers)
Makes a HEAD request with the given http headers . |
HttpConnector.Response |
doPOST(String url,
Iterable<HttpConnector.Parameter> headers,
Iterable<HttpConnector.Parameter> parameters,
String charset)
Makes a POST request with the given http headers , parameters and the
charset - which will be appended in the Content-Type header. |
HttpConnector.Response |
doPOST(String url,
Iterable<HttpConnector.Parameter> headers,
Map<?,?> parameters,
String charset)
Makes a POST request with the given http headers , parameters and the
charset - which will be appended in the Content-Type header. |
HttpConnector.Response |
doPOST(String url,
Iterable<HttpConnector.Parameter> headers,
String contentType,
byte[] data)
Makes a POST request with the given http headers , parameters ,
contentType and the content data . |
HttpConnector.Response |
doPOST(String url,
Iterable<HttpConnector.Parameter> headers,
String contentType,
InputStreamReader reader)
Makes a POST request with the given http headers , parameters ,
contentType and the content reader as InputStreamReader. |
HttpConnector.Response |
doPOST(String url,
Map<?,?> headers,
Iterable<HttpConnector.Parameter> parameters,
String charset)
Makes a POST request with the given http headers , parameters and the
charset - which will be appended in the Content-Type header. |
HttpConnector.Response |
doPOST(String url,
Map<?,?> headers,
Map<?,?> parameters,
String charset)
Makes a POST request with the given http headers , parameters and the
charset - which will be appended in the Content-Type header. |
HttpConnector.Response |
doPOST(String url,
Map<?,?> headers,
String contentType,
byte[] data)
Makes a POST request with the given http headers , parameters and
the content data . |
HttpConnector.Response |
doPOST(String url,
Map<?,?> headers,
String contentType,
InputStreamReader reader)
Makes a POST request with the given http headers , parameters ,
contentType and the content reader as InputStreamReader. |
HttpConnector.Response |
doPUT(String url,
Iterable<HttpConnector.Parameter> headers,
Iterable<HttpConnector.Parameter> parameters,
String charset)
Makes a PUT request with the given http headers , parameters and the
charset - which will be appended in the Content-Type header. |
HttpConnector.Response |
doPUT(String url,
Iterable<HttpConnector.Parameter> headers,
Map<?,?> parameters,
String charset)
Makes a PUT request with the given http headers , parameters and the
charset - which will be appended in the Content-Type header. |
HttpConnector.Response |
doPUT(String url,
Iterable<HttpConnector.Parameter> headers,
String contentType,
byte[] data)
Makes a PUT request with the given http headers , parameters and
the content data . |
HttpConnector.Response |
doPUT(String url,
Iterable<HttpConnector.Parameter> headers,
String contentType,
InputStreamReader reader)
Makes a PUT request with the given http headers , parameters ,
contentType and the content reader as InputStreamReader. |
HttpConnector.Response |
doPUT(String url,
Map<?,?> headers,
Iterable<HttpConnector.Parameter> parameters,
String charset)
Makes a PUT request with the given http headers , parameters and the
charset - which will be appended in the Content-Type header. |
HttpConnector.Response |
doPUT(String url,
Map<?,?> headers,
Map<?,?> parameters,
String charset)
Makes a PUT request with the given http headers , parameters and the
charset - which will be appended in the Content-Type header. |
HttpConnector.Response |
doPUT(String url,
Map<?,?> headers,
String contentType,
byte[] data)
Makes a PUT request with the given http headers , parameters and
the content data . |
HttpConnector.Response |
doPUT(String url,
Map<?,?> headers,
String contentType,
InputStreamReader reader)
Makes a PUT request with the given http headers , parameters ,
contentType and the content reader as InputStreamReader. |
Field Detail |
---|
static final String HEAD
static final String GET
static final String POST
static final String PUT
static final String DELETE
static final String CONTENT_TYPE_HEADER
static final String CONTENT_LENGTH_HEADER
static final String X_WWW_FORM_URLENCODED
static final String DEFAULT_ENCODING
Method Detail |
---|
HttpConnector.Response doHEAD(String url, Map<?,?> headers) throws IOException
headers
.
IOException
HttpConnector.Response doHEAD(String url, Iterable<HttpConnector.Parameter> headers) throws IOException
headers
.
IOException
HttpConnector.Response doGET(String url, Map<?,?> headers) throws IOException
headers
.
IOException
HttpConnector.Response doGET(String url, Iterable<HttpConnector.Parameter> headers) throws IOException
headers
.
IOException
HttpConnector.Response doGET(String url, Map<?,?> headers, Map<?,?> parameters) throws IOException
headers
, parameters
.
IOException
HttpConnector.Response doGET(String url, Iterable<HttpConnector.Parameter> headers, Map<?,?> parameters) throws IOException
headers
, parameters
.
IOException
HttpConnector.Response doGET(String url, Iterable<HttpConnector.Parameter> headers, Iterable<HttpConnector.Parameter> parameters) throws IOException
headers
, parameters
.
IOException
HttpConnector.Response doDELETE(String url, Map<?,?> headers) throws IOException
headers
.
IOException
HttpConnector.Response doDELETE(String url, Iterable<HttpConnector.Parameter> headers) throws IOException
headers
.
IOException
HttpConnector.Response doDELETE(String url, Map<?,?> headers, Map<?,?> parameters) throws IOException
headers
, parameters
.
IOException
HttpConnector.Response doDELETE(String url, Iterable<HttpConnector.Parameter> headers, Map<?,?> parameters) throws IOException
headers
, parameters
.
IOException
HttpConnector.Response doDELETE(String url, Iterable<HttpConnector.Parameter> headers, Iterable<HttpConnector.Parameter> parameters) throws IOException
headers
, parameters
.
IOException
HttpConnector.Response doPOST(String url, Map<?,?> headers, Map<?,?> parameters, String charset) throws IOException
headers
, parameters
and the
charset
- which will be appended in the Content-Type header.
IOException
HttpConnector.Response doPOST(String url, Map<?,?> headers, Iterable<HttpConnector.Parameter> parameters, String charset) throws IOException
headers
, parameters
and the
charset
- which will be appended in the Content-Type header.
IOException
HttpConnector.Response doPOST(String url, Iterable<HttpConnector.Parameter> headers, Map<?,?> parameters, String charset) throws IOException
headers
, parameters
and the
charset
- which will be appended in the Content-Type header.
IOException
HttpConnector.Response doPOST(String url, Iterable<HttpConnector.Parameter> headers, Iterable<HttpConnector.Parameter> parameters, String charset) throws IOException
headers
, parameters
and the
charset
- which will be appended in the Content-Type header.
IOException
HttpConnector.Response doPOST(String url, Map<?,?> headers, String contentType, byte[] data) throws IOException
headers
, parameters
and
the content data
.
IOException
HttpConnector.Response doPOST(String url, Iterable<HttpConnector.Parameter> headers, String contentType, byte[] data) throws IOException
headers
, parameters
,
contentType
and the content data
.
IOException
HttpConnector.Response doPOST(String url, Map<?,?> headers, String contentType, InputStreamReader reader) throws IOException
headers
, parameters
,
contentType
and the content reader
as InputStreamReader.
IOException
HttpConnector.Response doPOST(String url, Iterable<HttpConnector.Parameter> headers, String contentType, InputStreamReader reader) throws IOException
headers
, parameters
,
contentType
and the content reader
as InputStreamReader.
IOException
HttpConnector.Response doPUT(String url, Map<?,?> headers, Map<?,?> parameters, String charset) throws IOException
headers
, parameters
and the
charset
- which will be appended in the Content-Type header.
IOException
HttpConnector.Response doPUT(String url, Map<?,?> headers, Iterable<HttpConnector.Parameter> parameters, String charset) throws IOException
headers
, parameters
and the
charset
- which will be appended in the Content-Type header.
IOException
HttpConnector.Response doPUT(String url, Iterable<HttpConnector.Parameter> headers, Map<?,?> parameters, String charset) throws IOException
headers
, parameters
and the
charset
- which will be appended in the Content-Type header.
IOException
HttpConnector.Response doPUT(String url, Iterable<HttpConnector.Parameter> headers, Iterable<HttpConnector.Parameter> parameters, String charset) throws IOException
headers
, parameters
and the
charset
- which will be appended in the Content-Type header.
IOException
HttpConnector.Response doPUT(String url, Map<?,?> headers, String contentType, byte[] data) throws IOException
headers
, parameters
and
the content data
.
IOException
HttpConnector.Response doPUT(String url, Iterable<HttpConnector.Parameter> headers, String contentType, byte[] data) throws IOException
headers
, parameters
and
the content data
.
IOException
HttpConnector.Response doPUT(String url, Map<?,?> headers, String contentType, InputStreamReader reader) throws IOException
headers
, parameters
,
contentType
and the content reader
as InputStreamReader.
IOException
HttpConnector.Response doPUT(String url, Iterable<HttpConnector.Parameter> headers, String contentType, InputStreamReader reader) throws IOException
headers
, parameters
,
contentType
and the content reader
as InputStreamReader.
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |