|
JSR-043: JTAPI-1.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The JtapiPeer
interface represents a vendor's particular
implementation of the Java Telephony API.
JtapiPeerFactory.getJtapiPeer()
method determines which
Providers are made available to the application.
JtapiPeer.getProvider()
method on this
interface to obtain new Provider objects. Each implementation may support
one or more different "services" (e.g. for different types of underlying
network substrate). A list of available services can be obtained via the
JtapiPeer.getServices()
method.
Applications may also supply optional arguments to the Provider through the
JtapiPeer.getProvider()
method. These arguments are appended
to the providerString
argument passed to the
JtapiPeer.getProvider()
method. The providerString
argument has 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 semi-colon. The keys for these arguments is implementation specific, except for two standard-defined keys:
JtapiPeerFactory
Method Summary | |
java.lang.String |
getName()
Returns the name of this JtapiPeer object instance. |
Provider |
getProvider(java.lang.String providerString)
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. |
Method Detail |
public java.lang.String getName()
public java.lang.String[] getServices()
null
if no services as supported.
public Provider getProvider(java.lang.String providerString) throws ProviderUnavailableException
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 semi-colon. The keys for these arguments is implementation specific, except for two standard-defined keys:
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:
providerString
- The name of the desired service plus an optional
arguments.ProviderUnavailableException
- Indicates a Provider corresponding
to the given string is unavailable.
|
JSR-043: JTAPI-1.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |