T - placeholder for the response type.public final class ServiceResponse<T> extends Object
| Modifier and Type | Method and Description |
|---|---|
List<ServiceError> |
getErrors()
Returns any errors included in the response body.
|
T |
getResponse()
Returns the parsed entity parsed from the response element of the JSON, in the type expected for the request sent.
|
String |
getRuid()
Returns the unique ID of the request sent.
|
int |
getStatus()
Returns the HTTP status code received.
|
boolean |
isSuccess()
Returns false if there were errors in the response body, regardless of the status code, or there was an error parsing
the response for this individual request.
|
public String getRuid()
public int getStatus()
public boolean isSuccess()
public List<ServiceError> getErrors()
ServiceErrors from the response.public T getResponse()
BrightpearlApiClient and BrightpearlLegacyApiSession
classes. To avoid exceptions, call isSuccess() before this method.Copyright © 2014. All Rights Reserved.