org.jvoicexml.implementation
Class DummyCallControl

java.lang.Object
  extended by org.jvoicexml.implementation.DummyCallControl
All Implemented Interfaces:
CallControl, ExternalResource, RemoteConnectable

public final class DummyCallControl
extends Object
implements CallControl

Dummy implementation of a CallControl resource.

This implementation of a CallControl resource can be used, if there is no telephony support.

Since:
0.5.5
Version:
$Revision: 195 $

Copyright © 2006-2007 JVoiceXML group - http://jvoicexml.sourceforge.net/

Author:
Dirk Schnelle

Constructor Summary
DummyCallControl()
           
 
Method Summary
 void activate()
          Activates this resource, when it is retrieved from the pool.
 void close()
          Closes and releases the acquired resources.
 void connect(RemoteClient client)
          Establishes a connection from the given RemoteClient to this object.
 String getType()
          Retrieves a unique identifier for this external resource.
 void open()
          Initializes and and acquires the needed resources.
 void passivate()
          Passivates this resource, when it is returned to the pool.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DummyCallControl

public DummyCallControl()
Method Detail

activate

public void activate()
Activates this resource, when it is retrieved from the pool.

Specified by:
activate in interface ExternalResource

close

public void close()
Closes and releases the acquired resources.

Specified by:
close in interface ExternalResource

getType

public String getType()
Retrieves a unique identifier for this external resource.

Specified by:
getType in interface ExternalResource
Returns:
unique identifier.

open

public void open()
          throws NoresourceError
Initializes and and acquires the needed resources.

Specified by:
open in interface ExternalResource
Throws:
NoresourceError - The resource could not be opened.

passivate

public void passivate()
Passivates this resource, when it is returned to the pool.

Specified by:
passivate in interface ExternalResource

connect

public void connect(RemoteClient client)
             throws IOException
Establishes a connection from the given RemoteClient to this object.

Specified by:
connect in interface RemoteConnectable
Parameters:
client - data container with connection relevant data.
Throws:
IOException - error establishing the connection.


Copyright © 2005-2007 JVoiceXML group.