public class Configuration extends Object
| Constructor and Description |
|---|
Configuration()
Initialize configuration object, Login have to be done after initialization
|
Configuration(boolean loadFromFile)
Initialize Configuration object
|
Configuration(String accessToken)
Initialize configuration object using the 'OAuth' Authentication
|
Configuration(String username,
String password)
Initialize configuration object using the 'IBSSO' Authentication credentials
|
Configuration(String messagingBaseUrl,
String versionOneAPISMS,
String accessToken)
Initialize configuration object using the 'OAuth' Authentication
|
Configuration(String messagingBaseUrl,
String versionOneAPISMS,
String username,
String password)
Initialize configuration object using the 'IBSSO' Authentication credentials
|
| Modifier and Type | Method and Description |
|---|---|
String |
getApiUrl()
Base URL containing host name and port of the OneAPI SMS server
|
Authentication |
getAuthentication()
Object containing 'OneAPI' Authentication data
|
int |
getDlrRetrievingInterval()
Interval to automatically pool delivery reports in milliseconds
|
int |
getDlrStatusPushServerSimulatorPort()
Delivery Notification Status Push server port (default = 3000)
|
int |
getHlrPushServerSimulatorPort()
HLR Notifications Push server port (default = 3002)
|
int |
getInboundMessagesPushServerSimulatorPort()
Inbound Messages Notifications Push server port (default = 3001)
|
int |
getInboundMessagesRetrievingInterval()
Interval to automatically pool inbounds messages in milliseconds
|
String |
getVersionOneAPISMS()
Version of OneAPI SMS you are accessing (the default is the latest version supported by that server)
|
void |
load()
Load data from the configuration file
|
void |
save()
Save data to the configuration file
|
void |
setApiUrl(String apiUrl)
Base URL containing host name and port of the OneAPI SMS server
|
void |
setAuthentication(Authentication value)
Object containing 'OneAPI' Authentication data
|
void |
setDlrRetrievingInterval(int dlrRetrievingInterval)
Interval to automatically pool delivery reports in milliseconds
|
void |
setDlrStatusPushServerSimulatorPort(int dlrStatusPushServerSimulatorPort)
Delivery Notification Status Push server port (default = 3000)
|
void |
setHlrPushServerSimulatorPort(int hlrPushServerSimulatorPort)
HLR Notifications Push server port (default = 3002)
|
void |
setInboundMessagesPushServerSimulatorPort(int inboundMessagesPushServerSimulatorPort)
Inbound Messages Notifications Push server port (default = 3001)
|
void |
setInboundMessagesRetrievingInterval(int inboundMessagesRetrievingInterval)
Interval to automatically pool inbounds messages in milliseconds
|
void |
setVersionOneAPISMS(String versionOneAPISMS)
Version of OneAPI SMS you are accessing (the default is the latest version supported by that server)
|
public Configuration()
public Configuration(boolean loadFromFile)
loadFromFile - determines if data will be loaded from the configuration filepublic Configuration(String username, String password)
username - - 'IBSSO' Authentication user namepassword - - 'IBSSO' Authentication passwordpublic Configuration(String accessToken)
accessToken - - 'OAuth' Authentication Access Tokenpublic Configuration(String messagingBaseUrl, String versionOneAPISMS, String username, String password)
messagingBaseUrl - - Base URL containing host name and port of the OneAPI SMS serverversionOneAPISMS - - Version of OneAPI SMS you are accessing (the default is the latest version supported by that server)username - - 'IBSSO' Authentication user namepassword - - 'IBSSO' Authentication passwordpublic Configuration(String messagingBaseUrl, String versionOneAPISMS, String accessToken)
messagingBaseUrl - - Base URL containing host name and port of the OneAPI SMS serverversionOneAPISMS - - Version of OneAPI SMS you are accessing (the default is the latest version supported by that server)accessToken - - 'OAuth' Authentication Access Tokenpublic void load()
public void save()
public Authentication getAuthentication()
public void setAuthentication(Authentication value)
public String getApiUrl()
public void setApiUrl(String apiUrl)
public String getVersionOneAPISMS()
public void setVersionOneAPISMS(String versionOneAPISMS)
public int getInboundMessagesRetrievingInterval()
public void setInboundMessagesRetrievingInterval(int inboundMessagesRetrievingInterval)
public int getDlrRetrievingInterval()
public void setDlrRetrievingInterval(int dlrRetrievingInterval)
public int getDlrStatusPushServerSimulatorPort()
public void setDlrStatusPushServerSimulatorPort(int dlrStatusPushServerSimulatorPort)
public int getInboundMessagesPushServerSimulatorPort()
public void setInboundMessagesPushServerSimulatorPort(int inboundMessagesPushServerSimulatorPort)
public int getHlrPushServerSimulatorPort()
public void setHlrPushServerSimulatorPort(int hlrPushServerSimulatorPort)
Copyright © 2014. All rights reserved.