Interface GrpcInboundResponseMetadata

All Superinterfaces:
GrpcInboundMetadata
All Known Subinterfaces:
GrpcOutboundResponseMetadata

public interface GrpcInboundResponseMetadata extends GrpcInboundMetadata

Represents immutable inbound gRPC response metadata.

This extends the GrpcInboundMetadata to expose response specific information like accepted message encodings or the message encoding.

An inbound response is received by a client in a client exchange, the metadata are received first and initiates the gRPC exchange.

Since:
1.9
Author:
Jeremy Kuhn
  • Method Details

    • getAcceptMessageEncoding

      List<String> getAcceptMessageEncoding()

      Returns the list of message encodings accepted by a server.

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

      Optional<String> getMessageEncoding()

      Returns the encoding of messages sent by a server.

      Returns:
      an optional returning the message encoding or an empty optional if none was specified