Uses of Interface
io.grpc.ServerInterceptor
-
Packages that use ServerInterceptor Package Description io.grpc The gRPC core public API.io.grpc.stub API for the Stub layer.io.grpc.testing API that is useful for testing gRPC.io.grpc.util Utilities with advanced features in the core layer that user can optionally use.io.grpc.xds.orca -
-
Uses of ServerInterceptor in io.grpc
Methods in io.grpc with parameters of type ServerInterceptor Modifier and Type Method Description T
ForwardingServerBuilder. intercept(ServerInterceptor interceptor)
T
ServerBuilder. intercept(ServerInterceptor interceptor)
Adds aServerInterceptor
that is run for all services on the server.static ServerServiceDefinition
ServerInterceptors. intercept(BindableService bindableService, ServerInterceptor... interceptors)
static ServerServiceDefinition
ServerInterceptors. intercept(ServerServiceDefinition serviceDef, ServerInterceptor... interceptors)
Create a newServerServiceDefinition
whoseServerCallHandler
s will callinterceptors
before calling the pre-existingServerCallHandler
.static ServerServiceDefinition
ServerInterceptors. interceptForward(BindableService bindableService, ServerInterceptor... interceptors)
static ServerServiceDefinition
ServerInterceptors. interceptForward(ServerServiceDefinition serviceDef, ServerInterceptor... interceptors)
Create a newServerServiceDefinition
whoseServerCallHandler
s will callinterceptors
before calling the pre-existingServerCallHandler
.Method parameters in io.grpc with type arguments of type ServerInterceptor Modifier and Type Method Description static ServerServiceDefinition
ServerInterceptors. intercept(BindableService bindableService, List<? extends ServerInterceptor> interceptors)
static ServerServiceDefinition
ServerInterceptors. intercept(ServerServiceDefinition serviceDef, List<? extends ServerInterceptor> interceptors)
Create a newServerServiceDefinition
whoseServerCallHandler
s will callinterceptors
before calling the pre-existingServerCallHandler
.static ServerServiceDefinition
ServerInterceptors. interceptForward(BindableService bindableService, List<? extends ServerInterceptor> interceptors)
static ServerServiceDefinition
ServerInterceptors. interceptForward(ServerServiceDefinition serviceDef, List<? extends ServerInterceptor> interceptors)
Create a newServerServiceDefinition
whoseServerCallHandler
s will callinterceptors
before calling the pre-existingServerCallHandler
. -
Uses of ServerInterceptor in io.grpc.stub
Methods in io.grpc.stub that return ServerInterceptor Modifier and Type Method Description static ServerInterceptor
MetadataUtils. newAttachMetadataServerInterceptor(Metadata extras)
Returns a ServerInterceptor that adds the specified Metadata to every response stream, one way or another. -
Uses of ServerInterceptor in io.grpc.testing
Methods in io.grpc.testing that return ServerInterceptor Modifier and Type Method Description static ServerInterceptor
TestUtils. recordRequestHeadersInterceptor(AtomicReference<Metadata> headersCapture)
Capture the request headers from a client. -
Uses of ServerInterceptor in io.grpc.util
Classes in io.grpc.util that implement ServerInterceptor Modifier and Type Class Description class
TransmitStatusRuntimeExceptionInterceptor
A class that intercepts uncaught exceptions of typeStatusRuntimeException
and handles them by closing theServerCall
, and transmitting the exception's status and metadata to the client.Methods in io.grpc.util that return ServerInterceptor Modifier and Type Method Description static ServerInterceptor
TransmitStatusRuntimeExceptionInterceptor. instance()
-
Uses of ServerInterceptor in io.grpc.xds.orca
Classes in io.grpc.xds.orca that implement ServerInterceptor Modifier and Type Class Description class
OrcaMetricReportingServerInterceptor
AServerInterceptor
that intercepts aServerCall
by running server-side RPC handling under aContext
that records custom per-request metrics provided by server applications and sends to client side along with the response in the format of Open Request Cost Aggregation (ORCA).
-