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
FieldsModifier and TypeFieldDescriptionprotected WebJarResourceResolverprotected javax.servlet.ServletContextprotected UiPropertiesstatic final Stringstatic final String -
Constructor Summary
ConstructorsConstructorDescriptionJmixWebJarsHandler(javax.servlet.ServletContext servletContext, WebJarResourceResolver resolver, UiProperties uiProperties) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbrowserHasNewestVersion(com.vaadin.server.VaadinRequest request, long resourceLastModifiedTimestamp) protected StringcheckResourcePath(String uri) protected longprotected URLprotected StringgetResourceName(String uri) protected URLgetStaticResourceUrl(String path) booleanhandleRequest(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:
handleRequestin 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
-