public class HttpClientResponse extends Object implements HttpAdapterResponse
| Constructor and Description |
|---|
HttpClientResponse(org.apache.http.client.methods.CloseableHttpResponse response) |
| Modifier and Type | Method and Description |
|---|---|
String |
body() |
int |
code() |
String |
getResponseHeader(String name) |
boolean |
isSuccessful() |
String |
message() |
public HttpClientResponse(org.apache.http.client.methods.CloseableHttpResponse response)
throws org.apache.http.ParseException,
IOException
org.apache.http.ParseExceptionIOExceptionpublic boolean isSuccessful()
isSuccessful in interface HttpAdapterResponsepublic String body() throws IOException
body in interface HttpAdapterResponseIOExceptionpublic int code()
code in interface HttpAdapterResponsepublic String message()
message in interface HttpAdapterResponsepublic String getResponseHeader(String name)
getResponseHeader in interface HttpAdapterResponseCopyright © 2017. All Rights Reserved.