de.ilink.cti.cstajtapi
Class AddressImpl

java.lang.Object
  extended by de.ilink.cti.cstajtapi.AddressImpl
All Implemented Interfaces:
ExtendedAddress, javax.telephony.Address, javax.telephony.callcontrol.CallControlAddress

public class AddressImpl
extends java.lang.Object
implements ExtendedAddress, javax.telephony.callcontrol.CallControlAddress

Implementation of a JTAPI Address object based on a CSTADevice object.

(c) 2002,2003 ilink Kommunikationssysteme GmbH

Version:
$Id: AddressImpl.java,v 1.14 2016-12-12 08:32:16 cjg Exp $
Author:
lars@ilink.de

Field Summary
 
Fields inherited from interface de.ilink.cti.cstajtapi.extensions.ExtendedAddress
DEVICE_STATE_IN_SERVICE, DEVICE_STATE_OUT_OF_SERVICE, DEVICE_STATE_UNKNOWN
 
Method Summary
 void addAddressListener(javax.telephony.AddressListener arg0)
           
 void addCallListener(javax.telephony.CallListener aListener)
           
 void addCallObserver(javax.telephony.CallObserver anObserver)
           
 void addObserver(javax.telephony.AddressObserver arg0)
           
 void cancelForwarding()
           
 javax.telephony.capabilities.AddressCapabilities getAddressCapabilities(javax.telephony.Terminal arg0)
          Deprecated.  
 javax.telephony.AddressListener[] getAddressListeners()
           
 javax.telephony.CallListener[] getCallListeners()
           
 javax.telephony.CallObserver[] getCallObservers()
           
 javax.telephony.capabilities.AddressCapabilities getCapabilities()
           
 javax.telephony.Connection[] getConnections()
           
protected  de.ilink.cti.cstajtapi.interfaces.JTCSTADevice getDevice()
           
 int getDeviceState()
          Returns the deviceState.
 de.ilink.cti.cstajtapi.events.SynchronousCallEventDispatcher getDispatchingAddressObserver()
           
 boolean getDoNotDisturb()
           
 javax.telephony.callcontrol.CallControlForwarding[] getForwarding()
           
 boolean getMessageWaiting()
           
 java.lang.String getName()
           
 javax.telephony.AddressObserver[] getObservers()
           
 javax.telephony.Provider getProvider()
           
 javax.telephony.Terminal[] getTerminals()
           
 void removeAddressListener(javax.telephony.AddressListener arg0)
           
 void removeCallListener(javax.telephony.CallListener aListener)
           
 void removeCallObserver(javax.telephony.CallObserver anObserver)
           
 void removeObserver(javax.telephony.AddressObserver arg0)
           
protected  void setDeviceState(int deviceState)
          Sets the deviceState.
 void setDoNotDisturb(boolean arg0)
           
 void setForwarding(javax.telephony.callcontrol.CallControlForwarding[] arg0)
           
 void setMessageWaiting(boolean arg0)
           
 java.lang.String toString()
           
protected  void transformToAddressEndedState()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface javax.telephony.Address
See Also:
Address.getName()

getProvider

public javax.telephony.Provider getProvider()
Specified by:
getProvider in interface javax.telephony.Address
See Also:
Address.getProvider()

getTerminals

public javax.telephony.Terminal[] getTerminals()
Specified by:
getTerminals in interface javax.telephony.Address
See Also:
Address.getTerminals()

getConnections

public javax.telephony.Connection[] getConnections()
Specified by:
getConnections in interface javax.telephony.Address
See Also:
Address.getConnections()

addObserver

public void addObserver(javax.telephony.AddressObserver arg0)
                 throws javax.telephony.ResourceUnavailableException,
                        javax.telephony.MethodNotSupportedException
Specified by:
addObserver in interface javax.telephony.Address
Throws:
javax.telephony.ResourceUnavailableException
javax.telephony.MethodNotSupportedException
See Also:
Address.addObserver(AddressObserver)

getObservers

public javax.telephony.AddressObserver[] getObservers()
Specified by:
getObservers in interface javax.telephony.Address
See Also:
Address.getObservers()

removeObserver

public void removeObserver(javax.telephony.AddressObserver arg0)
Specified by:
removeObserver in interface javax.telephony.Address
See Also:
Address.removeObserver(AddressObserver)

addCallObserver

public void addCallObserver(javax.telephony.CallObserver anObserver)
                     throws javax.telephony.ResourceUnavailableException,
                            javax.telephony.MethodNotSupportedException
Specified by:
addCallObserver in interface javax.telephony.Address
Throws:
javax.telephony.ResourceUnavailableException
javax.telephony.MethodNotSupportedException
See Also:
Address.addCallObserver(CallObserver)

getCallObservers

public javax.telephony.CallObserver[] getCallObservers()
Specified by:
getCallObservers in interface javax.telephony.Address
See Also:
Address.getCallObservers()

removeCallObserver

public void removeCallObserver(javax.telephony.CallObserver anObserver)
Specified by:
removeCallObserver in interface javax.telephony.Address
See Also:
Address.removeCallObserver(CallObserver)

getCapabilities

public javax.telephony.capabilities.AddressCapabilities getCapabilities()
Specified by:
getCapabilities in interface javax.telephony.Address
See Also:
Address.getCapabilities()

