|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.asterisk.manager.ManagerConnectionFactory
public class ManagerConnectionFactory
This factory is used to obtain new ManagerConnections.
ManagerConnection| Constructor Summary | |
|---|---|
ManagerConnectionFactory()
Creates a new ManagerConnectionFactory. |
|
| Method Summary | |
|---|---|
ManagerConnection |
getManagerConnection()
Returns a new ManagerConnection with the default values for hostname, port, username and password. |
ManagerConnection |
getManagerConnection(java.lang.String hostname,
int port,
java.lang.String username,
java.lang.String password)
Returns a new ManagerConnection to an Asterisk server running on given host with the call manager interface listening on the given port. |
ManagerConnection |
getManagerConnection(java.lang.String username,
java.lang.String password)
Returns a new ManagerConnection to an Asterisk server running on default host ("localhost" if you didn't change that via setHostname(String)) with the call manager interface listening
on the default port (5038 if you didn't change that via
setPort(int)). |
ManagerConnection |
getManagerConnection(java.lang.String hostname,
java.lang.String username,
java.lang.String password)
Returns a new ManagerConnection to an Asterisk server running on given host with the call manager interface listening on the default port (5038 if you didn't change that via setPort(int)). |
void |
setHostname(java.lang.String hostname)
Sets the default hostname. Default is "localhost". |
void |
setPassword(java.lang.String password)
Sets the default password. Default is "admin". |
void |
setPort(int port)
Sets the default port. Default is 5038. |
void |
setUsername(java.lang.String username)
Sets the default username. Default is "admin". |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ManagerConnectionFactory()
| Method Detail |
|---|
public void setHostname(java.lang.String hostname)
hostname - the default hostnamepublic void setPort(int port)
port - the default portpublic void setUsername(java.lang.String username)
username - the default usernamepublic void setPassword(java.lang.String password)
username - the default password
public ManagerConnection getManagerConnection()
throws java.io.IOException
setHostname(String), setPort(int),
setUsername(String) and setPassword(String).
java.io.IOException - if the connection cannot be established.
public ManagerConnection getManagerConnection(java.lang.String username,
java.lang.String password)
throws java.io.IOException
setHostname(String)) with the call manager interface listening
on the default port (5038 if you didn't change that via
setPort(int)).
username - the username as specified in Asterisk's
manager.confpassword - the password as specified in Asterisk's
manager.conf
java.io.IOException - if the connection cannot be established.
public ManagerConnection getManagerConnection(java.lang.String hostname,
java.lang.String username,
java.lang.String password)
throws java.io.IOException
setPort(int)).
hostname - the name of the host the Asterisk server is running onusername - the username as specified in Asterisk's
manager.confpassword - the password as specified in Asterisk's
manager.conf
java.io.IOException - if the connection cannot be established.
public ManagerConnection getManagerConnection(java.lang.String hostname,
int port,
java.lang.String username,
java.lang.String password)
throws java.io.IOException
hostname - the name of the host the Asterisk server is running onport - the port the call manager interface is listening onusername - the username as specified in Asterisk's
manager.confpassword - the password as specified in Asterisk's
manager.conf
java.io.IOException - if the connection cannot be established.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||