AutoCloseable
public class SessionFactory extends Object implements AutoCloseable
Modifier and Type | Field | Description |
---|---|---|
static String |
DEFAULT_HOST |
|
static int |
DEFAULT_PORT |
Constructor | Description |
---|---|
SessionFactory() |
|
SessionFactory(int port) |
|
SessionFactory(int port,
CdpLoggerType loggerType) |
|
SessionFactory(CdpLoggerType loggerType) |
|
SessionFactory(String host,
int port) |
|
SessionFactory(String host,
int port,
int connectionTimeout,
CdpLoggerType loggerType,
ExecutorService threadPool) |
|
SessionFactory(String host,
int port,
CdpLoggerType loggerType,
ExecutorService threadPool) |
Modifier and Type | Method | Description |
---|---|---|
void |
activate(String sessionId) |
|
void |
close() |
|
Session |
connect(String targetId) |
|
Session |
create() |
|
Session |
create(String browserContextId) |
|
String |
createBrowserContext() |
|
protected LoggerFactory |
createLoggerFactory(CdpLoggerType loggerType) |
|
void |
disposeBrowserContext(String browserContextId) |
|
String |
getHost() |
|
int |
getPort() |
|
int |
getWebSocketReadTimeout() |
|
boolean |
isHeadless() |
|
boolean |
ping() |
|
void |
setWebSocketReadTimeout(int webSocketReadTimeout) |
|
String |
toString() |
public static final String DEFAULT_HOST
public static final int DEFAULT_PORT
public SessionFactory()
public SessionFactory(CdpLoggerType loggerType)
public SessionFactory(int port)
public SessionFactory(int port, CdpLoggerType loggerType)
public SessionFactory(String host, int port)
public SessionFactory(String host, int port, CdpLoggerType loggerType, ExecutorService threadPool)
public SessionFactory(String host, int port, int connectionTimeout, CdpLoggerType loggerType, ExecutorService threadPool)
public int getPort()
public String getHost()
public Session create()
public void close()
close
in interface AutoCloseable
public void activate(String sessionId)
public boolean isHeadless()
public boolean ping()
public String createBrowserContext()
public void disposeBrowserContext(String browserContextId)
protected LoggerFactory createLoggerFactory(CdpLoggerType loggerType)
public int getWebSocketReadTimeout()
public void setWebSocketReadTimeout(int webSocketReadTimeout)
Copyright © 2017, 2018–2018 WebFolder OÜ. All rights reserved.