public abstract class VaadinUriResolver extends Object implements Serializable
resolveVaadinUri(String) and using abstract methods in the
class for accessing information specific to the current environment.| Constructor and Description |
|---|
VaadinUriResolver() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract String |
encodeQueryStringParameterValue(String parameterValue)
Encodes a value for safe inclusion as a parameter in the query string.
|
protected abstract String |
getContextRootUrl()
Gets the URL pointing to the context root.
|
protected abstract String |
getFrontendUrl()
Returns the URL pointing to the folder containing frontend files, either
for ES5 (if browser does not support ES6) or ES6 (most browsers).
|
protected abstract String |
getServiceUrl()
Gets the URL handled by
VaadinService to handle application requests. |
protected abstract String |
getServiceUrlParameterName()
Gets the name of the request parameter that should be used for sending
the requested URL to the
service URL. |
protected abstract String |
getThemeUri()
Gets the URI of the directory of the current theme.
|
protected abstract String |
getVaadinDirUrl()
Gets the URL pointing to the VAADIN directory.
|
String |
resolveVaadinUri(String vaadinUri)
Translates a Vaadin URI to a URL that can be loaded by the browser.
|
public String resolveVaadinUri(String vaadinUri)
theme:// - resolves to the URL of the currently active
theme.published:// - resolves to resources on the classpath
published by @JavaScript or
@StyleSheet annotations on
connectors.app:// - resolves to a URL that will be routed to the
currently registered RequestHandler instances.vaadin:// - resolves to the location of static resouces
in the VAADIN directoryfrontend:// - resolves to the location of frontend
(Bower and similar) resources, which might vary depending on the used
browserhttp:// or
https:// are passed through this method unmodified.vaadinUri - the uri to resolveprotected abstract String getVaadinDirUrl()
protected abstract String getServiceUrlParameterName()
service URL. If
null is returned, the requested URL will instead be appended
to the base service URL.null to send the path as a part of the request path.protected abstract String getServiceUrl()
VaadinService to handle application requests.protected abstract String getContextRootUrl()
protected abstract String getThemeUri()
protected abstract String encodeQueryStringParameterValue(String parameterValue)
parameterValue - the value to encodeprotected abstract String getFrontendUrl()
Copyright © 2021 Vaadin Ltd. All rights reserved.