public final class Download extends HttpServlet
Modifier and Type | Field and Description |
---|---|
private String |
defaultMimeType |
private boolean |
download |
private static Pattern |
findId |
private static Pattern |
findRange |
private String |
forceMimeType |
private static long |
serialVersionUID |
private boolean |
usePathInfo |
Constructor and Description |
---|
Download() |
Modifier and Type | Method and Description |
---|---|
void |
doGet(HttpServletRequest request,
HttpServletResponse response) |
void |
doPost(HttpServletRequest request,
HttpServletResponse response) |
void |
init() |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
private static final long serialVersionUID
private static final Pattern findId
private static final Pattern findRange
private String defaultMimeType
private String forceMimeType
private boolean download
private boolean usePathInfo
public void init() throws ServletException
init
in class GenericServlet
ServletException
public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
doGet
in class HttpServlet
IOException
ServletException
public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
doPost
in class HttpServlet
IOException
ServletException