- All Known Subinterfaces:
GrpcResponse<A>
,GrpcResponse<A>
,GrpcResponse.Streaming<A>
,GrpcResponse.Streaming<A>
,GrpcResponse.Unary<A>
,GrpcResponse.Unary<A>
public interface GrpcBaseResponse
Base gRPC response for representing client or server responses.
It exposes gRPC response content as defined by gRPC protocol.
Considering a client exchange, where the response is received by the client from the server, implementation shall provide methods to access gRPC response content. Considering a server exchange, where the response is provided and sent from the server to the client, implementation shall provide methods to set gRPC response content.
- Since:
- 1.9
- Author:
- Jeremy Kuhn
-
Method Summary
Modifier and TypeMethodDescriptionmetadata()
Returns gRPC response metadata.Returns gRPC response trailers metadata.
-
Method Details
-
metadata
GrpcInboundResponseMetadata metadata()Returns gRPC response metadata.
- Returns:
- the response metadata
-
trailersMetadata
GrpcInboundResponseTrailersMetadata trailersMetadata()Returns gRPC response trailers metadata.
In a gRPC exchange the final gRPC status shall be provided in the trailers.
- Returns:
- the response trailers metadata
-