oauth.signpost.basic
Class UrlStringRequestAdapter
java.lang.Object
oauth.signpost.basic.UrlStringRequestAdapter
- All Implemented Interfaces:
- HttpRequest
public class UrlStringRequestAdapter
- extends Object
- implements HttpRequest
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UrlStringRequestAdapter
public UrlStringRequestAdapter(String url)
getMethod
public String getMethod()
- Specified by:
getMethod
in interface HttpRequest
getRequestUrl
public String getRequestUrl()
- Specified by:
getRequestUrl
in interface HttpRequest
setRequestUrl
public void setRequestUrl(String url)
- Specified by:
setRequestUrl
in interface HttpRequest
setHeader
public void setHeader(String name,
String value)
- Specified by:
setHeader
in interface HttpRequest
getHeader
public String getHeader(String name)
- Specified by:
getHeader
in interface HttpRequest
getAllHeaders
public Map<String,String> getAllHeaders()
- Specified by:
getAllHeaders
in interface HttpRequest
getMessagePayload
public InputStream getMessagePayload()
throws IOException
- Specified by:
getMessagePayload
in interface HttpRequest
- Throws:
IOException
getContentType
public String getContentType()
- Specified by:
getContentType
in interface HttpRequest
unwrap
public Object unwrap()
- Description copied from interface:
HttpRequest
- Returns the wrapped request object, in case you must work directly on it.
- Specified by:
unwrap
in interface HttpRequest
- Returns:
- the wrapped request object
Copyright © 2010. All Rights Reserved.