2.17.2: 2011-06-17

net.sf.basedb.clients.web.servlet
Class Download

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by net.sf.basedb.clients.web.servlet.Download
All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public final class Download
extends HttpServlet

Version:
2.0
Author:
nicklas
See Also:
Serialized Form
Last modified
$Date$

Field Summary
private  String defaultMimeType
           
private  boolean download
           
private static Pattern findId
           
private  String forceMimeType
           
private static long serialVersionUID
           
private  boolean usePathInfo
           
 
Constructor Summary
Download()
           
 
Method Summary
 void doGet(HttpServletRequest request, HttpServletResponse response)
           
 void doPost(HttpServletRequest request, HttpServletResponse response)
           
 void init()
           
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

findId

private static final Pattern findId

defaultMimeType

private String defaultMimeType

forceMimeType

private String forceMimeType

download

private boolean download

usePathInfo

private boolean usePathInfo
Constructor Detail

Download

public Download()
Method Detail

init

public void init()
          throws ServletException
Overrides:
init in class GenericServlet
Throws:
ServletException

doGet

public void doGet(HttpServletRequest request,
                  HttpServletResponse response)
           throws IOException,
                  ServletException
Overrides:
doGet in class HttpServlet
Throws:
IOException
ServletException

doPost

public void doPost(HttpServletRequest request,
                   HttpServletResponse response)
            throws IOException,
                   ServletException
Overrides:
doPost in class HttpServlet
Throws:
IOException
ServletException

2.17.2: 2011-06-17