public class SessionFactory extends Object implements AutoCloseable
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_HOST |
static int |
DEFAULT_PORT |
Constructor and Description |
---|
SessionFactory() |
SessionFactory(CdpLoggerType loggerType) |
SessionFactory(int port) |
SessionFactory(int port,
CdpLoggerType loggerType) |
SessionFactory(String host,
int port) |
SessionFactory(String host,
int port,
CdpLoggerType loggerType,
ExecutorService threadPool) |
SessionFactory(String host,
int port,
int connectionTimeout,
CdpLoggerType loggerType,
ExecutorService threadPool) |
Modifier and Type | Method and Description |
---|---|
void |
activate(String sessionId) |
void |
close() |
Session |
connect(String targetId) |
Session |
create() |
Session |
create(SessionSettings sessionSettings) |
Session |
create(String browserContextId) |
Session |
create(String browserContextId,
SessionSettings sessionSettings) |
String |
createBrowserContext() |
protected LoggerFactory |
createLoggerFactory(CdpLoggerType loggerType) |
void |
disposeBrowserContext(String browserContextId) |
String |
getHost() |
int |
getPort() |
com.neovisionaries.ws.client.ProxySettings |
getWebSocketProxySettings() |
int |
getWebSocketReadTimeout() |
boolean |
isHeadless() |
boolean |
ping() |
void |
setHttpClientProxy(Proxy proxy) |
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 Session create(SessionSettings sessionSettings)
public Session create(String browserContextId, SessionSettings sessionSettings)
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)
public com.neovisionaries.ws.client.ProxySettings getWebSocketProxySettings()
public void setHttpClientProxy(Proxy proxy)
Copyright © 2017, 2019–2019 WebFolder OÜ. All rights reserved.