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, validate
getAdapterState, getDestination, getLogCategory, setAdapterState, setDestination, setupAdapterControl, stop
public 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 InitializingBean
public void handleMessage(org.springframework.integration.Message<?> message)
handleMessage
in interface org.springframework.integration.core.MessageHandler
public boolean handlesSubscriptions()
handlesSubscriptions
in class flex.messaging.services.ServiceAdapter
public Object invoke(flex.messaging.messages.Message flexMessage)
invoke
in class flex.messaging.services.ServiceAdapter
public Object manage(flex.messaging.messages.CommandMessage commandMessage)
manage
in class flex.messaging.services.ServiceAdapter
public void setBeanName(String beanName)
setBeanName
in interface BeanNameAware
public void setMessageChannel(org.springframework.integration.MessageChannel messageChannel)
MessageChannel
for sending and receiving messagesmessageChannel
- the message channelpublic void start()
start
in interface flex.messaging.FlexComponent
start
in class flex.messaging.services.ServiceAdapter
public void setApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher)
setApplicationEventPublisher
in interface ApplicationEventPublisherAware
Copyright © 2014. All rights reserved.