public interface GrpcServiceContext extends ConnectionContext, GrpcMetadata
| Modifier and Type | Interface and Description |
|---|---|
static interface |
GrpcServiceContext.GrpcProtocol |
| Modifier and Type | Method and Description |
|---|---|
GrpcExecutionContext |
executionContext() |
GrpcServiceContext.GrpcProtocol |
protocol() |
default ContextMap |
responseContext()
A response context associated with this
GrpcMetadata that translates into
HttpMetaData.context(). |
List<ContentCodec> |
supportedMessageCodings()
Deprecated.
Will be removed along with
ContentCodec. |
localAddress, remoteAddress, socketOption, sslConfig, sslSessionpath, requestContextGrpcExecutionContext executionContext()
executionContext in interface ConnectionInfoGrpcServiceContext.GrpcProtocol protocol()
protocol in interface ConnectionInfo@Deprecated List<ContentCodec> supportedMessageCodings()
ContentCodec.ContentCodec codings available for this gRPC call.ContentCodec codings available for this gRPC call.default ContextMap responseContext()
GrpcMetadata that translates into
HttpMetaData.context().
Context can be used to associate a state with a response without serializing its state on the wire or transmit a state between HTTP and gRPC layers.
Notes:
Publisher either for reading or writing data back,
only modifications to the responseContext() made before the endpoint method returns are visible for
HTTP headers. Any other modifications made from inside the
asynchronous chain of operators or from inside the Publisher.defer(Supplier) operator will be visible
only for HTTP trailers.BlockingStreamingGrpcServerResponse, only
modifications to the responseContext() made before invocation of
BlockingStreamingGrpcServerResponse.sendMetaData() method are visible for HTTP
headers. Any other modifications made later (while operating with
GrpcPayloadWriter) will be visible only for HTTP
trailers.responseContext in interface GrpcMetadataGrpcMetadata that translates into
HttpMetaData.context().