public final class Response extends Object implements IResponse
| Constructor and Description |
|---|
Response(net.anwiba.commons.process.cancel.ICanceler cancelable,
org.apache.http.client.HttpClient client,
org.apache.http.HttpResponse response) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
String |
getBody() |
String |
getContentEncoding() |
long |
getContentLength() |
String |
getContentType() |
InputStream |
getInputStream() |
int |
getStatusCode() |
String |
getStatusText() |
public Response(net.anwiba.commons.process.cancel.ICanceler cancelable,
org.apache.http.client.HttpClient client,
org.apache.http.HttpResponse response)
public String getBody() throws IOException
getBody in interface IResponseIOExceptionpublic int getStatusCode()
getStatusCode in interface IResponsepublic String getStatusText()
getStatusText in interface IResponsepublic InputStream getInputStream() throws IOException
getInputStream in interface IResponseIOExceptionpublic long getContentLength()
getContentLength in interface IResponsepublic String getContentType()
getContentType in interface IResponsepublic String getContentEncoding()
getContentEncoding in interface IResponsepublic void close()
throws IOException
close in interface AutoCloseableclose in interface IResponseIOExceptionCopyright © 2007–2017 Andreas W. Bartels. All rights reserved.