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 customOAuthConsumer
which 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()
String
getContentType()
String
getHeader(String name)
InputStream
getMessagePayload()
String
getMethod()
String
getRequestUrl()
void
setHeader(String name, String value)
void
setRequestUrl(String url)
Object
unwrap()
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
-
-