Package ch.rasc.wamp2spring.rpc
Class RpcMessageHandler
java.lang.Object
ch.rasc.wamp2spring.rpc.RpcMessageHandler
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.InitializingBean,org.springframework.context.ApplicationContextAware,org.springframework.context.Lifecycle,org.springframework.context.Phased,org.springframework.context.SmartLifecycle,org.springframework.messaging.MessageHandler
public class RpcMessageHandler
extends Object
implements org.springframework.messaging.MessageHandler, org.springframework.context.SmartLifecycle, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware
-
Field Summary
FieldsFields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE -
Constructor Summary
ConstructorsConstructorDescriptionRpcMessageHandler(org.springframework.messaging.SubscribableChannel clientInboundChannel, org.springframework.messaging.MessageChannel clientOutboundChannel, ProcedureRegistry procedureRegistry, HandlerMethodService handlerMethodService, Features features) -
Method Summary
Modifier and TypeMethodDescriptionvoidintgetPhase()voidhandleMessage(org.springframework.messaging.Message<?> message) booleanfinal booleanprotected voidsendMessageToClient(org.springframework.messaging.Message<?> message) voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) voidsetAutoStartup(boolean autoStartup) voidstart()voidstop()final void
-
Field Details
-
logger
protected final org.apache.commons.logging.Log logger
-
-
Constructor Details
-
RpcMessageHandler
public RpcMessageHandler(org.springframework.messaging.SubscribableChannel clientInboundChannel, org.springframework.messaging.MessageChannel clientOutboundChannel, ProcedureRegistry procedureRegistry, HandlerMethodService handlerMethodService, Features features)
-
-
Method Details
-
setAutoStartup
public void setAutoStartup(boolean autoStartup) -
isAutoStartup
public boolean isAutoStartup()- Specified by:
isAutoStartupin interfaceorg.springframework.context.SmartLifecycle
-
getPhase
public int getPhase()- Specified by:
getPhasein interfaceorg.springframework.context.Phased- Specified by:
getPhasein interfaceorg.springframework.context.SmartLifecycle
-
start
public void start()- Specified by:
startin interfaceorg.springframework.context.Lifecycle
-
stop
public void stop()- Specified by:
stopin interfaceorg.springframework.context.Lifecycle
-
stop
- Specified by:
stopin interfaceorg.springframework.context.SmartLifecycle
-
isRunning
public final boolean isRunning()- Specified by:
isRunningin interfaceorg.springframework.context.Lifecycle
-
handleMessage
public void handleMessage(org.springframework.messaging.Message<?> message) - Specified by:
handleMessagein interfaceorg.springframework.messaging.MessageHandler
-
sendMessageToClient
protected void sendMessageToClient(org.springframework.messaging.Message<?> message) -
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-