oauth.signpost.basic
Class UrlStringRequestAdapter

java.lang.Object
  extended by oauth.signpost.basic.UrlStringRequestAdapter
All Implemented Interfaces:
HttpRequest

public class UrlStringRequestAdapter
extends Object
implements HttpRequest


Constructor Summary
UrlStringRequestAdapter(String url)
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UrlStringRequestAdapter

public UrlStringRequestAdapter(String url)
Method Detail

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.