|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object flex.management.ManageableComponent flex.messaging.services.ServiceAdapter flex.messaging.services.messaging.adapters.MessagingAdapter org.springframework.flex.messaging.integration.IntegrationAdapter
public class IntegrationAdapter
A MessagingAdapter
implementation that enables sending and receiving messages via Spring Integration Message
Channels.
Field Summary |
---|
Fields inherited from class flex.messaging.services.ServiceAdapter |
---|
LOG_CATEGORY |
Fields inherited from class flex.management.ManageableComponent |
---|
control, id, managed, NULL_COMPONENT_PROPERTY, parent, PROPERTY_CHANGE_AFTER_STARTUP, started, valid |
Constructor Summary | |
---|---|
IntegrationAdapter()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
|
void |
handleMessage(org.springframework.integration.core.Message<?> message)
Invoked when a Message is received from the Spring Integration channel. |
boolean |
handlesSubscriptions()
|
java.lang.Object |
invoke(flex.messaging.messages.Message flexMessage)
Invoked when a Message is received from a Flex client. |
java.lang.Object |
manage(flex.messaging.messages.CommandMessage commandMessage)
|
void |
setBeanName(java.lang.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.core.MessageChannel messageChannel)
Sets the Spring Integration MessageChannel for sending and receiving messages |
void |
start()
|
Methods inherited from class flex.messaging.services.messaging.adapters.MessagingAdapter |
---|
allowSend, allowSubscribe, getSecurityConstraintManager, initialize, setSecurityConstraintManager, validate |
Methods inherited from class flex.messaging.services.ServiceAdapter |
---|
getAdapterState, getDestination, getLogCategory, setAdapterState, setDestination, setupAdapterControl, stop |
Methods inherited from class flex.management.ManageableComponent |
---|
blockAssignmentWhileStarted, blockNullAssignment, getControl, getId, getParent, invalidate, isManaged, isStarted, isValid, setControl, setId, setManaged, setParent, setStarted, setValid |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IntegrationAdapter()
Method Detail |
---|
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 org.springframework.beans.factory.InitializingBean
public void handleMessage(org.springframework.integration.core.Message<?> message)
handleMessage
in interface org.springframework.integration.message.MessageHandler
public boolean handlesSubscriptions()
handlesSubscriptions
in class flex.messaging.services.ServiceAdapter
public java.lang.Object invoke(flex.messaging.messages.Message flexMessage)
invoke
in class flex.messaging.services.ServiceAdapter
public java.lang.Object manage(flex.messaging.messages.CommandMessage commandMessage)
manage
in class flex.messaging.services.ServiceAdapter
public void setBeanName(java.lang.String beanName)
setBeanName
in interface org.springframework.beans.factory.BeanNameAware
public void setMessageChannel(org.springframework.integration.core.MessageChannel messageChannel)
MessageChannel
for sending and receiving messages
messageChannel
- the message channelpublic void start()
start
in interface flex.messaging.FlexComponent
start
in class flex.messaging.services.ServiceAdapter
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |