Constructor and Description |
---|
SmppConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
configureFromURI(URI uri)
A POJO which contains all necessary configuration parameters for the SMPP connection
|
SmppConfiguration |
copy() |
String |
getAddressRange() |
byte |
getAlphabet() |
byte |
getDataCoding() |
String |
getDestAddr() |
byte |
getDestAddrNpi() |
byte |
getDestAddrTon() |
String |
getEncoding() |
Integer |
getEnquireLinkTimer() |
String |
getHost() |
String |
getHttpProxyHost() |
String |
getHttpProxyPassword() |
Integer |
getHttpProxyPort() |
String |
getHttpProxyUsername() |
long |
getInitialReconnectDelay() |
byte |
getNumberingPlanIndicator() |
String |
getPassword()
The password for connecting to SMSC server.
|
Integer |
getPort() |
byte |
getPriorityFlag() |
byte |
getProtocolId() |
long |
getReconnectDelay() |
byte |
getRegisteredDelivery() |
byte |
getReplaceIfPresentFlag() |
String |
getServiceType() |
org.jsmpp.session.SessionStateListener |
getSessionStateListener() |
String |
getSourceAddr() |
byte |
getSourceAddrNpi() |
byte |
getSourceAddrTon() |
SmppSplittingPolicy |
getSplittingPolicy() |
String |
getSystemId() |
String |
getSystemType() |
Integer |
getTransactionTimer() |
byte |
getTypeOfNumber() |
boolean |
getUsingSSL() |
boolean |
isLazySessionCreation() |
void |
setAddressRange(String addressRange)
You can specify the address range for the SmppConsumer as defined in section 5.2.7 of the SMPP 3.4 specification.
|
void |
setAlphabet(byte alphabet)
Defines encoding of data according the SMPP 3.4 specification, section 5.2.19.
|
void |
setDataCoding(byte dataCoding)
Defines the data coding according the SMPP 3.4 specification, section 5.2.19.
|
void |
setDestAddr(String destAddr)
Defines the destination SME address.
|
void |
setDestAddrNpi(byte destAddrNpi)
Defines the type of number (TON) to be used in the SME destination address parameters.
|
void |
setDestAddrTon(byte destAddrTon)
Defines the type of number (TON) to be used in the SME destination address parameters.
|
void |
setEncoding(String encoding)
Defines the encoding scheme of the short message user data.
|
void |
setEnquireLinkTimer(Integer enquireLinkTimer)
Defines the interval in milliseconds between the confidence checks.
|
void |
setHost(String host)
Hostname for the SMSC server to use.
|
void |
setHttpProxyHost(String httpProxyHost)
If you need to tunnel SMPP through a HTTP proxy, set this attribute to the hostname or ip address of your HTTP proxy.
|
void |
setHttpProxyPassword(String httpProxyPassword)
If your HTTP proxy requires basic authentication, set this attribute to the password required for your HTTP proxy.
|
void |
setHttpProxyPort(Integer httpProxyPort)
If you need to tunnel SMPP through a HTTP proxy, set this attribute to the port of your HTTP proxy.
|
void |
setHttpProxyUsername(String httpProxyUsername)
If your HTTP proxy requires basic authentication, set this attribute to the username required for your HTTP proxy.
|
void |
setInitialReconnectDelay(long initialReconnectDelay)
Defines the initial delay in milliseconds after the consumer/producer tries to reconnect to the SMSC, after the connection was lost.
|
void |
setLazySessionCreation(boolean lazySessionCreation)
Sessions can be lazily created to avoid exceptions, if the SMSC is not available when the Camel producer is started.
|
void |
setNumberingPlanIndicator(byte numberingPlanIndicator)
Defines the numeric plan indicator (NPI) to be used in the SME.
|
void |
setPassword(String password) |
void |
setPort(Integer port)
Port number for the SMSC server to use.
|
void |
setPriorityFlag(byte priorityFlag)
Allows the originating SME to assign a priority level to the short message.
|
void |
setProtocolId(byte protocolId)
The protocol id
|
void |
setReconnectDelay(long reconnectDelay)
Defines the interval in milliseconds between the reconnect attempts, if the connection to the SMSC was lost and the previous was not succeed.
|
void |
setRegisteredDelivery(byte registeredDelivery)
Is used to request an SMSC delivery receipt and/or SME originated acknowledgements.
|
void |
setReplaceIfPresentFlag(byte replaceIfPresentFlag)
Used to request the SMSC to replace a previously submitted message, that is still pending delivery.
|
void |
setServiceType(String serviceType)
The service type parameter can be used to indicate the SMS Application service associated with the message.
|
void |
setSessionStateListener(org.jsmpp.session.SessionStateListener sessionStateListener)
You can refer to a org.jsmpp.session.SessionStateListener in the Registry to receive callbacks when the session state changed.
|
void |
setSourceAddr(String sourceAddr)
Defines the address of SME (Short Message Entity) which originated this message.
|
void |
setSourceAddrNpi(byte sourceAddrNpi)
Defines the numeric plan indicator (NPI) to be used in the SME originator address parameters.
|
void |
setSourceAddrTon(byte sourceAddrTon)
Defines the type of number (TON) to be used in the SME originator address parameters.
|
void |
setSplittingPolicy(SmppSplittingPolicy splittingPolicy)
You can specify a policy for handling long messages:
ALLOW - the default, long messages are split to 140 bytes per message
TRUNCATE - long messages are split and only the first fragment will be sent to the SMSC.
|
void |
setSystemId(String systemId)
The system id (username) for connecting to SMSC server.
|
void |
setSystemType(String systemType)
This parameter is used to categorize the type of ESME (External Short Message Entity) that is binding to the SMSC (max.
|
void |
setTransactionTimer(Integer transactionTimer)
Defines the maximum period of inactivity allowed after a transaction, after which
an SMPP entity may assume that the session is no longer active.
|
void |
setTypeOfNumber(byte typeOfNumber)
Defines the type of number (TON) to be used in the SME.
|
void |
setUsingSSL(boolean usingSSL)
Whether using SSL with the smpps protocol
|
String |
toString() |
public void configureFromURI(URI uri)
uri
- the full URI of the endpointpublic SmppConfiguration copy()
public String getHost()
public void setHost(String host)
public Integer getPort()
public void setPort(Integer port)
public String getSystemId()
public void setSystemId(String systemId)
public String getPassword()
public byte getDataCoding()
public void setDataCoding(byte dataCoding)
public byte getAlphabet()
public void setAlphabet(byte alphabet)
public String getEncoding()
public void setEncoding(String encoding)
public void setPassword(String password)
public Integer getEnquireLinkTimer()
public void setEnquireLinkTimer(Integer enquireLinkTimer)
public Integer getTransactionTimer()
public void setTransactionTimer(Integer transactionTimer)
public String getSystemType()
public void setSystemType(String systemType)
public byte getRegisteredDelivery()
public void setRegisteredDelivery(byte registeredDelivery)
public String getServiceType()
public void setServiceType(String serviceType)
public byte getSourceAddrTon()
public void setSourceAddrTon(byte sourceAddrTon)
public byte getDestAddrTon()
public void setDestAddrTon(byte destAddrTon)
public byte getSourceAddrNpi()
public void setSourceAddrNpi(byte sourceAddrNpi)
public byte getDestAddrNpi()
public void setDestAddrNpi(byte destAddrNpi)
public byte getProtocolId()
public void setProtocolId(byte protocolId)
public byte getPriorityFlag()
public void setPriorityFlag(byte priorityFlag)
public byte getReplaceIfPresentFlag()
public void setReplaceIfPresentFlag(byte replaceIfPresentFlag)
public String getSourceAddr()
public void setSourceAddr(String sourceAddr)
public String getDestAddr()
public void setDestAddr(String destAddr)
public byte getTypeOfNumber()
public void setTypeOfNumber(byte typeOfNumber)
public byte getNumberingPlanIndicator()
public void setNumberingPlanIndicator(byte numberingPlanIndicator)
public boolean getUsingSSL()
public void setUsingSSL(boolean usingSSL)
public long getInitialReconnectDelay()
public void setInitialReconnectDelay(long initialReconnectDelay)
public long getReconnectDelay()
public void setReconnectDelay(long reconnectDelay)
public boolean isLazySessionCreation()
public void setLazySessionCreation(boolean lazySessionCreation)
public String getHttpProxyHost()
public void setHttpProxyHost(String httpProxyHost)
public Integer getHttpProxyPort()
public void setHttpProxyPort(Integer httpProxyPort)
public String getHttpProxyUsername()
public void setHttpProxyUsername(String httpProxyUsername)
public String getHttpProxyPassword()
public void setHttpProxyPassword(String httpProxyPassword)
public org.jsmpp.session.SessionStateListener getSessionStateListener()
public void setSessionStateListener(org.jsmpp.session.SessionStateListener sessionStateListener)
public String getAddressRange()
public void setAddressRange(String addressRange)
public SmppSplittingPolicy getSplittingPolicy()
public void setSplittingPolicy(SmppSplittingPolicy splittingPolicy)
Apache Camel