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


Field Summary
protected  java.net.SocketAddress address
           
 
Constructor Summary
AbstractExtensionConnection()
           
 
Method Summary
protected  boolean connectToBrowser(long timeToWaitInMilliSeconds)
           
 boolean isConnected()
           
 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
 

Field Detail

address

protected java.net.SocketAddress address
Constructor Detail

AbstractExtensionConnection

public AbstractExtensionConnection()
Method Detail

setAddress

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

connectToBrowser

protected boolean 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


Copyright © 2009. All Rights Reserved.