public abstract class ChromeDevToolsServiceImpl extends Object implements ChromeDevToolsService, Consumer<String>, AutoCloseable
| Constructor and Description |
|---|
ChromeDevToolsServiceImpl(WebSocketService webSocketService,
ChromeDevToolsServiceConfiguration configuration)
Instantiates a new Chrome dev tools service.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(String message) |
EventListener |
addEventListener(String domainName,
String eventName,
EventHandler eventHandler,
Class<?> eventType)
Adds an event listener on a given event name belonging to some domain.
|
void |
close()
Closes the dev tools service.
|
<T> T |
invoke(String returnProperty,
Class<T> clazz,
Class<?>[] returnTypeClasses,
MethodInvocation methodInvocation)
Invokes a dev tools method.
|
<T> T |
invoke(String returnProperty,
Class<T> clazz,
MethodInvocation methodInvocation)
Invokes a dev tools method.
|
boolean |
isClosed()
Returns true if devtools is closed.
|
void |
removeEventListener(EventListener eventListener)
Removes an event listener.
|
void |
setChromeService(ChromeServiceImpl chromeService)
Sets the chrome service container.
|
void |
setChromeTab(ChromeTab chromeTab)
Sets the chrome tab for this service.
|
void |
waitUntilClosed()
Waits until devtools is closed.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAccessibility, getAnimation, getApplicationCache, getAudits, getBackgroundService, getBrowser, getCacheStorage, getCast, getConsole, getCSS, getDatabase, getDebugger, getDeviceOrientation, getDOM, getDOMDebugger, getDOMSnapshot, getDOMStorage, getEmulation, getFetch, getHeadlessExperimental, getHeapProfiler, getIndexedDB, getInput, getInspector, getIO, getLayerTree, getLog, getMedia, getMemory, getNetwork, getOverlay, getPage, getPerformance, getProfiler, getRuntime, getSchema, getSecurity, getServiceWorker, getStorage, getSystemInfo, getTarget, getTethering, getTracing, getWebAudio, getWebAuthnpublic ChromeDevToolsServiceImpl(WebSocketService webSocketService, ChromeDevToolsServiceConfiguration configuration) throws WebSocketServiceException
See ChromeServiceImpl.createDevToolsService(ChromeTab) See ProxyUtils.createProxyFromAbstract(Class, Class[], Object[], InvocationHandler)
webSocketService - Web socket service.configuration - Service configuration.WebSocketServiceException - Web socket service exceptionpublic void setChromeService(ChromeServiceImpl chromeService)
chromeService - Chrome service.public void setChromeTab(ChromeTab chromeTab)
chromeTab - the tabpublic <T> T invoke(String returnProperty, Class<T> clazz, MethodInvocation methodInvocation)
ChromeDevToolsServiceChromeDevToolsService.invoke(String, Class, Class[], MethodInvocation).
This method is deprecated and might be removed in future.
invoke in interface ChromeDevToolsServiceT - Type of a return class.returnProperty - Return property.clazz - Return class type.methodInvocation - Method invocation definition.public <T> T invoke(String returnProperty, Class<T> clazz, Class<?>[] returnTypeClasses, MethodInvocation methodInvocation)
ChromeDevToolsServiceinvoke in interface ChromeDevToolsServiceT - Type of a return class.returnProperty - Return property.clazz - Return class type.returnTypeClasses - List of class to which returnType is parametrized with.methodInvocation - Method invocation definition.public void close()
ChromeDevToolsServiceclose in interface ChromeDevToolsServiceclose in interface AutoCloseablepublic boolean isClosed()
ChromeDevToolsServiceisClosed in interface ChromeDevToolsServicepublic void waitUntilClosed()
ChromeDevToolsServicewaitUntilClosed in interface ChromeDevToolsServicepublic EventListener addEventListener(String domainName, String eventName, EventHandler eventHandler, Class<?> eventType)
ChromeDevToolsServiceaddEventListener in interface ChromeDevToolsServicedomainName - Domain.eventName - Event.eventHandler - Event handler.eventType - Event type.public void removeEventListener(EventListener eventListener)
ChromeDevToolsServiceremoveEventListener in interface ChromeDevToolsServiceeventListener - Event listener.Copyright © 2020. All rights reserved.