de.ilink.cti.cstajtapi
Class JtapiPeerImpl

java.lang.Object
  extended by de.ilink.cti.cstajtapi.JtapiPeerImpl
All Implemented Interfaces:
javax.telephony.JtapiPeer

public class JtapiPeerImpl
extends java.lang.Object
implements javax.telephony.JtapiPeer

Implementation of a JTAPI peer for CSTA-XML.


Constructor Summary
JtapiPeerImpl()
           
 
Method Summary
 java.lang.String getName()
          Returns the name of this JtapiPeer object instance.
 javax.telephony.Provider getProvider(java.lang.String aParams)
          Returns an instance of a Provider object given a string argument which contains the desired service name.
 java.lang.String[] getServices()
          Returns the services that this implementation supports.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JtapiPeerImpl

public JtapiPeerImpl()
Method Detail

getName

public java.lang.String getName()
Returns the name of this JtapiPeer object instance. This name is the same name used as an argument to JtapiPeerFactory.getJtapiPeer() method.

Specified by:
getName in interface javax.telephony.JtapiPeer
Returns:
The name of this JtapiPeer object instance.

getServices

public java.lang.String[] getServices()
Returns the services that this implementation supports. This method returns null if no services as supported. The returned array is a shallow copy of fProviders.keySet().toArray().

Specified by:
getServices in interface javax.telephony.JtapiPeer
Returns:
The services that this implementation supports.

getProvider

public javax.telephony.Provider getProvider(java.lang.String aParams)
                                     throws javax.telephony.ProviderUnavailableException
Returns an instance of a Provider object given a string argument which contains the desired service name. Optional arguments may also be provided in this string, with the following format: < service name > ; arg1 = val1; arg2 = val2; ... Where < service name > is not optional, and each optional argument pair which follows is separated by a semicolon. The keys for these arguments is implementation specific, except for two standard-defined keys: login: provides the login user name to the Provider. passwd: provides a password to the Provider. If the argument is null, this method returns some default Provider as determined by the JtapiPeer object. The returned Provider is in the Provider.OUT_OF_SERVICE state. Post-conditions: this.getProvider().getState() == Provider.OUT_OF_SERVICE

Specified by:
getProvider in interface javax.telephony.JtapiPeer
Parameters:
providerString - - The name of the desired service plus an optional arguments.
Returns:
An instance of the Provider object.
Throws:
javax.telephony.ProviderUnavailableException - - Indicates a Provider corresponding to the given string is unavailable.


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