public class OkHttpRequestAdapter
extends java.lang.Object
implements oauth.signpost.http.HttpRequest
HttpRequest implementation that is backed by an OkHttp Request object. This is used by
oauth-signpost to read the Request and sign it.| Constructor and Description |
|---|
OkHttpRequestAdapter(okhttp3.Request request)
Constructs a new
OkHttpRequestAdapter. |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,java.lang.String> |
getAllHeaders() |
java.lang.String |
getContentType() |
java.lang.String |
getHeader(java.lang.String key) |
java.io.InputStream |
getMessagePayload() |
java.lang.String |
getMethod() |
java.lang.String |
getRequestUrl() |
void |
setHeader(java.lang.String key,
java.lang.String value) |
void |
setRequestUrl(java.lang.String url) |
java.lang.Object |
unwrap() |
public OkHttpRequestAdapter(okhttp3.Request request)
OkHttpRequestAdapter.request - the Request that is to be signed.public java.util.Map<java.lang.String,java.lang.String> getAllHeaders()
getAllHeaders in interface oauth.signpost.http.HttpRequestpublic java.lang.String getContentType()
getContentType in interface oauth.signpost.http.HttpRequestpublic java.lang.String getHeader(java.lang.String key)
getHeader in interface oauth.signpost.http.HttpRequestpublic java.io.InputStream getMessagePayload()
throws java.io.IOException
getMessagePayload in interface oauth.signpost.http.HttpRequestjava.io.IOExceptionpublic java.lang.String getMethod()
getMethod in interface oauth.signpost.http.HttpRequestpublic java.lang.String getRequestUrl()
getRequestUrl in interface oauth.signpost.http.HttpRequestpublic void setHeader(java.lang.String key,
java.lang.String value)
setHeader in interface oauth.signpost.http.HttpRequestpublic void setRequestUrl(java.lang.String url)
setRequestUrl in interface oauth.signpost.http.HttpRequestpublic java.lang.Object unwrap()
unwrap in interface oauth.signpost.http.HttpRequestCopyright © 2016. All Rights Reserved.