public class CdpConnection extends Connection
callbacks, closed, delay, handleMessageExecutorService, id, LOGGER, manuallyAttached, messageThreadId, sessions, timeout, transport, url| 构造器和说明 |
|---|
CdpConnection(String url,
ConnectionTransport transport,
int delay,
int timeout) |
| 限定符和类型 | 方法和说明 |
|---|---|
CDPSession |
_createSession(TargetInfo targetInfo,
boolean isAutoAttachEmulated) |
boolean |
closed() |
CDPSession |
createSession(TargetInfo targetInfo)
根据给定的 Target info 创建一个
CdpCDPSession |
void |
dispose() |
static Connection |
fromSession(CdpCDPSession client)
从
CdpCDPSession中拿到对应的CdpConnection |
List<ProtocolException> |
getPendingProtocolErrors() |
protected Runnable |
handleMessageRunnable(com.fasterxml.jackson.databind.JsonNode response) |
boolean |
isAutoAttached(String targetId) |
void |
onClose() |
void |
onMessage(String message) |
com.fasterxml.jackson.databind.JsonNode |
rawSend(String method,
Object params,
String sessionId,
Integer timeout,
boolean isBlocking) |
CDPSession |
session(String sessionId) |
String |
url() |
closeRunner, send, send, send, setCloseRunnerdisposeSymbol, emit, listenerCount, off, on, once, removeAllListeners, removeListenerpublic CdpConnection(String url, ConnectionTransport transport, int delay, int timeout)
protected Runnable handleMessageRunnable(com.fasterxml.jackson.databind.JsonNode response)
handleMessageRunnable 在类中 Connectionpublic boolean isAutoAttached(String targetId)
isAutoAttached 在类中 Connectionpublic com.fasterxml.jackson.databind.JsonNode rawSend(String method, Object params, String sessionId, Integer timeout, boolean isBlocking)
rawSend 在类中 Connectionpublic void onMessage(String message)
onMessage 在类中 Connectionpublic static Connection fromSession(CdpCDPSession client)
CdpCDPSession中拿到对应的CdpConnectionclient - cdpsessionpublic CDPSession createSession(TargetInfo targetInfo)
CdpCDPSessiontargetInfo - 给定的 Target infopublic CDPSession _createSession(TargetInfo targetInfo, boolean isAutoAttachEmulated)
_createSession 在类中 Connectionpublic String url()
url 在类中 Connectionpublic CDPSession session(String sessionId)
session 在类中 Connectionpublic void dispose()
dispose 在类中 Connectionpublic void onClose()
onClose 在类中 Connectionpublic List<ProtocolException> getPendingProtocolErrors()
getPendingProtocolErrors 在类中 Connectionpublic boolean closed()
closed 在类中 ConnectionCopyright © 2020–2025. All rights reserved.