public class WebJarServlet
extends javax.servlet.http.HttpServlet
| Modifier and Type | Field and Description |
|---|---|
static String[] |
DEFAULT_MAVEN_GROUPS
The default maven group(s) that WebJars are searched for in.
|
static String |
DEFAULT_URL_PREFIX
The default URL prefix that webjars are served out of.
|
| Constructor and Description |
|---|
WebJarServlet(com.google.common.cache.CacheBuilder builder,
Iterable<String> groups,
String urlPrefix)
Construct the actual servlet that this bundle will install.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, servicepublic static final String DEFAULT_URL_PREFIX
public static final String[] DEFAULT_MAVEN_GROUPS
public WebJarServlet(com.google.common.cache.CacheBuilder builder,
Iterable<String> groups,
String urlPrefix)
builder - The cache definition for our webjar bundle.groups - The allowed maven groups of webjars to look for and match against.protected void doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
IOException
doGet in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionCopyright © 2016. All Rights Reserved.