org.openqa.selenium.firefox.internal
Class NewProfileExtensionConnection

java.lang.Object
  extended by org.openqa.selenium.firefox.internal.NewProfileExtensionConnection
All Implemented Interfaces:
ExtensionConnection, CommandExecutor

public class NewProfileExtensionConnection
extends java.lang.Object
implements CommandExecutor, ExtensionConnection


Constructor Summary
NewProfileExtensionConnection(Lock lock, FirefoxBinary binary, FirefoxProfile profile, java.lang.String host)
           
 
Method Summary
protected  int determineNextFreePort(int port)
           
 Response execute(Command command)
           
 boolean isConnected()
           
 void quit()
          Terminates the connection.
 void start()
          Establishes a connection to the extension.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NewProfileExtensionConnection

public NewProfileExtensionConnection(Lock lock,
                                     FirefoxBinary binary,
                                     FirefoxProfile profile,
                                     java.lang.String host)
                              throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

start

public void start()
           throws java.io.IOException
Description copied from interface: ExtensionConnection
Establishes a connection to the extension.

Specified by:
start in interface ExtensionConnection
Throws:
java.io.IOException - If an I/O error occurs.

execute

public Response execute(Command command)
                 throws java.io.IOException
Specified by:
execute in interface CommandExecutor
Throws:
java.io.IOException

determineNextFreePort

protected int determineNextFreePort(int port)
                             throws java.io.IOException
Throws:
java.io.IOException

quit

public void quit()
Description copied from interface: ExtensionConnection
Terminates the connection.

Specified by:
quit in interface ExtensionConnection

isConnected

public boolean isConnected()
Specified by:
isConnected in interface ExtensionConnection
Returns:
Whether the extension is reachable and accepting requests.


Copyright © 2011. All Rights Reserved.