public class BrowserListener extends Object
Constructor and Description |
---|
BrowserListener(TreeLogger logger,
String bindAddress,
int port,
BrowserChannelServer.SessionHandlerServer handler)
Listens for new connections from browsers.
|
Modifier and Type | Method and Description |
---|---|
static String |
getDevModeURLParams(String address,
int port)
Get a query parameter to be added to the URL that specifies the address
of this listener.
|
int |
getSocketPort() |
void |
setIgnoreRemoteDeath(boolean ignoreRemoteDeath)
Set any created BrowserChannelServers to ignore remote deaths.
|
void |
start()
Start the listener thread.
|
public BrowserListener(TreeLogger logger, String bindAddress, int port, BrowserChannelServer.SessionHandlerServer handler)
logger
- port
- handler
- public static String getDevModeURLParams(String address, int port)
address
- address of host to use for connectionsport
- TCP port number to use for connectionpublic int getSocketPort() throws UnableToCompleteException
UnableToCompleteException
- if the listener is not runningpublic void setIgnoreRemoteDeath(boolean ignoreRemoteDeath)
This is most commonly wanted by JUnitShell.
ignoreRemoteDeath
- public void start()
Copyright © 2018. All rights reserved.