Package com.vaadin.server
Class BootstrapHandler.BootstrapUriResolver
- java.lang.Object
-
- com.vaadin.shared.VaadinUriResolver
-
- com.vaadin.server.BootstrapHandler.BootstrapUriResolver
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- BootstrapHandler
protected static class BootstrapHandler.BootstrapUriResolver extends VaadinUriResolver
The URI resolver used in the bootstrap process.- Since:
- 8.1
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BootstrapUriResolver(BootstrapHandler.BootstrapContext bootstrapContext)Creates a new bootstrap resolver based on the given bootstrap context.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringencodeQueryStringParameterValue(String queryString)Encodes a value for safe inclusion as a parameter in the query string.protected StringgetContextRootUrl()Gets the URL pointing to the context root.protected StringgetFrontendUrl()Returns the URL pointing to the folder containing frontend files, either for ES5 (if browser does not support ES6) or ES6 (most browsers).protected StringgetServiceUrl()Gets the URL handled byVaadinServiceto handle application requests.protected StringgetServiceUrlParameterName()Gets the name of the request parameter that should be used for sending the requested URL to theservice URL.protected StringgetThemeUri()Gets the URI of the directory of the current theme.protected StringgetVaadinDirUrl()Gets the URL pointing to the VAADIN directory.-
Methods inherited from class com.vaadin.shared.VaadinUriResolver
resolveVaadinUri
-
-
-
-
Constructor Detail
-
BootstrapUriResolver
public BootstrapUriResolver(BootstrapHandler.BootstrapContext bootstrapContext)
Creates a new bootstrap resolver based on the given bootstrap context.- Parameters:
bootstrapContext- the bootstrap context
-
-
Method Detail
-
getVaadinDirUrl
protected String getVaadinDirUrl()
Description copied from class:VaadinUriResolverGets the URL pointing to the VAADIN directory.- Specified by:
getVaadinDirUrlin classVaadinUriResolver- Returns:
- the VAADIN directory URL
-
getThemeUri
protected String getThemeUri()
Description copied from class:VaadinUriResolverGets the URI of the directory of the current theme.- Specified by:
getThemeUriin classVaadinUriResolver- Returns:
- the URI of the current theme directory
-
getServiceUrlParameterName
protected String getServiceUrlParameterName()
Description copied from class:VaadinUriResolverGets the name of the request parameter that should be used for sending the requested URL to theservice URL. Ifnullis returned, the requested URL will instead be appended to the base service URL.- Specified by:
getServiceUrlParameterNamein classVaadinUriResolver- Returns:
- the parameter name used for passing request URLs, or
nullto send the path as a part of the request path.
-
getServiceUrl
protected String getServiceUrl()
Description copied from class:VaadinUriResolverGets the URL handled byVaadinServiceto handle application requests.- Specified by:
getServiceUrlin classVaadinUriResolver- Returns:
- the service URL
-
encodeQueryStringParameterValue
protected String encodeQueryStringParameterValue(String queryString)
Description copied from class:VaadinUriResolverEncodes a value for safe inclusion as a parameter in the query string.- Specified by:
encodeQueryStringParameterValuein classVaadinUriResolver- Parameters:
queryString- the value to encode- Returns:
- the encoded value
-
getContextRootUrl
protected String getContextRootUrl()
Description copied from class:VaadinUriResolverGets the URL pointing to the context root.- Specified by:
getContextRootUrlin classVaadinUriResolver- Returns:
- the context root URL
-
getFrontendUrl
protected String getFrontendUrl()
Description copied from class:VaadinUriResolverReturns the URL pointing to the folder containing frontend files, either for ES5 (if browser does not support ES6) or ES6 (most browsers).- Specified by:
getFrontendUrlin classVaadinUriResolver- Returns:
- the absolute or relative URL to the frontend files, ending with a slash '/'
-
-