Modifier and Type | Method and Description |
---|---|
static ServerServiceDefinition |
ServerInterceptors.intercept(BindableService bindableService,
ServerInterceptor... interceptors) |
T |
ServerBuilder.intercept(ServerInterceptor interceptor)
Adds a
ServerInterceptor that is run for all services on the server. |
T |
ForwardingServerBuilder.intercept(ServerInterceptor interceptor) |
static ServerServiceDefinition |
ServerInterceptors.intercept(ServerServiceDefinition serviceDef,
ServerInterceptor... interceptors)
Create a new
ServerServiceDefinition whose ServerCallHandler s will call
interceptors before calling the pre-existing ServerCallHandler . |
static ServerServiceDefinition |
ServerInterceptors.interceptForward(BindableService bindableService,
ServerInterceptor... interceptors) |
static ServerServiceDefinition |
ServerInterceptors.interceptForward(ServerServiceDefinition serviceDef,
ServerInterceptor... interceptors)
Create a new
ServerServiceDefinition whose ServerCallHandler s will call
interceptors before calling the pre-existing ServerCallHandler . |
Modifier and Type | Method and Description |
---|---|
static ServerServiceDefinition |
ServerInterceptors.intercept(BindableService bindableService,
List<? extends ServerInterceptor> interceptors) |
static ServerServiceDefinition |
ServerInterceptors.intercept(ServerServiceDefinition serviceDef,
List<? extends ServerInterceptor> interceptors)
Create a new
ServerServiceDefinition whose ServerCallHandler s will call
interceptors before calling the pre-existing ServerCallHandler . |
static ServerServiceDefinition |
ServerInterceptors.interceptForward(BindableService bindableService,
List<? extends ServerInterceptor> interceptors) |
static ServerServiceDefinition |
ServerInterceptors.interceptForward(ServerServiceDefinition serviceDef,
List<? extends ServerInterceptor> interceptors)
Create a new
ServerServiceDefinition whose ServerCallHandler s will call
interceptors before calling the pre-existing ServerCallHandler . |