java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.RuntimeCollective.webapps.servlet.DBFileServlet
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
- public class DBFileServlet
- extends javax.servlet.http.HttpServlet
Serves DBFiles, based on the request URL.
The URL should be of the form:
http://www.myServer.com/url-pattern/[real|tmp]/1234/filename
where
url-pattern is specified in
web.xml as
param.servletFile.url,
[real|tmp] is either "real", for the real file, or "tmp" for the temporary version,
1234 is the DBFile id, and
filename is the DBFile's filename.
- Version:
- $Id: DBFileServlet.java,v 1.4 2003/09/30 15:13:14 joe Exp $
| Fields inherited from class javax.servlet.http.HttpServlet |
|
| Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DBFileServlet
public DBFileServlet()
doGet
public void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException,
javax.servlet.ServletException
- Write the requested DBFile to the connection
writeBlankResponse
private void writeBlankResponse(javax.servlet.ServletOutputStream outStream)
throws java.io.IOException
- Write an empty String to the response