Package com.vaadin.hilla.route
Class RouteUnifyingIndexHtmlRequestListener
java.lang.Object
com.vaadin.hilla.route.RouteUnifyingIndexHtmlRequestListener
- All Implemented Interfaces:
com.vaadin.flow.server.communication.IndexHtmlRequestListener,Serializable,EventListener
public class RouteUnifyingIndexHtmlRequestListener
extends Object
implements com.vaadin.flow.server.communication.IndexHtmlRequestListener
Index HTML request listener for collecting the client side and the server
side views and adding them to index.html response.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRouteUnifyingIndexHtmlRequestListener(ClientRouteRegistry clientRouteRegistry, com.vaadin.flow.function.DeploymentConfiguration deploymentConfiguration, RouteUtil routeUtil, 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 TypeMethodDescriptionprotected Map<String,AvailableViewInfo> collectClientViews(Predicate<? super String> isUserInRole, boolean isUserAuthenticated) protected Map<String,AvailableViewInfo> collectServerViews(com.vaadin.flow.server.VaadinRequest vaadinRequest) voidmodifyIndexHtmlResponse(com.vaadin.flow.server.communication.IndexHtmlResponse response)
-
Field Details
-
SCRIPT_STRING
- See Also:
-
-
Constructor Details
-
Method Details
-
modifyIndexHtmlResponse
public void modifyIndexHtmlResponse(com.vaadin.flow.server.communication.IndexHtmlResponse response) - Specified by:
modifyIndexHtmlResponsein interfacecom.vaadin.flow.server.communication.IndexHtmlRequestListener
-
collectClientViews
protected Map<String,AvailableViewInfo> collectClientViews(Predicate<? super String> isUserInRole, boolean isUserAuthenticated) -
collectServerViews
protected Map<String,AvailableViewInfo> collectServerViews(com.vaadin.flow.server.VaadinRequest vaadinRequest)
-