@Beta public class MarionetteConnection extends java.lang.Object implements ExtensionConnection, NeedsLocalLogs
Constructor and Description |
---|
MarionetteConnection(Lock lock,
FirefoxBinary binary,
FirefoxProfile profile,
java.lang.String host) |
Modifier and Type | Method and Description |
---|---|
Response |
execute(Command command) |
boolean |
isConnected() |
void |
quit()
Terminates the connection.
|
void |
setLocalLogs(LocalLogs logs) |
void |
start()
Establishes a connection to the extension.
|
public MarionetteConnection(Lock lock, FirefoxBinary binary, FirefoxProfile profile, java.lang.String host) throws java.lang.Exception
java.lang.Exception
public void start() throws java.io.IOException
ExtensionConnection
start
in interface ExtensionConnection
java.io.IOException
- If an I/O error occurs.public Response execute(Command command) throws java.io.IOException
execute
in interface CommandExecutor
java.io.IOException
public void quit()
ExtensionConnection
quit
in interface ExtensionConnection
public boolean isConnected()
isConnected
in interface ExtensionConnection
public void setLocalLogs(LocalLogs logs)
setLocalLogs
in interface NeedsLocalLogs