public class WebSocketAnnotationMethodMessageHandler extends SimpAnnotationMethodMessageHandler
SimpAnnotationMethodMessageHandler to provide support
for ControllerAdvice with global @MessageExceptionHandler methods.| Modifier and Type | Class and Description |
|---|---|
private static class |
WebSocketAnnotationMethodMessageHandler.MessagingControllerAdviceBean
Adapt ControllerAdviceBean to MessagingAdviceBean.
|
logger| Constructor and Description |
|---|
WebSocketAnnotationMethodMessageHandler(SubscribableChannel clientInChannel,
MessageChannel clientOutChannel,
SimpMessageSendingOperations brokerTemplate) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet()
Invoked by a BeanFactory after it has set all bean properties supplied
(and satisfied BeanFactoryAware and ApplicationContextAware).
|
private void |
initControllerAdviceCache() |
private void |
initMessagingAdviceCache(java.util.List<MessagingAdviceBean> beans) |
createExceptionHandlerMethodResolverFor, getConversionService, getDestination, getDirectLookupDestinations, getHeaderInitializer, getLookupDestination, getMappingComparator, getMappingForMethod, getMatchingMapping, getMessageConverter, getPathMatcher, getPhase, getValidator, handleMatch, initArgumentResolvers, initReturnValueHandlers, isAutoStartup, isHandler, isRunning, resolveEmbeddedValuesInDestinations, setConversionService, setDestinationPrefixes, setEmbeddedValueResolver, setHeaderInitializer, setMessageConverter, setPathMatcher, setValidator, start, stop, stopcreateHandlerMethod, detectHandlerMethods, getApplicationContext, getArgumentResolvers, getCustomArgumentResolvers, getCustomReturnValueHandlers, getDestinationPrefixes, getExceptionHandlerMethod, getHandlerMethods, getReturnValueHandlers, handleMessage, handleMessageInternal, handleNoMatch, processHandlerMethodException, registerExceptionHandlerAdvice, registerHandlerMethod, setApplicationContext, setArgumentResolvers, setCustomArgumentResolvers, setCustomReturnValueHandlers, setReturnValueHandlers, toStringpublic WebSocketAnnotationMethodMessageHandler(SubscribableChannel clientInChannel, MessageChannel clientOutChannel, SimpMessageSendingOperations brokerTemplate)
public void afterPropertiesSet()
InitializingBeanThis method allows the bean instance to perform initialization only possible when all bean properties have been set and to throw an exception in the event of misconfiguration.
afterPropertiesSet in interface InitializingBeanafterPropertiesSet in class AbstractMethodMessageHandler<SimpMessageMappingInfo>private void initControllerAdviceCache()
private void initMessagingAdviceCache(java.util.List<MessagingAdviceBean> beans)