Package org.mockserver.grpc
Class GrpcResponseStatusResolver.ResolvedStatus
java.lang.Object
org.mockserver.grpc.GrpcResponseStatusResolver.ResolvedStatus
- Enclosing class:
- GrpcResponseStatusResolver
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 Summary
Modifier and TypeMethodDescriptioncode()Thegrpc-statusvalue to emit, as a decimal string.booleanisOk()truewhen the resolved status isOK.booleantruewhen the status was derived from a non-2xx HTTP status rather than an explicitly-authored gRPC status.message()Thegrpc-messageto emit, ornull.
-
Method Details
-
code
Thegrpc-statusvalue to emit, as a decimal string. -
message
Thegrpc-messageto emit, ornull. -
isTransportFailure
public boolean isTransportFailure()truewhen 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()truewhen the resolved status isOK.
-