|
Spring Integration | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.handler.AbstractMessageHandler
org.springframework.integration.handler.AbstractReplyProducingMessageHandler
public abstract class AbstractReplyProducingMessageHandler
Base class for MessageHandlers that are capable of producing replies.
| Nested Class Summary | |
|---|---|
static interface |
AbstractReplyProducingMessageHandler.RequestHandler
|
| Field Summary |
|---|
| Fields inherited from class org.springframework.integration.context.IntegrationObjectSupport |
|---|
logger |
| Fields inherited from interface org.springframework.core.Ordered |
|---|
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
| Constructor Summary | |
|---|---|
AbstractReplyProducingMessageHandler()
|
|
| Method Summary | |
|---|---|
protected MessagingTemplate |
getMessagingTemplate()
Provides access to the MessagingTemplate for subclasses. |
protected void |
handleMessageInternal(Message<?> message)
|
protected abstract java.lang.Object |
handleRequestMessage(Message<?> requestMessage)
Subclasses must implement this method to handle the request Message. |
protected void |
onInit()
Subclasses may implement this for initialization logic. |
void |
setAdviceChain(java.util.List<org.aopalliance.aop.Advice> adviceChain)
|
void |
setBeanClassLoader(java.lang.ClassLoader beanClassLoader)
|
void |
setChannelResolver(ChannelResolver channelResolver)
Set the ChannelResolver to be used when there is no default output channel. |
void |
setOutputChannel(MessageChannel outputChannel)
Specify the MessageChannel to which produced Messages should be sent. |
void |
setRequiresReply(boolean requiresReply)
Flag whether a reply is required. |
void |
setSendTimeout(long sendTimeout)
Set the timeout for sending reply Messages. |
protected boolean |
shouldCopyRequestHeaders()
Subclasses may override this. |
| Methods inherited from class org.springframework.integration.handler.AbstractMessageHandler |
|---|
getComponentType, getOrder, handleMessage, setOrder, setShouldTrack |
| Methods inherited from class org.springframework.integration.context.IntegrationObjectSupport |
|---|
afterPropertiesSet, getBeanFactory, getComponentName, getConversionService, getTaskScheduler, setBeanFactory, setBeanName, setComponentName, setConversionService, setTaskScheduler, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.springframework.integration.context.NamedComponent |
|---|
getComponentName |
| Constructor Detail |
|---|
public AbstractReplyProducingMessageHandler()
| Method Detail |
|---|
public void setOutputChannel(MessageChannel outputChannel)
MessageProducer
setOutputChannel in interface MessageProducerpublic void setSendTimeout(long sendTimeout)
public void setChannelResolver(ChannelResolver channelResolver)
public void setRequiresReply(boolean requiresReply)
protected MessagingTemplate getMessagingTemplate()
MessagingTemplate for subclasses.
public void setAdviceChain(java.util.List<org.aopalliance.aop.Advice> adviceChain)
public void setBeanClassLoader(java.lang.ClassLoader beanClassLoader)
setBeanClassLoader in interface org.springframework.beans.factory.BeanClassLoaderAwareprotected void onInit()
IntegrationObjectSupport
onInit in class IntegrationObjectSupportprotected final void handleMessageInternal(Message<?> message)
handleMessageInternal in class AbstractMessageHandlerprotected boolean shouldCopyRequestHeaders()
protected abstract java.lang.Object handleRequestMessage(Message<?> requestMessage)
|
Spring Integration | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||