public class ServerInterceptors extends Object
ServerInterceptor
s.Modifier and Type | Class and Description |
---|---|
static class |
ServerInterceptors.ForwardingListener<ReqT>
Deprecated.
|
static class |
ServerInterceptors.ForwardingServerCall<RespT>
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static ServerServiceDefinition |
intercept(ServerServiceDefinition serviceDef,
List<ServerInterceptor> interceptors)
Create a new
ServerServiceDefinition whose ServerCallHandler s will call
interceptors before calling the pre-existing ServerCallHandler . |
static ServerServiceDefinition |
intercept(ServerServiceDefinition serviceDef,
ServerInterceptor... interceptors)
Create a new
ServerServiceDefinition whose ServerCallHandler s will call
interceptors before calling the pre-existing ServerCallHandler . |
public static ServerServiceDefinition intercept(ServerServiceDefinition serviceDef, ServerInterceptor... interceptors)
ServerServiceDefinition
whose ServerCallHandler
s will call
interceptors
before calling the pre-existing ServerCallHandler
.serviceDef
- the service definition for which to intercept all its methods.interceptors
- array of interceptors to apply to the service.serviceDef
with the interceptors applied.public static ServerServiceDefinition intercept(ServerServiceDefinition serviceDef, List<ServerInterceptor> interceptors)
ServerServiceDefinition
whose ServerCallHandler
s will call
interceptors
before calling the pre-existing ServerCallHandler
.serviceDef
- the service definition for which to intercept all its methods.interceptors
- list of interceptors to apply to the service.serviceDef
with the interceptors applied.