Class ServerAndClientViewsProvider

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

public class ServerAndClientViewsProvider extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    ServerAndClientViewsProvider(com.vaadin.flow.function.DeploymentConfiguration deploymentConfiguration, com.vaadin.flow.server.auth.NavigationAccessControl accessControl, com.vaadin.flow.server.auth.ViewAccessChecker viewAccessChecker, boolean exposeServerRoutesToClient)
    Creates a new listener instance with the given route registry.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected Map<String,com.vaadin.flow.server.menu.AvailableViewInfo>
    collectClientViews(com.vaadin.flow.server.VaadinRequest request)
     
    protected Map<String,com.vaadin.flow.server.menu.AvailableViewInfo>
    collectServerViews(boolean hasMainMenu)
     
    createFileRoutesJson(com.vaadin.flow.server.VaadinRequest request)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ServerAndClientViewsProvider

      public ServerAndClientViewsProvider(com.vaadin.flow.function.DeploymentConfiguration deploymentConfiguration, @Nullable com.vaadin.flow.server.auth.NavigationAccessControl accessControl, @Nullable com.vaadin.flow.server.auth.ViewAccessChecker viewAccessChecker, 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)