Interface ResponseChecker
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Defines how a service call reacts to a response code
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptioncheckCode(int code) This function controls how the service class reacts to response codes.
-
Field Details
-
NONE
-
-
Method Details
-
checkCode
This function controls how the service class reacts to response codes. If the response check function identifies a code that indicates a situation not covered by the service contract, it puts an exception object into the result object. In addition, flag isTemporaryProblem can be set to indicate a problem that can be solved with a retry.- Parameters:
code- returned from http request- Returns:
- check result
-