Package oauth.signpost.http
Interface HttpRequest
-
- All Known Implementing Classes:
HttpURLConnectionRequestAdapter,UrlStringRequestAdapter
public interface HttpRequestA 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 customOAuthConsumerwhich performs the wrapping.- Author:
- Matthias Kaeppler
- See Also:
HttpURLConnectionRequestAdapter
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map<String,String>getAllHeaders()StringgetContentType()StringgetHeader(String name)InputStreamgetMessagePayload()StringgetMethod()StringgetRequestUrl()voidsetHeader(String name, String value)voidsetRequestUrl(String url)Objectunwrap()Returns the wrapped request object, in case you must work directly on it.
-
-
-
Method Detail
-
getMethod
String getMethod()
-
getRequestUrl
String getRequestUrl()
-
setRequestUrl
void setRequestUrl(String url)
-
getMessagePayload
InputStream getMessagePayload() throws IOException
- 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
-
-