public class GlobalServerInterceptorRegistry extends Object implements ApplicationContextAware
ServerInterceptor
s 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(ServerInterceptor interceptor)
Adds the given
ServerInterceptor to the list of globally registered interceptors. |
List<ServerInterceptor> |
getServerInterceptors() |
void |
init() |
void |
setApplicationContext(ApplicationContext applicationContext) |
public void setApplicationContext(ApplicationContext applicationContext)
setApplicationContext
in interface ApplicationContextAware
@PostConstruct public void init()
public GlobalServerInterceptorRegistry addServerInterceptors(ServerInterceptor interceptor)
ServerInterceptor
to the list of globally registered interceptors.interceptor
- The interceptor to add.public List<ServerInterceptor> getServerInterceptors()