|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.orderlysoftware.orderlycalls.base.Settings com.orderlysoftware.orderlycalls.asterisk.manager.ManagerSettings
public class ManagerSettings
Encapsulates login and connection info for the Asterisk Manager system.
Nested Class Summary | |
---|---|
class |
ManagerSettings.ManagerEventListenerSettings
|
Constructor Summary | |
---|---|
ManagerSettings()
|
|
ManagerSettings(java.lang.String host,
int port,
java.lang.String username,
java.lang.String password)
|
Method Summary | |
---|---|
long |
getActionTimeout()
|
java.lang.String |
getHost()
|
java.util.ArrayList |
getManagerEventListenerSettings()
|
java.lang.String |
getPassword()
|
int |
getPort()
|
java.lang.String |
getUsername()
|
void |
setActionTimeout(long actionTimeout)
|
void |
setHost(java.lang.String host)
|
void |
setManagerEventListenerSettings(java.util.ArrayList listenerSettings)
Sets the list of classes to be added as listeners on start-up of this client. |
void |
setPassword(java.lang.String password)
|
void |
setPort(int port)
|
void |
setUsername(java.lang.String username)
|
boolean |
setXMLSettings(org.w3c.dom.Element xmlSettings)
Override this method to do your own processing of settings. |
java.lang.String |
toString()
Gets a representation of this object suitable for logging. |
Methods inherited from class com.orderlysoftware.orderlycalls.base.Settings |
---|
equals, getName, getXMLSettings, setName |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ManagerSettings()
public ManagerSettings(java.lang.String host, int port, java.lang.String username, java.lang.String password)
Method Detail |
---|
public java.util.ArrayList getManagerEventListenerSettings()
public void setManagerEventListenerSettings(java.util.ArrayList listenerSettings)
listenerClasses
- public java.lang.String getHost()
public void setHost(java.lang.String host)
host
- The host to set. Default is "127.0.0.1"public java.lang.String getPassword()
public void setPassword(java.lang.String password)
password
- The password to set.public int getPort()
public void setPort(int port)
port
- The port to set. Default is 5038.public java.lang.String getUsername()
public void setUsername(java.lang.String username)
username
- The username to set.public long getActionTimeout()
public void setActionTimeout(long actionTimeout)
actionTimeout
- The actionTimeout to set.public boolean setXMLSettings(org.w3c.dom.Element xmlSettings)
Settings
Make sure you call super.setXMLSettings(xmlSettings)
to
capture name, if present.
setXMLSettings
in class Settings
public java.lang.String toString()
Settings
Subclasses should override this method to show all properties.
toString
in class Settings
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |