public class GlobalServerInterceptorRegistry
extends java.lang.Object
implements org.springframework.context.ApplicationContextAware
ServerInterceptors that should be registered
globally. The interceptors will be applied in the same order they are added to this registry.| Constructor and Description |
|---|
GlobalServerInterceptorRegistry() |
| Modifier and Type | Method and Description |
|---|---|
GlobalServerInterceptorRegistry |
addServerInterceptors(io.grpc.ServerInterceptor interceptor)
Adds the given
ServerInterceptor to the list of globally registered interceptors. |
void |
init() |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
setApplicationContext in interface org.springframework.context.ApplicationContextAware@PostConstruct public void init()
public GlobalServerInterceptorRegistry addServerInterceptors(io.grpc.ServerInterceptor interceptor)
ServerInterceptor to the list of globally registered interceptors.interceptor - The interceptor to add.