类 WebSocketAnnotationMethodMessageHandler
- java.lang.Object
- org.springframework.messaging.handler.invocation.AbstractMethodMessageHandler<SimpMessageMappingInfo>
- org.springframework.messaging.simp.annotation.support.SimpAnnotationMethodMessageHandler
- org.springframework.web.socket.messaging.WebSocketAnnotationMethodMessageHandler
- 所有已实现的接口:
Aware
,InitializingBean
,ApplicationContextAware
,EmbeddedValueResolverAware
,Lifecycle
,Phased
,SmartLifecycle
,MessageHandler
public class WebSocketAnnotationMethodMessageHandler extends SimpAnnotationMethodMessageHandler
A sub-class ofSimpAnnotationMethodMessageHandler
to provide support forControllerAdvice
with global@MessageExceptionHandler
methods.- 从以下版本开始:
- 4.2
- 作者:
- Rossen Stoyanchev
字段概要
从类继承的字段 org.springframework.messaging.handler.invocation.AbstractMethodMessageHandler
logger
构造器概要
构造器 构造器 说明 WebSocketAnnotationMethodMessageHandler(SubscribableChannel clientInChannel, MessageChannel clientOutChannel, SimpMessageSendingOperations brokerTemplate)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 void
afterPropertiesSet()
Invoked by the containingBeanFactory
after it has set all bean properties and satisfiedBeanFactoryAware
,ApplicationContextAware
etc.从类继承的方法 org.springframework.messaging.simp.annotation.support.SimpAnnotationMethodMessageHandler
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, stop
从类继承的方法 org.springframework.messaging.handler.invocation.AbstractMethodMessageHandler
createHandlerMethod, detectHandlerMethods, getApplicationContext, getArgumentResolvers, getCustomArgumentResolvers, getCustomReturnValueHandlers, getDestinationPrefixes, getExceptionHandlerMethod, getHandlerMethods, getReturnValueHandlers, handleMessage, handleMessageInternal, handleNoMatch, processHandlerMethodException, registerExceptionHandlerAdvice, registerHandlerMethod, setApplicationContext, setArgumentResolvers, setCustomArgumentResolvers, setCustomReturnValueHandlers, setReturnValueHandlers, toString
构造器详细资料
WebSocketAnnotationMethodMessageHandler
public WebSocketAnnotationMethodMessageHandler(SubscribableChannel clientInChannel, MessageChannel clientOutChannel, SimpMessageSendingOperations brokerTemplate)
方法详细资料
afterPropertiesSet
public void afterPropertiesSet()
从接口复制的说明:InitializingBean
Invoked by the containingBeanFactory
after it has set all bean properties and satisfiedBeanFactoryAware
,ApplicationContextAware
etc.This method allows the bean instance to perform validation of its overall configuration and final initialization when all bean properties have been set.