public class HTTPResponse extends Object implements AutoCloseable
| Constructor and Description |
|---|
HTTPResponse(org.apache.http.HttpResponse response) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
org.apache.http.HttpResponse |
getResponse() |
byte[] |
getResponseAsBytes() |
String |
getResponseAsString() |
int |
getStatus() |
boolean |
isStatusClientError() |
boolean |
isStatusOK() |
boolean |
isStatusRedirect() |
boolean |
isStatusServerError() |
public org.apache.http.HttpResponse getResponse()
public String getResponseAsString()
public byte[] getResponseAsBytes()
public int getStatus()
public boolean isStatusOK()
public boolean isStatusRedirect()
public boolean isStatusClientError()
public boolean isStatusServerError()
public void close()
close in interface AutoCloseableCopyright © 2012–2018 Taimos GmbH. All rights reserved.