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, service
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
init
in interface javax.servlet.Servlet
init
in class javax.servlet.GenericServlet
javax.servlet.ServletException
public void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws IOException
doGet
in class javax.servlet.http.HttpServlet
IOException
and themeImagePath in web.xml
,
ConfigurationHolder}
protected void setHeader(javax.servlet.http.HttpServletResponse response)
resp
- as HttpServletResponse
Copyright © 2018. All rights reserved.