com.skype.connector.test
Class TestConnector

java.lang.Object
  extended by com.skype.connector.Connector
      extended by com.skype.connector.test.TestConnector

public final class TestConnector
extends Connector


Nested Class Summary
 
Nested classes/interfaces inherited from class com.skype.connector.Connector
Connector.Status
 
Method Summary
 void addRecorder(Recorder recorder)
           
 void clearPlayer()
           
protected  Connector.Status connect(int timeout)
          Tries to connect this connector to the Skype client on the platform mechanism.
protected  void disposeImpl()
          Disconnects from the Skype client and clean up the resources of the platfrom.
static TestConnector getInstance()
           
protected  void initializeImpl()
          Initializes the platform specific resources.
static void main(String[] args)
           
 void removeRecorder(Recorder recorder)
           
protected  void sendCommand(String command)
          Sends the specified command to the Skype client on the platform dependent communication layer.
 void setPlayer(Player player)
           
 
Methods inherited from class com.skype.connector.Connector
addConnectorListener, addConnectorListener, addConnectorListener, connect, dispose, execute, execute, execute, execute, execute, executeWithId, executeWithoutTimeout, fireMessageReceived, getApplicationName, getCommandTimeout, getConnectTimeout, getDebugOut, getInstalledPath, getStatus, getStringProperty, initialize, isRunning, removeConnectorListener, sendApplicationName, sendProtocol, setApplicationName, setCommandTimeout, setConnectTimeout, setDebug, setDebugOut, setDebugOut, setInstance, setStatus, setStringProperty, useJNIConnector, waitForEndWithId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static TestConnector getInstance()

addRecorder

public void addRecorder(Recorder recorder)
                 throws ConnectorException
Throws:
ConnectorException

removeRecorder

public void removeRecorder(Recorder recorder)
                    throws ConnectorException
Throws:
ConnectorException

setPlayer

public void setPlayer(Player player)
               throws ConnectorException
Throws:
ConnectorException

clearPlayer

public void clearPlayer()
                 throws ConnectorException
Throws:
ConnectorException

initializeImpl

protected void initializeImpl()
                       throws ConnectorException
Description copied from class: Connector
Initializes the platform specific resources.

Specified by:
initializeImpl in class Connector
Throws:
ConnectorException - if the initialization failed.

connect

protected Connector.Status connect(int timeout)
                            throws ConnectorException
Description copied from class: Connector
Tries to connect this connector to the Skype client on the platform mechanism.

Specified by:
connect in class Connector
Parameters:
timeout - the connect timeout in milliseconds to use while connecting.
Returns:
the status after trying to connect
Throws:
ConnectorException - if the trying to connect failed.

sendCommand

protected void sendCommand(String command)
Description copied from class: Connector
Sends the specified command to the Skype client on the platform dependent communication layer.

Specified by:
sendCommand in class Connector
Parameters:
command - the command to be executed

disposeImpl

protected void disposeImpl()
Description copied from class: Connector
Disconnects from the Skype client and clean up the resources of the platfrom.

Specified by:
disposeImpl in class Connector

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception


Copyright © 2004-2011. All Rights Reserved.