Package net.oauth.http
Interface HttpClient
-
public interface HttpClient
-
-
Field Summary
Fields Modifier and Type Field Description static StringCONNECT_TIMEOUTThe name of the parameter that is the maximum time to wait to connect to the server.static StringDELETEstatic StringFOLLOW_REDIRECTSThe name of the parameter to automatically follow redirects.static StringGETstatic StringPOSTstatic StringPUTstatic StringREAD_TIMEOUTThe name of the parameter that is the maximum time to wait for response data.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description HttpResponseMessageexecute(HttpMessage request, Map<String,Object> httpParameters)Send an HTTP request and return the response.
-
-
-
Field Detail
-
CONNECT_TIMEOUT
static final String CONNECT_TIMEOUT
The name of the parameter that is the maximum time to wait to connect to the server. (Integer msec)- See Also:
- Constant Field Values
-
READ_TIMEOUT
static final String READ_TIMEOUT
The name of the parameter that is the maximum time to wait for response data. (Integer msec)- See Also:
- Constant Field Values
-
FOLLOW_REDIRECTS
static final String FOLLOW_REDIRECTS
The name of the parameter to automatically follow redirects. (Boolean)- See Also:
- Constant Field Values
-
GET
static final String GET
- See Also:
- Constant Field Values
-
POST
static final String POST
- See Also:
- Constant Field Values
-
PUT
static final String PUT
- See Also:
- Constant Field Values
-
DELETE
static final String DELETE
- See Also:
- Constant Field Values
-
-
Method Detail
-
execute
HttpResponseMessage execute(HttpMessage request, Map<String,Object> httpParameters) throws IOException
Send an HTTP request and return the response.- Parameters:
httpParameters- HTTP client parameters, as a map from parameter name to value. Parameter names are defined as constants below.- Throws:
IOException
-
-