Package com.vaadin.flow.server
Class BootstrapHandler.BootstrapUriResolver
java.lang.Object
com.vaadin.flow.shared.VaadinUriResolver
com.vaadin.flow.server.BootstrapHandler.BootstrapUriResolver
- All Implemented Interfaces:
Serializable
- Enclosing class:
- BootstrapHandler
The URI resolver used in the bootstrap process.
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates a new bootstrap resolver based on the given ui.BootstrapUriResolver(String contextRootRelatiePath, VaadinSession session) Creates a new bootstrap resolver based on the given session. -
Method Summary
Modifier and TypeMethodDescriptionresolveVaadinUri(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 Details
-
BootstrapUriResolver
Creates a new bootstrap resolver based on the given ui.- Parameters:
ui- the ui to resolve for
-
BootstrapUriResolver
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 Details
-
resolveVaadinUri
Translates a Vaadin URI to a URL that can be loaded by the browser. The following URI schemes are supported:"context://"- resolves to the application context root"base://"- resolves to the base URI of the page
http://orhttps://are passed through this method unmodified.- Parameters:
uri- the URI to resolve- Returns:
- the resolved URI
-