oauth.signpost.commonshttp
Class HttpRequestAdapter
java.lang.Object
oauth.signpost.commonshttp.HttpRequestAdapter
- All Implemented Interfaces:
- HttpRequest
public class HttpRequestAdapter
- extends Object
- implements HttpRequest
|
Constructor Summary |
HttpRequestAdapter(org.apache.http.client.methods.HttpUriRequest request)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpRequestAdapter
public HttpRequestAdapter(org.apache.http.client.methods.HttpUriRequest request)
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
getHeader
public String getHeader(String name)
- Specified by:
getHeader in interface HttpRequest
setHeader
public void setHeader(String name,
String value)
- Specified by:
setHeader in interface HttpRequest
getAllHeaders
public Map<String,String> getAllHeaders()
- Specified by:
getAllHeaders in interface HttpRequest
getContentType
public String getContentType()
- Specified by:
getContentType in interface HttpRequest
getMessagePayload
public InputStream getMessagePayload()
throws IOException
- Specified by:
getMessagePayload in interface HttpRequest
- Throws:
IOException
Copyright © 2010. All Rights Reserved.