Package oauth.signpost.commonshttp
Class HttpRequestAdapter
java.lang.Object
oauth.signpost.commonshttp.HttpRequestAdapter
- All Implemented Interfaces:
HttpRequest
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
setRequestUrl
(String url) unwrap()
Returns the wrapped request object, in case you must work directly on it.
-
Field Details
-
request
private org.apache.http.client.methods.HttpUriRequest request -
entity
private org.apache.http.HttpEntity entity
-
-
Constructor Details
-
HttpRequestAdapter
public HttpRequestAdapter(org.apache.http.client.methods.HttpUriRequest request)
-
-
Method Details
-
getMethod
- Specified by:
getMethod
in interfaceHttpRequest
-
getRequestUrl
- Specified by:
getRequestUrl
in interfaceHttpRequest
-
setRequestUrl
- Specified by:
setRequestUrl
in interfaceHttpRequest
-
getHeader
- Specified by:
getHeader
in interfaceHttpRequest
-
setHeader
- Specified by:
setHeader
in interfaceHttpRequest
-
getAllHeaders
- Specified by:
getAllHeaders
in interfaceHttpRequest
-
getContentType
- Specified by:
getContentType
in interfaceHttpRequest
-
getMessagePayload
- Specified by:
getMessagePayload
in interfaceHttpRequest
- Throws:
IOException
-
unwrap
Description copied from interface:HttpRequest
Returns the wrapped request object, in case you must work directly on it.- Specified by:
unwrap
in interfaceHttpRequest
- Returns:
- the wrapped request object
-