public class GlobalClientInterceptorRegistry extends Object implements ApplicationContextAware
ClientInterceptor
s that should be registered
globally. The interceptors will be applied in the same order they are added to this registry.
Note: The ClientInterceptors that were applied last to a Channel
will be called first.
Constructor and Description |
---|
GlobalClientInterceptorRegistry() |
Modifier and Type | Method and Description |
---|---|
GlobalClientInterceptorRegistry |
addClientInterceptors(ClientInterceptor interceptor)
Adds the given
ClientInterceptor to the list of globally registered interceptors. |
void |
init() |
void |
setApplicationContext(ApplicationContext applicationContext) |
public void setApplicationContext(ApplicationContext applicationContext)
setApplicationContext
in interface ApplicationContextAware
@PostConstruct public void init()
public GlobalClientInterceptorRegistry addClientInterceptors(ClientInterceptor interceptor)
ClientInterceptor
to the list of globally registered interceptors.interceptor
- The interceptor to add.