public class URIResolver extends VaadinUriResolver
| Constructor and Description |
|---|
URIResolver(Registry registry)
Creates a new instance connected to the given registry.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
getBaseRelativeUri(String baseURI,
String uri)
Returns the given uri as relative to the given base uri.
|
protected String |
getContextRootUrl() |
static String |
getCurrentLocationRelativeToBaseUri()
Returns the current document location as relative to the base uri of the
document.
|
protected String |
getFrontendRootUrl() |
String |
resolveVaadinUri(String uri)
Translates a Vaadin URI to a URL that can be loaded by the browser.
|
resolveVaadinUripublic URIResolver(Registry registry)
registry - the global registrypublic 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 resolveprotected String getContextRootUrl()
protected String getFrontendRootUrl()
public static String getCurrentLocationRelativeToBaseUri()
public static String getBaseRelativeUri(String baseURI, String uri)
baseURI - the base uri of the documenturi - an absolute uri to transformCopyright © 2000–2018 Vaadin Ltd. All rights reserved.