|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.asterisk.manager.AsteriskServer
public class AsteriskServer
Represents an Asterisk server that is connected via the Manager API.
Constructor Summary | |
---|---|
AsteriskServer()
Creates a new AsteriskServer with default hostname and default port. |
|
AsteriskServer(java.lang.String hostname,
int port)
Creates a new Asterisk server with the given hostname and port. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getHostname()
Returns the hostname. |
int |
getPort()
Returns the port. |
void |
setHostname(java.lang.String hostname)
Sets the hostname. |
void |
setPort(int port)
Sets the port. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AsteriskServer()
public AsteriskServer(java.lang.String hostname, int port)
hostname
- the hostname of the Asterisk serverport
- the port on the Asterisk server the Asterisk Manager API is listening onMethod Detail |
---|
public final java.lang.String getHostname()
public final void setHostname(java.lang.String hostname)
hostname
- the hostname to setpublic final int getPort()
public final void setPort(int port)
port
- the port to set.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |