Package com.vaadin.copilot
Interface CopilotCommand
- All Known Implementing Classes:
AccessibilityCheckerMessageHandler,AICommandHandler,AnalyticsInterceptor,ApplicationInitializer,DevSetupHandler,DocsHandler,ErrorHandler,FeedbackHandler,GenerateTestsHandler,HotswapDownloadHandler,I18nHandler,IdeHandler,IdePluginCommandHandler,InfoHandler,JavaParserHandler,JavaRewriteHandler,MachineConfigurationHandler,OpenComponentInIDE,PreviewHandler,ProjectFileHandler,RouteHandler,ThemeEditorMessageHandler,UiServiceHandler,UserInfoHandler
public interface CopilotCommand
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault booleancanBeParallelCommand(String command) Checks if given command can be handled asynchronously.default voidhandleConnect(com.vaadin.base.devserver.DevToolsInterface devToolsInterface) booleanhandleMessage(String command, elemental.json.JsonObject data, com.vaadin.base.devserver.DevToolsInterface devToolsInterface)
-
Field Details
-
KEY_REQ_ID
- See Also:
-
KEY_CANCEL_REQ_ID
- See Also:
-
-
Method Details
-
handleMessage
boolean handleMessage(String command, elemental.json.JsonObject data, com.vaadin.base.devserver.DevToolsInterface devToolsInterface) -
handleConnect
default void handleConnect(com.vaadin.base.devserver.DevToolsInterface devToolsInterface) -
canBeParallelCommand
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.- Parameters:
command-- Returns:
- true if the command can be handled by this command handler
-