Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.RuntimeCollective.webapps.servlet
Class DBFileServlet  view DBFileServlet download DBFileServlet.java

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended bycom.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 $

Field Summary
 
Fields inherited from class javax.servlet.http.HttpServlet
 
Fields inherited from class javax.servlet.GenericServlet
 
Constructor Summary
DBFileServlet()
           
 
Method Summary
 void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Write the requested DBFile to the connection
private  void writeBlankResponse(javax.servlet.ServletOutputStream outStream)
          Write an empty String to the response
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
 
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
 

Constructor Detail

DBFileServlet

public DBFileServlet()
Method Detail

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