org.openqa.selenium.server
Class SeleniumDriverResourceHandler
java.lang.Object
org.mortbay.http.handler.AbstractHttpHandler
org.mortbay.http.handler.ResourceHandler
org.openqa.selenium.server.SeleniumDriverResourceHandler
- All Implemented Interfaces:
- java.io.Serializable, org.mortbay.http.HttpHandler, org.mortbay.util.LifeCycle
public class SeleniumDriverResourceHandler
- extends org.mortbay.http.handler.ResourceHandler
A Jetty handler that takes care of remote Selenium requests.
Remote Selenium requests are described in detail in the class description for
SeleniumServer
- Version:
- $Revision: 674 $
- Author:
- Paul Hammant
- See Also:
SeleniumServer
,
Serialized Form
Methods inherited from class org.mortbay.http.handler.ResourceHandler |
getAllowedMethods, getAllowedString, getMinGzipLength, getRedirectWelcome, getResource, handleGet, isAcceptRanges, isDirAllowed, isMethodAllowed, sendData, setAcceptRanges, setAllowedMethods, setDirAllowed, setMinGzipLength, setRedirectWelcome, start, stop, writeHeaders |
Methods inherited from class org.mortbay.http.handler.AbstractHttpHandler |
getHttpContext, getName, handleTrace, initialize, isStarted, setName, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SeleniumDriverResourceHandler
public SeleniumDriverResourceHandler(SeleniumServer server)
handle
public void handle(java.lang.String pathInContext,
java.lang.String pathParams,
org.mortbay.http.HttpRequest req,
org.mortbay.http.HttpResponse res)
throws org.mortbay.http.HttpException,
java.io.IOException
- Specified by:
handle
in interface org.mortbay.http.HttpHandler
- Overrides:
handle
in class org.mortbay.http.handler.ResourceHandler
- Throws:
org.mortbay.http.HttpException
java.io.IOException
doCommand
public java.lang.String doCommand(java.lang.String cmd,
java.util.Vector<java.lang.String> values,
java.lang.String sessionId,
org.mortbay.http.HttpResponse res)
registerBrowserLauncher
public void registerBrowserLauncher(java.lang.String sessionId,
BrowserLauncher launcher)
stopAllBrowsers
public void stopAllBrowsers()
- Kills all running browsers
getLaunchers
public java.util.Map<java.lang.String,BrowserLauncher> getLaunchers()
getLastSessionId
public static java.lang.String getLastSessionId()
getBrowserLauncherFactory
public BrowserLauncherFactory getBrowserLauncherFactory()
setBrowserLauncherFactory
public void setBrowserLauncherFactory(BrowserLauncherFactory browserLauncherFactory)
Copyright © {inceptionYear}-2007 null. All Rights Reserved.