Modifier and Type | Method | Description |
---|---|---|
T |
ServerBuilder.intercept(ServerInterceptor interceptor) |
Adds a
ServerInterceptor 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 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 | Description |
---|---|---|
static ServerServiceDefinition |
ServerInterceptors.intercept(BindableService bindableService,
java.util.List<? extends ServerInterceptor> interceptors) |
|
static ServerServiceDefinition |
ServerInterceptors.intercept(ServerServiceDefinition serviceDef,
java.util.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,
java.util.List<? extends ServerInterceptor> interceptors) |
|
static ServerServiceDefinition |
ServerInterceptors.interceptForward(ServerServiceDefinition serviceDef,
java.util.List<? extends ServerInterceptor> interceptors) |
Create a new
ServerServiceDefinition whose ServerCallHandler s will call
interceptors before calling the pre-existing ServerCallHandler . |