Class ApiEntity.Unknown<T>

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

public static final class ApiEntity.Unknown<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
    • isUnknown

      public boolean isUnknown()
      Specified by:
      isUnknown in interface ApiEntity<T>
      Returns:
      true if the response is neither a problem nor an expected JSON body