public interface HttpClient
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONNECT_TIMEOUT
The name of the parameter that is the maximum time to wait to connect to
the server.
|
static java.lang.String |
DELETE |
static java.lang.String |
FOLLOW_REDIRECTS
The name of the parameter to automatically follow redirects.
|
static java.lang.String |
GET |
static java.lang.String |
POST |
static java.lang.String |
PUT |
static java.lang.String |
READ_TIMEOUT
The name of the parameter that is the maximum time to wait for response
data.
|
Modifier and Type | Method and Description |
---|---|
HttpResponseMessage |
execute(HttpMessage request,
java.util.Map<java.lang.String,java.lang.Object> httpParameters)
Send an HTTP request and return the response.
|
static final java.lang.String CONNECT_TIMEOUT
static final java.lang.String READ_TIMEOUT
static final java.lang.String FOLLOW_REDIRECTS
static final java.lang.String GET
static final java.lang.String POST
static final java.lang.String PUT
static final java.lang.String DELETE
HttpResponseMessage execute(HttpMessage request, java.util.Map<java.lang.String,java.lang.Object> httpParameters) throws java.io.IOException
httpParameters
- HTTP client parameters, as a map from parameter name to value.
Parameter names are defined as constants below.java.io.IOException