org.openqa.selenium.firefox.internal
Class AbstractExtensionConnection

java.lang.Object
  extended by org.openqa.selenium.firefox.internal.AbstractExtensionConnection
All Implemented Interfaces:
ExtensionConnection
Direct Known Subclasses:
NewProfileExtensionConnection, RunningInstanceConnection

public abstract class AbstractExtensionConnection
extends java.lang.Object
implements ExtensionConnection


Constructor Summary
AbstractExtensionConnection()
           
 
Method Summary
protected  void connectToBrowser(long timeToWaitInMilliSeconds)
           
 boolean isConnected()
           
protected  void sendMessage(Command command)
           
 Response sendMessageAndWaitForResponse(java.lang.Class<? extends java.lang.RuntimeException> throwOnFailure, Command command)
           
protected  void setAddress(java.lang.String host, int port)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.openqa.selenium.firefox.ExtensionConnection
quit
 

Constructor Detail

AbstractExtensionConnection

public AbstractExtensionConnection()
Method Detail

setAddress

protected void setAddress(java.lang.String host,
                          int port)

connectToBrowser

protected void connectToBrowser(long timeToWaitInMilliSeconds)
                         throws java.io.IOException
Throws:
java.io.IOException

isConnected

public boolean isConnected()
Specified by:
isConnected in interface ExtensionConnection

sendMessageAndWaitForResponse

public Response sendMessageAndWaitForResponse(java.lang.Class<? extends java.lang.RuntimeException> throwOnFailure,
                                              Command command)
Specified by:
sendMessageAndWaitForResponse in interface ExtensionConnection

sendMessage

protected void sendMessage(Command command)


Copyright © 2010. All Rights Reserved.