public class OkHttpResponseWrapper extends Object implements HttpResponse
| Constructor and Description |
|---|
OkHttpResponseWrapper(okhttp3.Response response) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
long |
contentLength() |
InputStream |
getBody() |
protected okhttp3.Response |
getResponse() |
String |
requestUrl() |
int |
statusCode() |
String |
statusMessage() |
public int statusCode()
statusCode in interface HttpResponsepublic String statusMessage()
statusMessage in interface HttpResponsepublic long contentLength()
throws IOException
contentLength in interface HttpResponseIOExceptionpublic InputStream getBody()
getBody in interface HttpResponsepublic String requestUrl()
requestUrl in interface HttpResponsepublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionprotected okhttp3.Response getResponse()