Class ApiEntity.Response<T>

java.lang.Object
io.camunda.zeebe.client.impl.http.ApiEntity.Response<T>
All Implemented Interfaces:
ApiEntity<T>
Enclosing interface:
ApiEntity<T>

public static final class ApiEntity.Response<T> extends Object implements ApiEntity<T>
  • Method Details

    • response

      public T response()
      Specified by:
      response in interface ApiEntity<T>
      Returns:
      a successful response if any
    • problem

      public ProblemDetail problem()
      Specified by:
      problem in interface ApiEntity<T>
      Returns:
      a problem returned by the server if any
    • unknown

      public ByteBuffer unknown()
      Specified by:
      unknown in interface ApiEntity<T>
      Returns:
      a raw byte buffer of the consumed body returned by the server, e.g. when it returns a body with unknown content type
    • isResponse

      public boolean isResponse()
      Specified by:
      isResponse in interface ApiEntity<T>
      Returns:
      true if there is a response, false otherwise; always returns the opposite of ApiEntity.isProblem()