org.jvoicexml.implementation.jsapi10
Class Jsapi10TelephonySupport

java.lang.Object
  extended by org.jvoicexml.implementation.jsapi10.Jsapi10TelephonySupport
All Implemented Interfaces:
ExternalResource, ObservableTelephony, Telephony, RemoteConnectable

public final class Jsapi10TelephonySupport
extends Object
implements Telephony, ObservableTelephony

JSAPI 1.0 implementation of a Telephony resource.

Since:
0.6
Version:
$Revision: 2913 $
Author:
Dirk Schnelle-Walka

Constructor Summary
Jsapi10TelephonySupport()
          Constructs a new object.
 
Method Summary
 void activate()
          
 void addListener(TelephonyListener callListener)
          
 void close()
          
 void connect(ConnectionInformation info)
          
 void disconnect(ConnectionInformation info)
          
 AudioFormat getRecordingAudioFormat()
          
 String getType()
          
 boolean isBusy()
          
 void open()
          
 void passivate()
          
 void play(SynthesizedOutput output, CallControlProperties props)
          
 void record(SpokenInput input, CallControlProperties props)
          
 void removeListener(TelephonyListener callListener)
          
 void startRecording(SpokenInput input, OutputStream stream, CallControlProperties props)
          
 void stopPlay()
          
 void stopRecording()
          
 void transfer(String dest)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Jsapi10TelephonySupport

public Jsapi10TelephonySupport()
Constructs a new object.

Method Detail

activate

public void activate()

Specified by:
activate in interface ExternalResource

close

public void close()

Specified by:
close in interface ExternalResource

getType

public String getType()

Specified by:
getType in interface ExternalResource

open

public void open()
          throws NoresourceError

Specified by:
open in interface ExternalResource
Throws:
NoresourceError

passivate

public void passivate()

Specified by:
passivate in interface ExternalResource

connect

public void connect(ConnectionInformation info)
             throws IOException

Specified by:
connect in interface RemoteConnectable
Throws:
IOException

disconnect

public void disconnect(ConnectionInformation info)

Specified by:
disconnect in interface RemoteConnectable

play

public void play(SynthesizedOutput output,
                 CallControlProperties props)
          throws IOException,
                 NoresourceError

Specified by:
play in interface Telephony
Throws:
IOException
NoresourceError

stopPlay

public void stopPlay()
              throws NoresourceError

Specified by:
stopPlay in interface Telephony
Throws:
NoresourceError

record

public void record(SpokenInput input,
                   CallControlProperties props)
            throws IOException,
                   NoresourceError

Specified by:
record in interface Telephony
Throws:
IOException
NoresourceError

startRecording

public void startRecording(SpokenInput input,
                           OutputStream stream,
                           CallControlProperties props)
                    throws IOException,
                           NoresourceError

Specified by:
startRecording in interface Telephony
Throws:
IOException
NoresourceError

getRecordingAudioFormat

public AudioFormat getRecordingAudioFormat()

Specified by:
getRecordingAudioFormat in interface Telephony

stopRecording

public void stopRecording()
                   throws NoresourceError

Specified by:
stopRecording in interface Telephony
Throws:
NoresourceError

transfer

public void transfer(String dest)
              throws NoresourceError

Specified by:
transfer in interface Telephony
Throws:
NoresourceError

addListener

public void addListener(TelephonyListener callListener)

Specified by:
addListener in interface ObservableTelephony

removeListener

public void removeListener(TelephonyListener callListener)

Specified by:
removeListener in interface ObservableTelephony

isBusy

public boolean isBusy()

Specified by:
isBusy in interface ExternalResource


Copyright © 2005-2009JVoiceXML group.