public final class Download extends HttpServlet
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
defaultMimeType |
private boolean |
download |
private static java.util.regex.Pattern |
findId |
private static java.util.regex.Pattern |
findRange |
private java.lang.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 java.util.regex.Pattern findId
private static final java.util.regex.Pattern findRange
private java.lang.String defaultMimeType
private java.lang.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 java.io.IOException, ServletException
doGet
in class HttpServlet
java.io.IOException
ServletException
public void doPost(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException
doPost
in class HttpServlet
java.io.IOException
ServletException