Package oauth.signpost.http
Interface HttpRequest
- All Known Implementing Classes:
HttpRequestAdapter
,HttpURLConnectionRequestAdapter
,UrlStringRequestAdapter
public interface HttpRequest
A concise description of an HTTP request. Contains methods to access all
those parts of an HTTP request which Signpost needs to sign a message. If you
want to extend Signpost to sign a different kind of HTTP request than those
currently supported, you'll have to write an adapter which implements this
interface and a custom
OAuthConsumer
which performs the wrapping.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
setRequestUrl
(String url) unwrap()
Returns the wrapped request object, in case you must work directly on it.
-
Method Details
-
getMethod
String getMethod() -
getRequestUrl
String getRequestUrl() -
setRequestUrl
-
setHeader
-
getHeader
-
getAllHeaders
-
getMessagePayload
- Throws:
IOException
-
getContentType
String getContentType() -
unwrap
Object unwrap()Returns the wrapped request object, in case you must work directly on it.- Returns:
- the wrapped request object
-