public static class BootstrapHandler.BootstrapUriResolver extends VaadinUriResolver
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.
|
Modifier and Type | Method and Description |
---|---|
String |
resolveVaadinUri(String uri)
Translates a Vaadin URI to a URL that can be loaded by the browser.
|
resolveVaadinUri
protected BootstrapUriResolver(UI ui)
ui
- the ui to resolve forpublic BootstrapUriResolver(String contextRootRelatiePath, VaadinSession session)
contextRootRelatiePath
- the relative path from the UI (servlet) path to the
context rootsession
- the vaadin sessionpublic String resolveVaadinUri(String uri)
- 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 pagehttp://
or
https://
are passed through this method unmodified.uri
- the URI to resolveCopyright © 2023. All rights reserved.