public class WampAnnotationMethodMessageHandler extends Object implements org.springframework.messaging.MessageHandler, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean, org.springframework.context.SmartLifecycle
WampCallListener, WampPublishListener, WampSubscribeListener or
WampUnsubscribeListener
Supports Ant-style path patterns with template variables.
| Constructor and Description |
|---|
WampAnnotationMethodMessageHandler(org.springframework.messaging.SubscribableChannel clientInboundChannel,
org.springframework.messaging.MessageChannel clientOutboundChannel,
EventMessenger eventMessenger,
org.springframework.core.convert.ConversionService conversionService,
MethodParameterConverter methodParameterConverter,
org.springframework.util.PathMatcher pathMatcher,
WampMessageSelector wampMessageSelector,
org.springframework.messaging.converter.MessageConverter messageConverter) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
List<org.springframework.messaging.handler.invocation.HandlerMethodArgumentResolver> |
getArgumentResolvers() |
List<org.springframework.messaging.handler.invocation.HandlerMethodArgumentResolver> |
getCustomArgumentResolvers()
Return the configured custom argument resolvers, if any.
|
int |
getPhase() |
void |
handleMessage(org.springframework.messaging.Message<?> message) |
boolean |
isAutoStartup() |
boolean |
isRunning() |
void |
send(WampMessage wampMessage) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setArgumentResolvers(List<org.springframework.messaging.handler.invocation.HandlerMethodArgumentResolver> argumentResolvers)
Configure the complete list of supported argument types effectively overriding the
ones configured by default.
|
void |
setAuthenticationRequiredGlobal(boolean authenticationRequiredGlobal) |
void |
setCustomArgumentResolvers(List<org.springframework.messaging.handler.invocation.HandlerMethodArgumentResolver> customArgumentResolvers)
Sets the list of custom
HandlerMethodArgumentResolvers that will be used
after resolvers for supported argument type. |
void |
setSendTimeout(long sendTimeout) |
void |
start() |
void |
stop() |
void |
stop(Runnable callback) |
String |
toString() |
public WampAnnotationMethodMessageHandler(org.springframework.messaging.SubscribableChannel clientInboundChannel,
org.springframework.messaging.MessageChannel clientOutboundChannel,
EventMessenger eventMessenger,
org.springframework.core.convert.ConversionService conversionService,
MethodParameterConverter methodParameterConverter,
org.springframework.util.PathMatcher pathMatcher,
WampMessageSelector wampMessageSelector,
org.springframework.messaging.converter.MessageConverter messageConverter)
public void setAuthenticationRequiredGlobal(boolean authenticationRequiredGlobal)
public void setSendTimeout(long sendTimeout)
public boolean isAutoStartup()
isAutoStartup in interface org.springframework.context.SmartLifecyclepublic int getPhase()
getPhase in interface org.springframework.context.Phasedpublic final boolean isRunning()
isRunning in interface org.springframework.context.Lifecyclepublic final void start()
start in interface org.springframework.context.Lifecyclepublic final void stop()
stop in interface org.springframework.context.Lifecyclepublic final void stop(Runnable callback)
stop in interface org.springframework.context.SmartLifecyclepublic void handleMessage(org.springframework.messaging.Message<?> message)
throws org.springframework.messaging.MessagingException
handleMessage in interface org.springframework.messaging.MessageHandlerorg.springframework.messaging.MessagingExceptionpublic void send(WampMessage wampMessage)
public void setCustomArgumentResolvers(List<org.springframework.messaging.handler.invocation.HandlerMethodArgumentResolver> customArgumentResolvers)
HandlerMethodArgumentResolvers that will be used
after resolvers for supported argument type.customArgumentResolvers - the list of resolvers; never null.public List<org.springframework.messaging.handler.invocation.HandlerMethodArgumentResolver> getCustomArgumentResolvers()
public void setArgumentResolvers(List<org.springframework.messaging.handler.invocation.HandlerMethodArgumentResolver> argumentResolvers)
setCustomArgumentResolvers(java.util.List).public List<org.springframework.messaging.handler.invocation.HandlerMethodArgumentResolver> getArgumentResolvers()
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanCopyright © 2014–2017. All rights reserved.