public class SmppOutboundGateway
extends org.springframework.integration.handler.AbstractReplyProducingMessageHandler
SmppOutboundChannelAdapter,
and the reply can either be the messageId of the outbound message which can ultimately
be used to track the confirmation, or the confirmation of the receipt of the outbound
message itself. In the latter case, this class simply does the work
of waiting for the reply and correlating it to the outbound request.
By default this component assumes one SMPPSession in
"transceiver" mode - it can both request and reply. Conceptually it should be possible
to support two SMPPSessionrunning, one in "sender" mode,
and another in "receiver" mode and handle the duplexing manually.
The correlation logic is the same, in any event.
| Constructor and Description |
|---|
SmppOutboundGateway() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doInit() |
java.lang.String |
getComponentType() |
protected java.lang.Object |
handleRequestMessage(org.springframework.messaging.Message<?> requestMessage) |
void |
setDefaultSourceAddress(java.lang.String defaultSourceAddress) |
void |
setDefaultSourceAddressTypeOfNumber(org.jsmpp.bean.TypeOfNumber defaultSourceAddressTypeOfNumber) |
void |
setSmppSession(ExtendedSmppSession s) |
void |
setTimeFormatter(org.jsmpp.util.TimeFormatter timeFormatter) |
doInvokeAdvisedRequestHandler, getMessagingTemplate, handleMessageInternal, hasAdviceChain, onInit, setAdviceChain, setBeanClassLoader, setChannelResolver, setOutputChannel, setOutputChannelName, setRequiresReply, setSendTimeout, shouldCopyRequestHeadersgetOrder, handleMessage, setOrder, setShouldTrackafterPropertiesSet, getApplicationContextId, getBeanFactory, getComponentName, getConversionService, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, setApplicationContext, setBeanFactory, setBeanName, setComponentName, setConversionService, setMessageBuilderFactory, setTaskScheduler, toStringprotected void doInit()
doInit in class org.springframework.integration.handler.AbstractReplyProducingMessageHandlerprotected java.lang.Object handleRequestMessage(org.springframework.messaging.Message<?> requestMessage)
handleRequestMessage in class org.springframework.integration.handler.AbstractReplyProducingMessageHandlerpublic void setDefaultSourceAddress(java.lang.String defaultSourceAddress)
public void setDefaultSourceAddressTypeOfNumber(org.jsmpp.bean.TypeOfNumber defaultSourceAddressTypeOfNumber)
public void setTimeFormatter(org.jsmpp.util.TimeFormatter timeFormatter)
public void setSmppSession(ExtendedSmppSession s)
public java.lang.String getComponentType()
getComponentType in interface org.springframework.integration.support.context.NamedComponentgetComponentType in class org.springframework.integration.handler.AbstractMessageHandler