Class VersionReleaseNoteHandler

java.lang.Object
com.vaadin.copilot.CopilotCommand
com.vaadin.copilot.VersionReleaseNoteHandler

public class VersionReleaseNoteHandler extends CopilotCommand
Handler for the feature of displaying release note link/notification. Handler communicates with the server with the given version from the UI, and returns the URL to UI. Works as a bridge between Frontend invalid input: '<'-> Copilot Server
  • Constructor Details

    • VersionReleaseNoteHandler

      public VersionReleaseNoteHandler()
  • Method Details

    • handleMessage

      public boolean handleMessage(String command, tools.jackson.databind.JsonNode data, com.vaadin.base.devserver.DevToolsInterface devToolsInterface)
      Description copied from class: CopilotCommand
      Called whenever there is a message from the browser. Implementations should check if the command is for them, handle it and return true if the command was handled.
      Specified by:
      handleMessage in class CopilotCommand
      Parameters:
      command - the command to handle
      data - the data for the command
      devToolsInterface - the devtools interface for the connection
      Returns:
      true if the command was handled, false otherwise
    • canBeParallelCommand

      public boolean canBeParallelCommand(String command)
      Description copied from class: 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.
      Overrides:
      canBeParallelCommand in class CopilotCommand
      Parameters:
      command - the command to check
      Returns:
      true if the command can be handled by this command handler