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 HttpResponse
public String statusMessage()
statusMessage
in interface HttpResponse
public long contentLength() throws IOException
contentLength
in interface HttpResponse
IOException
public InputStream getBody()
getBody
in interface HttpResponse
public String requestUrl()
requestUrl
in interface HttpResponse
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
protected okhttp3.Response getResponse()