public class SeleniumDriverResourceHandler
extends org.mortbay.http.handler.ResourceHandler
SeleniumServerSeleniumServer,
Serialized Form| Constructor and Description |
|---|
SeleniumDriverResourceHandler(SeleniumServer remoteControl) |
| Modifier and Type | Method and Description |
|---|---|
protected File |
createTempFile(String name) |
void |
deregisterBrowserSession(BrowserSessionFactory.BrowserSessionInfo sessionInfo)
De-registers the given browser session from among the active sessions.
|
String |
doCommand(String cmd,
Vector<String> values,
String sessionId,
org.mortbay.http.HttpResponse res) |
protected void |
downloadWithAnt(URL url,
File outputFile) |
BrowserLauncherFactory |
getBrowserLauncherFactory() |
static String |
getLastSessionId() |
protected String |
getNewBrowserSession(String browserString,
String startURL,
String extensionJs,
BrowserConfigurationOptions browserConfigurations) |
protected FrameGroupCommandQueueSet |
getQueueSet(String sessionId) |
protected static String |
getSpeedForSession(String sessionId) |
void |
handle(String pathInContext,
String pathParams,
org.mortbay.http.HttpRequest req,
org.mortbay.http.HttpResponse res) |
void |
registerBrowserSession(BrowserSessionFactory.BrowserSessionInfo sessionInfo)
Registers the given browser session among the active sessions
to handle.
|
void |
setBrowserLauncherFactory(BrowserLauncherFactory browserLauncherFactory) |
static void |
setLastSessionId(String sessionId) |
protected static void |
setSpeedForSession(String sessionId,
int speed) |
void |
stopAllBrowsers()
Kills all running browsers
|
getAllowedMethods, getAllowedString, getMinGzipLength, getRedirectWelcome, getResource, handleGet, isAcceptRanges, isDirAllowed, isMethodAllowed, sendData, setAcceptRanges, setAllowedMethods, setDirAllowed, setMinGzipLength, setRedirectWelcome, start, stop, writeHeaderspublic SeleniumDriverResourceHandler(SeleniumServer remoteControl)
public void handle(String pathInContext, String pathParams, org.mortbay.http.HttpRequest req, org.mortbay.http.HttpResponse res) throws org.mortbay.http.HttpException, IOException
handle in interface org.mortbay.http.HttpHandlerhandle in class org.mortbay.http.handler.ResourceHandlerorg.mortbay.http.HttpExceptionIOExceptionprotected FrameGroupCommandQueueSet getQueueSet(String sessionId)
public String doCommand(String cmd, Vector<String> values, String sessionId, org.mortbay.http.HttpResponse res)
protected static void setSpeedForSession(String sessionId, int speed)
protected String getNewBrowserSession(String browserString, String startURL, String extensionJs, BrowserConfigurationOptions browserConfigurations) throws RemoteCommandException
RemoteCommandExceptionpublic void registerBrowserSession(BrowserSessionFactory.BrowserSessionInfo sessionInfo)
sessionInfo - the externally created browser session to register.public void deregisterBrowserSession(BrowserSessionFactory.BrowserSessionInfo sessionInfo)
sessionInfo - the session to deregister.public void stopAllBrowsers()
public static String getLastSessionId()
public static void setLastSessionId(String sessionId)
public BrowserLauncherFactory getBrowserLauncherFactory()
public void setBrowserLauncherFactory(BrowserLauncherFactory browserLauncherFactory)
Copyright © 2012. All Rights Reserved.