Package com.vaadin.copilot.plugins.docs
Class DocsHandler
java.lang.Object
com.vaadin.copilot.plugins.docs.DocsHandler
- All Implemented Interfaces:
CopilotCommand
-
Field Summary
Fields inherited from interface com.vaadin.copilot.CopilotCommand
KEY_CANCEL_REQ_ID, KEY_REQ_ID
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
canBeParallelCommand
(String command) Checks if given command can be handled asynchronously.protected org.slf4j.Logger
boolean
handleMessage
(String command, elemental.json.JsonObject data, DevToolsInterface devToolsInterface) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.vaadin.copilot.CopilotCommand
handleConnect
-
Constructor Details
-
DocsHandler
public DocsHandler()
-
-
Method Details
-
handleMessage
public boolean handleMessage(String command, elemental.json.JsonObject data, DevToolsInterface devToolsInterface) - Specified by:
handleMessage
in interfaceCopilotCommand
-
getLogger
protected org.slf4j.Logger getLogger() -
canBeParallelCommand
Description copied from interface:CopilotCommand
Checks if given command can be handled asynchronously. If the handler can't be asynchronous at all, it can return false always. But if you want to handle one or more commands asynchronously, you should specify the exact command to prevent handling commands that are not part of the handler as asynchronous.- Specified by:
canBeParallelCommand
in interfaceCopilotCommand
- Returns:
- true if the command can be handled by this command handler
-