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.

@FunctionalInterface public interface ResponseChecker
Defines how a service call reacts to a response code
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final ResponseChecker
     
  • Method Summary

    Modifier and Type
    Method
    Description
    checkCode(int code)
    This function controls how the service class reacts to response codes.
  • Field Details

  • Method Details

    • checkCode

      ResponseChecker.CheckResult checkCode(int code)
      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