public interface WsConfigurer
@EnableWs.
@EnableWs-annotated configuration classes may implement
this interface to be called back and given a chance to customize the
default configuration. Consider extending WsConfigurerAdapter,
which provides a stub implementation of all interface methods.
| Modifier and Type | Method and Description |
|---|---|
void |
addArgumentResolvers(List<MethodArgumentResolver> argumentResolvers)
Add resolvers to support custom endpoint method argument types.
|
void |
addInterceptors(List<EndpointInterceptor> interceptors)
Add
EndpointInterceptors for pre- and post-processing of
endpoint method invocations. |
void |
addReturnValueHandlers(List<MethodReturnValueHandler> returnValueHandlers)
Add handlers to support custom controller method return value types.
|
void addInterceptors(List<EndpointInterceptor> interceptors)
EndpointInterceptors for pre- and post-processing of
endpoint method invocations.void addArgumentResolvers(List<MethodArgumentResolver> argumentResolvers)
argumentResolvers - initially an empty listvoid addReturnValueHandlers(List<MethodReturnValueHandler> returnValueHandlers)
Using this option does not override the built-in support for handling return values. To customize the built-in support for handling return values, configure RequestMappingHandlerAdapter directly.
returnValueHandlers - initially an empty list