public class RequestAdapter extends Object implements oauth.signpost.http.HttpRequest
Constructor and Description |
---|
RequestAdapter(okhttp3.Request request) |
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getAllHeaders() |
String |
getContentType() |
String |
getHeader(String key) |
InputStream |
getMessagePayload() |
String |
getMethod() |
String |
getRequestUrl() |
void |
setHeader(String key,
String value) |
void |
setRequestUrl(String url) |
Object |
unwrap() |
public Map<String,String> getAllHeaders()
getAllHeaders
in interface oauth.signpost.http.HttpRequest
public String getContentType()
getContentType
in interface oauth.signpost.http.HttpRequest
public String getHeader(String key)
getHeader
in interface oauth.signpost.http.HttpRequest
public InputStream getMessagePayload() throws IOException
getMessagePayload
in interface oauth.signpost.http.HttpRequest
IOException
public String getMethod()
getMethod
in interface oauth.signpost.http.HttpRequest
public String getRequestUrl()
getRequestUrl
in interface oauth.signpost.http.HttpRequest
public void setRequestUrl(String url)
setRequestUrl
in interface oauth.signpost.http.HttpRequest
public void setHeader(String key, String value)
setHeader
in interface oauth.signpost.http.HttpRequest
public Object unwrap()
unwrap
in interface oauth.signpost.http.HttpRequest
Copyright © 2016–2017 ThoughtsLive. All rights reserved.