net.sf.asterisk.manager
Class AsteriskServer

java.lang.Object
  extended by net.sf.asterisk.manager.AsteriskServer
All Implemented Interfaces:
java.io.Serializable

public class AsteriskServer
extends java.lang.Object
implements java.io.Serializable

Represents an Asterisk server that is connected via the Manager API.

Version:
$Id: AsteriskServer.java,v 1.4 2005/03/04 22:21:04 srt Exp $
Author:
PY
See Also:
Serialized Form

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

AsteriskServer

public AsteriskServer()
Creates a new AsteriskServer with default hostname and default port.


AsteriskServer

public AsteriskServer(java.lang.String hostname,
                      int port)
Creates a new Asterisk server with the given hostname and port.

Parameters:
hostname - the hostname of the Asterisk server
port - the port on the Asterisk server the Asterisk Manager API is listening on
Method Detail

getHostname

public final java.lang.String getHostname()
Returns the hostname.

Returns:
the hostname

setHostname

public final void setHostname(java.lang.String hostname)
Sets the hostname.

Parameters:
hostname - the hostname to set

getPort

public final int getPort()
Returns the port.

Returns:
the port

setPort

public final void setPort(int port)
Sets the port.

Parameters:
port - the port to set.

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2004-2005 Stefan Reuter. All Rights Reserved.