pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.vfs
Class VFSServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.torweg.pulse.vfs.VFSServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class VFSServlet
extends javax.servlet.http.HttpServlet

a servlet to access VirtualFiles via HTTP GET and POST.

If the request parameter download is present, the file will be delivered with Content-disposition: attachment.

Version:
$Revision: 1904 $
Author:
Thomas Weber
See Also:
Serialized Form

Constructor Summary
VFSServlet()
           
 
Method Summary
 void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          delivers files from the VirtualFileSystem.
 void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          just delegates the request to doGet(HttpServletRequest, HttpServletResponse).
 
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, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VFSServlet

public VFSServlet()
Method Detail

doPost

public final void doPost(javax.servlet.http.HttpServletRequest req,
                         javax.servlet.http.HttpServletResponse res)
                  throws javax.servlet.ServletException,
                         java.io.IOException
just delegates the request to doGet(HttpServletRequest, HttpServletResponse).

Overrides:
doPost in class javax.servlet.http.HttpServlet
Parameters:
req - the request
res - the response
Throws:
java.io.IOException - on errors
javax.servlet.ServletException - on errors

doGet

public final void doGet(javax.servlet.http.HttpServletRequest req,
                        javax.servlet.http.HttpServletResponse res)
                 throws javax.servlet.ServletException,
                        java.io.IOException
delivers files from the VirtualFileSystem.

Overrides:
doGet in class javax.servlet.http.HttpServlet
Parameters:
req - the request
res - the response
Throws:
java.io.IOException - on errors
javax.servlet.ServletException - on errors
See Also:
HttpServlet.doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)