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 Object
implements ExtensionConnection


Constructor Summary
NewProfileExtensionConnection(org.openqa.selenium.internal.Lock lock, FirefoxBinary binary, FirefoxProfile profile, 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(org.openqa.selenium.internal.Lock lock,
                                     FirefoxBinary binary,
                                     FirefoxProfile profile,
                                     String host)
                              throws Exception
Throws:
Exception
Method Detail

start

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

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

execute

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

determineNextFreePort

protected int determineNextFreePort(int port)

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 © 2012. All Rights Reserved.