Package com.vaadin.copilot
Class RouteHandler
java.lang.Object
com.vaadin.copilot.RouteHandler
- All Implemented Interfaces:
CopilotCommand
Provides server side route information to the client.
-
Field Summary
Fields inherited from interface com.vaadin.copilot.CopilotCommand
KEY_CANCEL_REQ_ID, KEY_REQ_ID -
Constructor Summary
ConstructorsConstructorDescriptionRouteHandler(ProjectManager projectManager, com.vaadin.flow.server.VaadinServletContext context) Creates a new route handler. -
Method Summary
Modifier and TypeMethodDescriptionstatic List<com.vaadin.flow.router.RouteData> getServerRoutes(com.vaadin.flow.server.VaadinSession vaadinSession) booleanhandleMessage(String command, elemental.json.JsonObject data, com.vaadin.base.devserver.DevToolsInterface devToolsInterface) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.copilot.CopilotCommand
canBeParallelCommand, handleConnect
-
Constructor Details
-
RouteHandler
public RouteHandler(ProjectManager projectManager, com.vaadin.flow.server.VaadinServletContext context) Creates a new route handler.- Parameters:
projectManager- the project manager to usecontext- the servlet context to use
-
-
Method Details
-
handleMessage
public boolean handleMessage(String command, elemental.json.JsonObject data, com.vaadin.base.devserver.DevToolsInterface devToolsInterface) - Specified by:
handleMessagein interfaceCopilotCommand
-
getServerRoutes
public static List<com.vaadin.flow.router.RouteData> getServerRoutes(com.vaadin.flow.server.VaadinSession vaadinSession)
-