public class DownloadServlet
extends javax.servlet.http.HttpServlet
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.commons.logging.Log |
log |
| Constructor and Description |
|---|
DownloadServlet() |
| Modifier and Type | Method and Description |
|---|---|
void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Gets the request.getParameter("file") from the upLoadFileLocation(imagePath)
If it cant find the file (example default theme file is used); then it searches the theme images, defined by 'themeImagePath' in web.xml |
void |
init(javax.servlet.ServletConfig config) |
protected void |
setHeader(javax.servlet.http.HttpServletResponse response)
Do things like set cache.
|
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, servicepublic void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
init in interface javax.servlet.Servletinit in class javax.servlet.GenericServletjavax.servlet.ServletExceptionpublic void doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws IOException
doGet in class javax.servlet.http.HttpServletIOExceptionand themeImagePath in web.xml,
ConfigurationHolder}protected void setHeader(javax.servlet.http.HttpServletResponse response)
resp - as HttpServletResponseCopyright © 2018. All rights reserved.