public class IntegrationAdapter extends flex.messaging.services.messaging.adapters.MessagingAdapter implements org.springframework.integration.core.MessageHandler, InitializingBean, BeanNameAware, ApplicationEventPublisherAware
MessagingAdapter implementation that enables sending and receiving messages via Spring Integration Message
Channels.| Constructor and Description |
|---|
IntegrationAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
void |
handleMessage(org.springframework.integration.Message<?> message)
Invoked when a Message is received from the Spring Integration channel.
|
boolean |
handlesSubscriptions() |
Object |
invoke(flex.messaging.messages.Message flexMessage)
Invoked when a Message is received from a Flex client.
|
Object |
manage(flex.messaging.messages.CommandMessage commandMessage) |
void |
setApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher) |
void |
setBeanName(String beanName) |
void |
setExtractPayload(boolean extractPayload)
Specify whether the Flex Message body should be extracted
to be used as the payload of a Spring Integration Message.
|
void |
setMessageChannel(org.springframework.integration.MessageChannel messageChannel)
Sets the Spring Integration
MessageChannel for sending and receiving messages |
void |
start() |
allowSend, allowSubscribe, getSecurityConstraintManager, initialize, setSecurityConstraintManager, validategetAdapterState, getDestination, getLogCategory, setAdapterState, setDestination, setupAdapterControl, stoppublic void setExtractPayload(boolean extractPayload)
false, the entire Flex Message
will be sent as the payload. The default is true.public void afterPropertiesSet()
afterPropertiesSet in interface InitializingBeanpublic void handleMessage(org.springframework.integration.Message<?> message)
handleMessage in interface org.springframework.integration.core.MessageHandlerpublic boolean handlesSubscriptions()
handlesSubscriptions in class flex.messaging.services.ServiceAdapterpublic Object invoke(flex.messaging.messages.Message flexMessage)
invoke in class flex.messaging.services.ServiceAdapterpublic Object manage(flex.messaging.messages.CommandMessage commandMessage)
manage in class flex.messaging.services.ServiceAdapterpublic void setBeanName(String beanName)
setBeanName in interface BeanNameAwarepublic void setMessageChannel(org.springframework.integration.MessageChannel messageChannel)
MessageChannel for sending and receiving messagesmessageChannel - the message channelpublic void start()
start in interface flex.messaging.FlexComponentstart in class flex.messaging.services.ServiceAdapterpublic void setApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher)
setApplicationEventPublisher in interface ApplicationEventPublisherAwareCopyright © 2014. All rights reserved.