SmppSessionConfiguration
public class SmppSessionConfiguration
Extends: SmppConnectionConfiguration
SmppSessionConfiguration encapsulates session-specific settings for SMPP client or server roles. It defines identity credentials (like systemId and password), bind behavior, versioning, timeouts, and optional SSL settings. It builds on SmppConnectionConfiguration by adding parameters related to binding and session lifecycle. Use this class when setting up a new SmppSession, either client-initiated or server-accepted.
Fields:
DEFAULT_BIND_TIMEOUT, DEFAULT_REQUEST_EXPIRY_TIMEOUT
Fields inherited from class com.mobius.software.protocols.smpp.channel.SmppConnectionConfiguration
DEFAULT_CONNECT_TIMEOUT
Constructors:
public SmppSessionConfiguration()
Creates a blank configuration. Fields must be set manually.
public SmppSessionConfiguration(SmppBindType type, String systemId, String password)
Initializes configuration with the session type, systemId, and password.
public SmppSessionConfiguration(SmppBindType type, String systemId, String password, String systemType)
Same as above, but also sets the systemType field.
Methods:
void setName(String value) / String getName() | Sets/gets the session name (used for logging, tracking, etc.). |
void setBindTimeout(long value) / long getBindTimeout() | Sets/gets the bind response timeout in milliseconds. |
void setType(SmppBindType bindType) / SmppBindType getType() | Sets/gets the session bind type (receiver, transmitter, transceiver). |
void setSystemId(String value) / String getSystemId() | Sets/gets the system ID used for authentication. |
void setPassword(String value) / String getPassword() | Sets/gets the password used for authentication. |
void setSystemType(String value) / String getSystemType() | Sets/gets the system type string sent during binding. |
void setInterfaceVersion(SmppVersion value) / SmppVersion getInterfaceVersion() | Sets/gets the SMPP protocol version to negotiate. |
void setAddressRange(Address value) / Address getAddressRange() | Sets/gets the address range used to filter incoming messages. |
void setUseSsl(boolean value) / boolean isUseSsl() | Enables or disables SSL usage for this session. |
void setSslConfiguration(SslConfiguration value) / SslConfiguration getSslConfiguration() | Sets/gets detailed SSL configuration (e.g., certs, protocols). |
void setRequestExpiryTimeout(long value) / long getRequestExpiryTimeout() | Sets/gets how long the session waits before timing out a pending request. |
Start innovating with Mobius
What's next? Let's talk!