getAddressCapabilities

public javax.telephony.capabilities.AddressCapabilities getAddressCapabilities(javax.telephony.Terminal arg0)
                                                                        throws javax.telephony.InvalidArgumentException,
                                                                               javax.telephony.PlatformException
Deprecated. 

Specified by:
getAddressCapabilities in interface javax.telephony.Address
Throws:
javax.telephony.InvalidArgumentException
javax.telephony.PlatformException
See Also:
Address.getAddressCapabilities(Terminal)

addAddressListener

public void addAddressListener(javax.telephony.AddressListener arg0)
                        throws javax.telephony.ResourceUnavailableException,
                               javax.telephony.MethodNotSupportedException
Specified by:
addAddressListener in interface javax.telephony.Address
Throws:
javax.telephony.ResourceUnavailableException
javax.telephony.MethodNotSupportedException
See Also:
Address.addAddressListener(AddressListener)

getAddressListeners

public javax.telephony.AddressListener[] getAddressListeners()
Specified by:
getAddressListeners in interface javax.telephony.Address
See Also:
Address.getAddressListeners()

removeAddressListener

public void removeAddressListener(javax.telephony.AddressListener arg0)
Specified by:
removeAddressListener in interface javax.telephony.Address
See Also:
Address.removeAddressListener(AddressListener)

addCallListener

public void addCallListener(javax.telephony.CallListener aListener)
                     throws javax.telephony.ResourceUnavailableException,
                            javax.telephony.MethodNotSupportedException
Specified by:
addCallListener in interface javax.telephony.Address
Throws:
javax.telephony.ResourceUnavailableException
javax.telephony.MethodNotSupportedException
See Also:
Address.addCallListener(CallListener)

getCallListeners

public javax.telephony.CallListener[] getCallListeners()
Specified by:
getCallListeners in interface javax.telephony.Address
See Also:
Address.getCallListeners()

removeCallListener

public void removeCallListener(javax.telephony.CallListener aListener)
Specified by:
removeCallListener in interface javax.telephony.Address
See Also:
Address.removeCallListener(CallListener)

getDevice

protected de.ilink.cti.cstajtapi.interfaces.JTCSTADevice getDevice()

transformToAddressEndedState

protected void transformToAddressEndedState()

getDispatchingAddressObserver

public de.ilink.cti.cstajtapi.events.SynchronousCallEventDispatcher getDispatchingAddressObserver()

getDeviceState

public int getDeviceState()
Returns the deviceState.

Specified by:
getDeviceState in interface ExtendedAddress
Returns:
int

setDeviceState

protected void setDeviceState(int deviceState)
Sets the deviceState.

Parameters:
deviceState - The deviceState to set

cancelForwarding

public void cancelForwarding()
                      throws javax.telephony.MethodNotSupportedException,
                             javax.telephony.InvalidStateException
Specified by:
cancelForwarding in interface javax.telephony.callcontrol.CallControlAddress
Throws:
javax.telephony.MethodNotSupportedException
javax.telephony.InvalidStateException

getDoNotDisturb

public boolean getDoNotDisturb()
                        throws javax.telephony.MethodNotSupportedException
Specified by:
getDoNotDisturb in interface javax.telephony.callcontrol.CallControlAddress
Throws:
javax.telephony.MethodNotSupportedException

getForwarding

public javax.telephony.callcontrol.CallControlForwarding[] getForwarding()
                                                                  throws javax.telephony.MethodNotSupportedException
Specified by:
getForwarding in interface javax.telephony.callcontrol.CallControlAddress
Throws:
javax.telephony.MethodNotSupportedException

getMessageWaiting

public boolean getMessageWaiting()
                          throws javax.telephony.MethodNotSupportedException
Specified by:
getMessageWaiting in interface javax.telephony.callcontrol.CallControlAddress
Throws:
javax.telephony.MethodNotSupportedException

setDoNotDisturb

public void setDoNotDisturb(boolean arg0)
                     throws javax.telephony.MethodNotSupportedException,
                            javax.telephony.InvalidStateException
Specified by:
setDoNotDisturb in interface javax.telephony.callcontrol.CallControlAddress
Throws:
javax.telephony.MethodNotSupportedException
javax.telephony.InvalidStateException

setForwarding

public void setForwarding(javax.telephony.callcontrol.CallControlForwarding[] arg0)
                   throws javax.telephony.MethodNotSupportedException,
                          javax.telephony.InvalidStateException,
                          javax.telephony.InvalidArgumentException
Specified by:
setForwarding in interface javax.telephony.callcontrol.CallControlAddress
Throws:
javax.telephony.MethodNotSupportedException
javax.telephony.InvalidStateException
javax.telephony.InvalidArgumentException

setMessageWaiting

public void setMessageWaiting(boolean arg0)
                       throws javax.telephony.MethodNotSupportedException,
                              javax.telephony.InvalidStateException
Specified by:
setMessageWaiting in interface javax.telephony.callcontrol.CallControlAddress
Throws:
javax.telephony.MethodNotSupportedException
javax.telephony.InvalidStateException

toString

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


Copyright © 2002-2007, 2009, 2013, 2015-2019 by ilink Kommunikationssysteme GmbH
info@ilink.de