public class WebServiceResponse extends Object
| Constructor and Description |
|---|
WebServiceResponse(int statusCode,
String statusDescription,
String body) |
| Modifier and Type | Method and Description |
|---|---|
static WebServiceResponse |
fromClientResponse(com.sun.jersey.api.client.ClientResponse response)
Creates a new
WebServiceResponse from a ClientResponse. |
String |
getBody() |
int |
getStatusCode() |
String |
getStatusDescription() |
boolean |
isSuccessful()
Returns true if the status code from an HTTP client response is one of the family 2xx
(success)
|
String |
toString() |
public static WebServiceResponse fromClientResponse(com.sun.jersey.api.client.ClientResponse response)
WebServiceResponse from a ClientResponse.response - the client response to retrieve dataWebServiceResponse.public int getStatusCode()
public String getStatusDescription()
public String getBody()
public boolean isSuccessful()
true if the status code belongs to the "successful" family 2xx;
otherwise, falseCopyright © 2020. All rights reserved.