Class ServerAndClientViewsProvider

java.lang.Object
com.vaadin.hilla.route.ServerAndClientViewsProvider

public class ServerAndClientViewsProvider extends Object
  • Constructor Details

    • ServerAndClientViewsProvider

      public ServerAndClientViewsProvider(com.vaadin.flow.function.DeploymentConfiguration deploymentConfiguration, @Nullable com.vaadin.flow.server.auth.NavigationAccessControl accessControl, boolean exposeServerRoutesToClient)
      Creates a new listener instance with the given route registry.
      Parameters:
      deploymentConfiguration - the runtime deployment configuration
      exposeServerRoutesToClient - whether to expose server routes to the client
  • Method Details

    • createFileRoutesJson

      public String createFileRoutesJson(com.vaadin.flow.server.VaadinRequest request) throws com.fasterxml.jackson.core.JsonProcessingException
      Throws:
      com.fasterxml.jackson.core.JsonProcessingException
    • collectClientViews

      protected Map<String,com.vaadin.flow.server.menu.AvailableViewInfo> collectClientViews(com.vaadin.flow.server.VaadinRequest request)
    • collectServerViews

      protected Map<String,com.vaadin.flow.server.menu.AvailableViewInfo> collectServerViews(boolean hasMainMenu)