Interface GrpcInboundRequestMetadata

All Superinterfaces:
GrpcInboundMetadata
All Known Subinterfaces:
GrpcOutboundRequestMetadata

public interface GrpcInboundRequestMetadata extends GrpcInboundMetadata

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 Details

    • getAcceptMessageEncoding

      List<String> getAcceptMessageEncoding()

      Returns the list of message encodings accepted by a client.

      Returns:
      a list of message encodings or an empty list
    • getMessageEncoding

      Optional<String> 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

      Optional<String> 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

      Optional<Duration> getTimeout()

      Returns the gRPC timeout.

      Returns:
      an optional returning the gRPC timeout or an empty optional if none was specified