com.vaadin.server.
Class BootstrapHandler.BootstrapUriResolver
- java.lang.Object
-
- com.vaadin.shared.VaadinUriResolver
-
- com.vaadin.server.BootstrapHandler.BootstrapUriResolver
-
All Implemented Interfaces:
Enclosing class:
protected static class BootstrapHandler.BootstrapUriResolver extends VaadinUriResolver
The URI resolver used in the bootstrap process.
Since:
8.1
See Also:
-
-
Constructor Summary
Constructors Constructor Description BootstrapUriResolver(BootstrapHandler.BootstrapContext bootstrapContext)
Creates a new bootstrap resolver based on the given bootstrap context.
-
Method Summary
All Methods Modifier and Type Method Description protected String
encodeQueryStringParameterValue(String queryString)
Encodes a value for safe inclusion as a parameter in the query string.
protected String
getContextRootUrl()
Gets the URL pointing to the context root.
protected 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 String
getServiceUrl()
Gets the URL handled by
VaadinService
to handle application requests.protected String
getServiceUrlParameterName()
Gets the name of the request parameter that should be used for sending the requested URL to the
service URL
.protected String
getThemeUri()
Gets the URI of the directory of the current theme.
protected String
getVaadinDirUrl()
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:
VaadinUriResolver
Gets the URL pointing to the VAADIN directory.
Specified by:
getVaadinDirUrl
in classVaadinUriResolver
Returns:
the VAADIN directory URL
-
getThemeUri
protected String getThemeUri()
Description copied from class:
VaadinUriResolver
Gets the URI of the directory of the current theme.
Specified by:
getThemeUri
in classVaadinUriResolver
Returns:
the URI of the current theme directory
-
getServiceUrlParameterName
protected String getServiceUrlParameterName()
Description copied from class:
VaadinUriResolver
Gets the name of the request parameter that should be used for sending the requested URL to the
service URL
. Ifnull
is returned, the requested URL will instead be appended to the base service URL.Specified by:
getServiceUrlParameterName
in classVaadinUriResolver
Returns:
the parameter name used for passing request URLs, or
null
to send the path as a part of the request path.
-
getServiceUrl
protected String getServiceUrl()
Description copied from class:
VaadinUriResolver
Gets the URL handled by
VaadinService
to handle application requests.Specified by:
getServiceUrl
in classVaadinUriResolver
Returns:
the service URL
-
encodeQueryStringParameterValue
protected String encodeQueryStringParameterValue(String queryString)
Description copied from class:
VaadinUriResolver
Encodes a value for safe inclusion as a parameter in the query string.
Specified by:
encodeQueryStringParameterValue
in classVaadinUriResolver
Parameters:
queryString
- the value to encodeReturns:
the encoded value
-
getContextRootUrl
protected String getContextRootUrl()
Description copied from class:
VaadinUriResolver
Gets the URL pointing to the context root.
Specified by:
getContextRootUrl
in classVaadinUriResolver
Returns:
the context root URL
-
getFrontendUrl
protected String getFrontendUrl()
Description copied from class:
VaadinUriResolver
Returns the URL pointing to the folder containing frontend files, either for ES5 (if browser does not support ES6) or ES6 (most browsers).
Specified by:
getFrontendUrl
in classVaadinUriResolver
Returns:
the absolute or relative URL to the frontend files, ending with a slash '/'
-
-