public class OkHttpResponseAdapter
extends java.lang.Object
implements oauth.signpost.http.HttpResponse
HttpResponse implementation that is backed by an OkHttp Response object. This is used by
oauth-signpost to read the Response.| Constructor and Description |
|---|
OkHttpResponseAdapter(okhttp3.Response response) |
| Modifier and Type | Method and Description |
|---|---|
java.io.InputStream |
getContent() |
java.lang.String |
getReasonPhrase() |
int |
getStatusCode() |
java.lang.Object |
unwrap() |
public int getStatusCode()
throws java.io.IOException
getStatusCode in interface oauth.signpost.http.HttpResponsejava.io.IOExceptionpublic java.lang.String getReasonPhrase()
throws java.lang.Exception
getReasonPhrase in interface oauth.signpost.http.HttpResponsejava.lang.Exceptionpublic java.io.InputStream getContent()
throws java.io.IOException
getContent in interface oauth.signpost.http.HttpResponsejava.io.IOExceptionpublic java.lang.Object unwrap()
unwrap in interface oauth.signpost.http.HttpResponseCopyright © 2016. All Rights Reserved.