public class DownloadServlet
extends javax.servlet.http.HttpServlet
Modifier and Type | Field and Description |
---|---|
protected static org.apache.log4j.Logger |
logger |
Constructor and Description |
---|
DownloadServlet() |
Modifier and Type | Method and Description |
---|---|
void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
static String |
getRequestURL(javax.servlet.http.HttpServletRequest req) |
protected void |
handleError(boolean urlRedirectOnError,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
String itemId,
String message) |
void |
init() |
protected void |
sendError(javax.servlet.http.HttpServletResponse response,
String message) |
protected void |
sendErrorForStatus(javax.servlet.http.HttpServletResponse response,
String message,
int status) |
protected void |
sendMessage(javax.servlet.http.HttpServletResponse response,
String message) |
protected void |
sendMessageResourceAvailable(javax.servlet.http.HttpServletResponse response,
String message) |
protected void |
sendWarnMessage(javax.servlet.http.HttpServletResponse response,
String message) |
protected javax.servlet.http.HttpServletResponse |
setContentLength(javax.servlet.http.HttpServletResponse resp,
long length)
Method to manage HttpServletResponse content length also to big data
|
protected void |
urlRedirect(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse response,
String fakePath) |
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
public void init() throws javax.servlet.ServletException
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
protected javax.servlet.http.HttpServletResponse setContentLength(javax.servlet.http.HttpServletResponse resp, long length)
resp
- length
- protected void handleError(boolean urlRedirectOnError, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, String itemId, String message) throws IOException
IOException
protected void sendError(javax.servlet.http.HttpServletResponse response, String message) throws IOException
IOException
protected void sendErrorForStatus(javax.servlet.http.HttpServletResponse response, String message, int status) throws IOException
IOException
protected void sendMessage(javax.servlet.http.HttpServletResponse response, String message) throws IOException
IOException
protected void sendMessageResourceAvailable(javax.servlet.http.HttpServletResponse response, String message) throws IOException
IOException
protected void sendWarnMessage(javax.servlet.http.HttpServletResponse response, String message) throws IOException
IOException
protected void urlRedirect(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse response, String fakePath) throws IOException
IOException
public static String getRequestURL(javax.servlet.http.HttpServletRequest req)
Copyright © 2016. All Rights Reserved.