public interface MonitoredRequestErrorParser<T extends MonitoredRequestErrorModel>
MonitoredRequestError out of an Response.| Modifier and Type | Method and Description |
|---|---|
boolean |
isApplicable(java.lang.String contentType,
int statusCode)
Indicates whether this MonitoredRequestErrorParser is applicable to the given Response
|
T |
parseErrorFrom(java.lang.Class<T> error,
int statusCode,
java.lang.String responseBody)
Gets the
MonitoredRequestError value from the Response |
boolean isApplicable(java.lang.String contentType,
int statusCode)
contentType - Response content typestatusCode - response status codeT parseErrorFrom(java.lang.Class<T> error, int statusCode, java.lang.String responseBody)
MonitoredRequestError value from the Responseerror - class to be instantiated as errorstatusCode - response status coderesponseBody - Response body to extract the error fromTCopyright © 2018 SAP SE. All Rights Reserved.