Class BaseChromeRDPDebugger

java.lang.Object
org.teavm.chromerdp.BaseChromeRDPDebugger
All Implemented Interfaces:
ChromeRDPExchangeConsumer
Direct Known Subclasses:
ChromeRDPDebugger

public abstract class BaseChromeRDPDebugger extends Object implements ChromeRDPExchangeConsumer
  • Field Details

    • logger

      protected static final org.slf4j.Logger logger
    • listeners

      protected Set<org.teavm.debugging.javascript.JavaScriptDebuggerListener> listeners
    • mapper

      protected com.fasterxml.jackson.databind.ObjectMapper mapper
  • Constructor Details

    • BaseChromeRDPDebugger

      public BaseChromeRDPDebugger(Executor executor)
  • Method Details

    • getListeners

      protected List<org.teavm.debugging.javascript.JavaScriptDebuggerListener> getListeners()
    • setExchange

      public void setExchange(ChromeRDPExchange exchange)
      Specified by:
      setExchange in interface ChromeRDPExchangeConsumer
    • detach

      public void detach()
    • isAttached

      public boolean isAttached()
    • onAttach

      protected abstract void onAttach()
    • onDetach

      protected abstract void onDetach()
    • handleMessage

      protected abstract org.teavm.common.Promise<Void> handleMessage(Message message) throws IOException
      Throws:
      IOException
    • parseJson

      protected <T> T parseJson(Class<T> type, com.fasterxml.jackson.databind.JsonNode node) throws IOException
      Throws:
      IOException
    • sendMessage

      protected void sendMessage(Message message)
    • callMethodAsync

      protected <R> org.teavm.common.Promise<R> callMethodAsync(String method, Class<R> returnType, Object params)