Package io.jmix.ui.sys.vaadin
Class JmixWebJarsHandler
java.lang.Object
io.jmix.ui.sys.vaadin.JmixWebJarsHandler
- All Implemented Interfaces:
com.vaadin.server.RequestHandler
,Serializable
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected WebJarResourceResolver
protected javax.servlet.ServletContext
protected UiProperties
static final String
static final String
-
Constructor Summary
ConstructorDescriptionJmixWebJarsHandler
(javax.servlet.ServletContext servletContext, WebJarResourceResolver resolver, UiProperties uiProperties) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
browserHasNewestVersion
(com.vaadin.server.VaadinRequest request, long resourceLastModifiedTimestamp) protected String
checkResourcePath
(String uri) protected long
protected URL
protected String
getResourceName
(String uri) protected URL
getStaticResourceUrl
(String path) boolean
handleRequest
(com.vaadin.server.VaadinSession session, com.vaadin.server.VaadinRequest request, com.vaadin.server.VaadinResponse response)
-
Field Details
-
VAADIN_WEBJARS_PATH_PREFIX
- See Also:
-
WEBJARS_PATH_PREFIX
- See Also:
-
resolver
-
servletContext
protected javax.servlet.ServletContext servletContext -
uiProperties
-
-
Constructor Details
-
JmixWebJarsHandler
public JmixWebJarsHandler(javax.servlet.ServletContext servletContext, WebJarResourceResolver resolver, UiProperties uiProperties)
-
-
Method Details
-
handleRequest
public boolean handleRequest(com.vaadin.server.VaadinSession session, com.vaadin.server.VaadinRequest request, com.vaadin.server.VaadinResponse response) throws IOException - Specified by:
handleRequest
in interfacecom.vaadin.server.RequestHandler
- Throws:
IOException
-
getResourceName
-
browserHasNewestVersion
protected boolean browserHasNewestVersion(com.vaadin.server.VaadinRequest request, long resourceLastModifiedTimestamp) -
getStaticResourceUrl
- Throws:
IOException
-
getClassPathResourceUrl
-
getCacheTime
protected long getCacheTime() -
checkResourcePath
-