public class HttpResponseWrapper extends java.lang.Object implements HttpResponse
HttpResponse.Builder| Constructor and Description | 
|---|
HttpResponseWrapper(HttpToolResponse delegate)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
close()  | 
int | 
code()
The HTTP status code. 
 | 
java.io.InputStream | 
getContent()
The response body, or null if no body. 
 | 
long | 
getContentLength()
The length of the content, if known. 
 | 
<any> | 
headers()  | 
java.lang.String | 
reasonPhrase()
The HTTP reason phrase. 
 | 
public HttpResponseWrapper(HttpToolResponse delegate)
public void close()
           throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionpublic int code()
HttpResponsecode in interface HttpResponsepublic java.lang.String reasonPhrase()
HttpResponsereasonPhrase in interface HttpResponsepublic <any> headers()
headers in interface HttpResponsepublic long getContentLength()
HttpResponsegetContentLength in interface HttpResponseLong.MAX_VALUE,
          a negative number is returned.public java.io.InputStream getContent()
HttpResponsegetContent in interface HttpResponse