oauth.signpost.http
Interface HttpRequest
- All Known Implementing Classes:
- 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.
- Author:
- Matthias Kaeppler
- See Also:
HttpURLConnectionRequestAdapter
getMethod
String getMethod()
getRequestUrl
String getRequestUrl()
setRequestUrl
void setRequestUrl(String url)
setHeader
void setHeader(String name,
String value)
getHeader
String getHeader(String name)
getAllHeaders
Map<String,String> getAllHeaders()
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
Copyright © 2010. All Rights Reserved.