public class CubaWebJarsHandler
extends java.lang.Object
implements com.vaadin.server.RequestHandler
Modifier and Type | Field and Description |
---|---|
protected WebJarResourceResolver |
resolver |
protected javax.servlet.ServletContext |
servletContext |
static java.lang.String |
VAADIN_WEBJARS_PATH_PREFIX |
protected WebConfig |
webConfig |
Constructor and Description |
---|
CubaWebJarsHandler(javax.servlet.ServletContext servletContext) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
browserHasNewestVersion(com.vaadin.server.VaadinRequest request,
long resourceLastModifiedTimestamp) |
protected java.lang.String |
checkResourcePath(java.lang.String uri) |
protected long |
getCacheTime() |
protected java.net.URL |
getClassPathResourceUrl(java.lang.String path) |
protected java.lang.String |
getResourceName(java.lang.String uri) |
protected java.net.URL |
getStaticResourceUrl(java.lang.String path) |
boolean |
handleRequest(com.vaadin.server.VaadinSession session,
com.vaadin.server.VaadinRequest request,
com.vaadin.server.VaadinResponse response) |
public static final java.lang.String VAADIN_WEBJARS_PATH_PREFIX
protected WebJarResourceResolver resolver
protected javax.servlet.ServletContext servletContext
protected WebConfig webConfig
public CubaWebJarsHandler(javax.servlet.ServletContext servletContext)
public boolean handleRequest(com.vaadin.server.VaadinSession session, com.vaadin.server.VaadinRequest request, com.vaadin.server.VaadinResponse response) throws java.io.IOException
handleRequest
in interface com.vaadin.server.RequestHandler
java.io.IOException
protected java.lang.String getResourceName(java.lang.String uri)
protected boolean browserHasNewestVersion(com.vaadin.server.VaadinRequest request, long resourceLastModifiedTimestamp)
protected java.net.URL getStaticResourceUrl(java.lang.String path) throws java.io.IOException
java.io.IOException
@Nullable protected java.net.URL getClassPathResourceUrl(java.lang.String path)
protected long getCacheTime()
protected java.lang.String checkResourcePath(java.lang.String uri)