@Deprecated public class HttpCommandProcessor extends Object implements com.thoughtworks.selenium.CommandProcessor
| Constructor and Description |
|---|
HttpCommandProcessor(String serverHost,
int serverPort,
String browserStartCommand,
String browserURL)
Deprecated.
Specifies a server host/port, a command to launch the browser, and a starting URL for the
browser.
|
HttpCommandProcessor(String pathToServlet,
String browserStartCommand,
String browserURL)
Deprecated.
Specifies the URL to the CommandBridge servlet, a command to launch the browser, and a starting
URL for the browser.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
closeResources(HttpURLConnection conn,
Writer wr,
Reader rdr)
Deprecated.
|
String |
doCommand(String commandName,
String[] args)
Deprecated.
|
String |
executeCommandOnServlet(String command)
Deprecated.
Sends the specified command string to the bridge servlet
|
boolean |
getBoolean(String commandName,
String[] args)
Deprecated.
|
boolean[] |
getBooleanArray(String commandName,
String[] args)
Deprecated.
|
protected String |
getCommandResponseAsString(String command)
Deprecated.
|
protected HttpURLConnection |
getHttpUrlConnection(URL urlForServlet)
Deprecated.
|
protected Reader |
getInputStreamReader(HttpURLConnection conn)
Deprecated.
|
Number |
getNumber(String commandName,
String[] args)
Deprecated.
|
Number[] |
getNumberArray(String commandName,
String[] args)
Deprecated.
|
protected Writer |
getOutputStreamWriter(HttpURLConnection conn)
Deprecated.
|
String |
getRemoteControlServerLocation()
Deprecated.
|
protected int |
getResponseCode(HttpURLConnection conn)
Deprecated.
|
String |
getString(String commandName,
String[] args)
Deprecated.
|
String[] |
getStringArray(String commandName,
String[] args)
Deprecated.
|
boolean |
hasSessionInProgress()
Deprecated.
|
static String[] |
parseCSV(String input)
Deprecated.
Convert backslash-escaped comma-delimited string into String array.
|
void |
setExtensionJs(String extensionJs)
Deprecated.
This should be invoked before start().
|
protected void |
setSessionInProgress(String result)
Deprecated.
|
void |
start()
Deprecated.
|
void |
start(Object optionsObject)
Deprecated.
Wraps the version of start() that takes a String parameter, sending it the result of calling
toString() on optionsObject, which will likely be a BrowserConfigurationOptions instance.
|
void |
start(String optionsString)
Deprecated.
|
void |
stop()
Deprecated.
|
protected String |
throwAssertionFailureExceptionOrError(String message)
Deprecated.
|
public HttpCommandProcessor(String serverHost, int serverPort, String browserStartCommand, String browserURL)
serverHost - - the host name on which the Selenium Server residesserverPort - - the port on which the Selenium Server is listeningbrowserStartCommand - - the command string used to launch the browser, e.g. "*firefox" or
"c:\\program files\\internet explorer\\iexplore.exe"browserURL - - the starting URL including just a domain name. We'll start the browser
pointing at the Selenium resources on this URL,public HttpCommandProcessor(String pathToServlet, String browserStartCommand, String browserURL)
pathToServlet - - the URL of the Selenium Server Driver, e.g.
"http://localhost:4444/selenium-server/driver/" (don't forget the final slash!)browserStartCommand - - the command string used to launch the browser, e.g. "*firefox" or
"c:\\program files\\internet explorer\\iexplore.exe"browserURL - - the starting URL including just a domain name. We'll start the browser
pointing at the Selenium resources on this URL,public String getRemoteControlServerLocation()
getRemoteControlServerLocation in interface com.thoughtworks.selenium.CommandProcessorpublic String doCommand(String commandName, String[] args)
doCommand in interface com.thoughtworks.selenium.CommandProcessorprotected String throwAssertionFailureExceptionOrError(String message)
public String executeCommandOnServlet(String command)
command - command to executeprotected HttpURLConnection getHttpUrlConnection(URL urlForServlet) throws IOException
IOExceptionprotected Writer getOutputStreamWriter(HttpURLConnection conn) throws IOException
IOExceptionprotected Reader getInputStreamReader(HttpURLConnection conn) throws IOException
IOExceptionprotected int getResponseCode(HttpURLConnection conn) throws IOException
IOExceptionprotected String getCommandResponseAsString(String command) throws IOException
IOExceptionprotected void closeResources(HttpURLConnection conn, Writer wr, Reader rdr)
public void setExtensionJs(String extensionJs)
setExtensionJs in interface com.thoughtworks.selenium.CommandProcessorextensionJs - the extra extension Javascript to include in this browser session.public void start()
start in interface com.thoughtworks.selenium.CommandProcessorpublic void start(String optionsString)
start in interface com.thoughtworks.selenium.CommandProcessorpublic void start(Object optionsObject)
start in interface com.thoughtworks.selenium.CommandProcessoroptionsObject - start optionsprotected void setSessionInProgress(String result)
public void stop()
stop in interface com.thoughtworks.selenium.CommandProcessorpublic boolean hasSessionInProgress()
public String getString(String commandName, String[] args)
getString in interface com.thoughtworks.selenium.CommandProcessorpublic String[] getStringArray(String commandName, String[] args)
getStringArray in interface com.thoughtworks.selenium.CommandProcessorpublic static String[] parseCSV(String input)
input - the unparsed string, e.g. "veni\, vidi\, vici,c:\\foo\\bar,c:\\I came\, I
\\saw\\\, I conquered"public Number getNumber(String commandName, String[] args)
getNumber in interface com.thoughtworks.selenium.CommandProcessorpublic Number[] getNumberArray(String commandName, String[] args)
getNumberArray in interface com.thoughtworks.selenium.CommandProcessorpublic boolean getBoolean(String commandName, String[] args)
getBoolean in interface com.thoughtworks.selenium.CommandProcessorCopyright © 2016. All rights reserved.