javax.telephony
Interface Connection


public interface Connection

A Connection represents a link (i.e. an association) between a Call object and an Address object.


Field Summary
static int ALERTING
          Supported.
The Connection.ALERTING state implies that the Address is being notified of an incoming call.
static int CONNECTED
          Supported.
The Connection.CONNECTED state implies that a Connection and its Address is actively part of a telephone call.
static int DISCONNECTED
          Supported.
The Connection.DISCONNECTED state implies it is no longer part of the telephone call, although its references to Call and Address still remain valid.
static int FAILED
          Supported.
The Connection.FAILED state indicates that a Connection to that end of the call has failed for some reason.
static int IDLE
          Supported.
The Connection.IDLE state is the initial state for all new Connections.
static int INPROGRESS
          Supported.
The Connection.INPROGRESS state implies that the Connection, which represents the destination end of a telephone call, is in the process of contacting the destination side.
static int UNKNOWN
          Supported.
The Connection.UNKNOWN state implies that the implementation is unable to determine the current state of the Connection.
 
Method Summary
 void disconnect()
          Supported.
Drops a Connection from an active telephone call.
 Address getAddress()
          Supported.
Returns the Address object associated with this Connection.
 Call getCall()
          Supported.
Returns the Call object associated with this Connection.
 ConnectionCapabilities getCapabilities()
          Not Supported. Returns null.
Returns the dynamic capabilities for the instance of the Connection object.
 ConnectionCapabilities getConnectionCapabilities(Terminal terminal, Address address)
          Not Supported. Returns null.
Deprecated. Since JTAPI v1.2. This method has been replaced by the Connection.getCapabilities() method.
 int getState()
          Supported.
Returns the current state of the Connection.
 TerminalConnection[] getTerminalConnections()
          Supported.
Returns an array of TerminalConnection objects associated with this Connection.