Class GrpcResponseStatusResolver.ResolvedStatus

java.lang.Object
org.mockserver.grpc.GrpcResponseStatusResolver.ResolvedStatus
Enclosing class:
GrpcResponseStatusResolver

public static final class GrpcResponseStatusResolver.ResolvedStatus extends Object
The resolved status, plus whether it came from an HTTP-level failure (in which case the response body is not a protobuf message of the method's output type and must be dropped).
  • Method Details

    • code

      public String code()
      The grpc-status value to emit, as a decimal string.
    • message

      public String message()
      The grpc-message to emit, or null.
    • isTransportFailure

      public boolean isTransportFailure()
      true when the status was derived from a non-2xx HTTP status rather than an explicitly-authored gRPC status. The caller must not frame the response body.
    • isOk

      public boolean isOk()
      true when the resolved status is OK.