info.magnolia.module.resources.servlets.ResourcesServlet
instead.@Deprecated public class ClasspathSpool extends javax.servlet.http.HttpServlet
resourcesRoot
init parameter.
If none is provided, it defaults to /mgnl-resources
. Files in this folder will be loaded by this servlet (corresponding to the configured mapped url,
e.g. /.resources/*
or /VAADIN/*
, etc. This servlet should be used for authoring-only resources, like rich editor images and
scripts. It's not suggested for public website resources. Content length and last modification date are not set on
files returned from the classpath.Modifier and Type | Field and Description |
---|---|
static String |
MGNL_DEFAULT_RESOURCES_ROOT
Deprecated.
Default root directory for resources streamed from the classpath.
|
Constructor and Description |
---|
ClasspathSpool()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Deprecated.
|
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Deprecated.
All static resource requests are handled here.
|
protected String |
getFilePath(javax.servlet.http.HttpServletRequest request)
Deprecated.
|
protected long |
getLastModified(javax.servlet.http.HttpServletRequest req)
Deprecated.
|
void |
init()
Deprecated.
|
doDelete, doHead, doOptions, doPost, doPut, doTrace, service, service
public static final String MGNL_DEFAULT_RESOURCES_ROOT
resourcesRoot
init parameter.protected long getLastModified(javax.servlet.http.HttpServletRequest req)
getLastModified
in class javax.servlet.http.HttpServlet
public void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
doGet
in class javax.servlet.http.HttpServlet
IOException
- for error in accessing the resource or the servlet output streamprotected String getFilePath(javax.servlet.http.HttpServletRequest request)
public void init() throws javax.servlet.ServletException
init
in class javax.servlet.GenericServlet
javax.servlet.ServletException
GenericServlet.init()
public void destroy()
destroy
in interface javax.servlet.Servlet
destroy
in class javax.servlet.GenericServlet
GenericServlet.destroy()
Copyright © 2003–2020 Magnolia International Ltd.. All rights reserved.