Module io.inverno.mod.grpc.base
Package io.inverno.mod.grpc.base
Interface GrpcInboundRequestMetadata
- All Superinterfaces:
GrpcInboundMetadata
- All Known Subinterfaces:
GrpcOutboundRequestMetadata
Represents immutable inbound gRPC request metadata.
This extends the GrpcInboundMetadata
to expose request specific information like accepted message encodings, message encoding, message type and timeout.
An inbound request is received by a server in a server exchange.
- Since:
- 1.9
- Author:
- Jeremy Kuhn
-
Method Summary
Modifier and TypeMethodDescriptionReturns the list of message encodings accepted by a client.Returns the encoding of messages sent by a client.Returns the type of messages sent by a client.Returns the gRPC timeout.Methods inherited from interface io.inverno.mod.grpc.base.GrpcInboundMetadata
contains, contains, containsBinary, containsBinary, get, getAll, getAllBinary, getBinary, getBinaryNames, getNames
-
Method Details
-
getAcceptMessageEncoding
Returns the list of message encodings accepted by a client.
- Returns:
- a list of message encodings or an empty list
-
getMessageEncoding
Returns the encoding of messages sent by a client.
- Returns:
- an optional returning the message encoding or an empty optional if none was specified
-
getMessageType
Returns the type of messages sent by a client.
- Returns:
- an optional returning the message type or an empty optional if none was specified
-
getTimeout
Returns the gRPC timeout.
- Returns:
- an optional returning the gRPC timeout or an empty optional if none was specified
-