org.torweg.pulse.vfs
Class VFSServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
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
|
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 |
VFSServlet
public VFSServlet()
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 requestres - 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 requestres - 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)