com.vaadin.flow.server.
Class BootstrapHandler.BootstrapUriResolver
- java.lang.Object
-
- com.vaadin.flow.shared.VaadinUriResolver
-
- com.vaadin.flow.server.BootstrapHandler.BootstrapUriResolver
-
All Implemented Interfaces:
Enclosing class:
public static class BootstrapHandler.BootstrapUriResolver extends VaadinUriResolver
The URI resolver used in the bootstrap process.
See Also:
-
-
Constructor Summary
Constructors Modifier Constructor and Description BootstrapUriResolver(String contextRootRelatiePath, VaadinSession session)
Creates a new bootstrap resolver based on the given session.
protected
BootstrapUriResolver(UI ui)
Creates a new bootstrap resolver based on the given ui.
-
Method Summary
All Methods Modifier and Type Method and Description String
resolveVaadinUri(String uri)
Translates a Vaadin URI to a URL that can be loaded by the browser.
-
Methods inherited from class com.vaadin.flow.shared.VaadinUriResolver
resolveVaadinUri
-
-
-
-
Constructor Detail
-
BootstrapUriResolver
protected BootstrapUriResolver(UI ui)
Creates a new bootstrap resolver based on the given ui.
Parameters:
ui
- the ui to resolve for
-
BootstrapUriResolver
public BootstrapUriResolver(String contextRootRelatiePath, VaadinSession session)
Creates a new bootstrap resolver based on the given session.
Parameters:
contextRootRelatiePath
- the relative path from the UI (servlet) path to the context rootsession
- the vaadin session
-
-
Method Detail
-
resolveVaadinUri
public String resolveVaadinUri(String uri)
Translates a Vaadin URI to a URL that can be loaded by the browser. The following URI schemes are supported:
- resolves to the application context root
- resolves to the build path where web components were compiled. Browsers supporting ES6 can receive different, more optimized files than browsers that only support ES5.
- resolves to the base URI of the page
http://
orhttps://
are passed through this method unmodified.Parameters:
uri
- the URI to resolveReturns:
the resolved URI
-
-