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