Module io.inverno.mod.grpc.base
Package io.inverno.mod.grpc.base
Interface GrpcOutboundResponseTrailersMetadata
- All Superinterfaces:
GrpcInboundMetadata
,GrpcInboundResponseTrailersMetadata
,GrpcOutboundMetadata<GrpcOutboundResponseTrailersMetadata>
public interface GrpcOutboundResponseTrailersMetadata
extends GrpcInboundResponseTrailersMetadata, GrpcOutboundMetadata<GrpcOutboundResponseTrailersMetadata>
Represents mutable outbound gRPC response metadata.
This extends the GrpcOutboundMetadata
to expose response specific information like accepted message encodings or message encoding.
An outbound response is sent by a server in a server exchange, trailers metadata are sent after the response message publisher completes to terminates the gRPC exchange.
- Since:
- 1.9
- Author:
- Jeremy Kuhn
-
Method Summary
Modifier and TypeMethodDescriptionstatus
(int statusCode) Sets the gRPC status code.status
(GrpcStatus status) Sets the gRPC status.statusMessage
(String message) Sets the gRPC status message.Methods inherited from interface io.inverno.mod.grpc.base.GrpcInboundMetadata
contains, contains, containsBinary, containsBinary, get, getAll, getAllBinary, getBinary, getBinaryNames, getNames
Methods inherited from interface io.inverno.mod.grpc.base.GrpcInboundResponseTrailersMetadata
getStatus, getStatusCode, getStatusMessage
Methods inherited from interface io.inverno.mod.grpc.base.GrpcOutboundMetadata
add, addBinary, isWritten, remove, removeBinary, set, setBinary
-
Method Details
-
status
Sets the gRPC status code.
- Parameters:
statusCode
- a gRPC status code- Returns:
- the response trailers metadata
-
status
Sets the gRPC status.
- Parameters:
status
- a gRPC status- Returns:
- the response trailers metadata
-
statusMessage
Sets the gRPC status message.
- Parameters:
message
- a message- Returns:
- the response trailers metadata
-