public class ServiceResponse extends Object
Constructor and Description |
---|
ServiceResponse(javax.ws.rs.core.Response response)
Creates a new ServiceResponse and checks that the value passed is not null.
|
Modifier and Type | Method and Description |
---|---|
String |
getReasonPhrase()
Reason phrase of the service (e.g.
|
String |
getResult() |
int |
getServiceStatusCode()
Status code of the service (e.g.
|
javax.ws.rs.core.Response.StatusType |
getServiceStatusInfo() |
boolean |
isReponseSuccessful()
Return true if the message is successful, i.e.
|
String |
toString()
Reads the returned string by the server.
|
public ServiceResponse(javax.ws.rs.core.Response response)
response
- : response of the IM REST servicepublic String getResult()
public String getReasonPhrase()
public int getServiceStatusCode()
public javax.ws.rs.core.Response.StatusType getServiceStatusInfo()
Response.getStatusInfo()
public boolean isReponseSuccessful()
Copyright © 2016. All rights reserved.