All Packages  Class Hierarchy  This Package  Previous  Next  Index


Class Acme.Serve.FileServlet

java.lang.Object
   |
   +----Acme.Serve.servlet.GenericServlet
           |
           +----Acme.Serve.servlet.http.HttpServlet
                   |
                   +----Acme.Serve.FileServlet

public class FileServlet
extends HttpServlet
Servlet similar to a standard httpd.

Implements the "GET" and "HEAD" methods for files and directories. Handles index.html. Redirects directory URLs that lack a trailing /. Handles If-Modified-Since and Range.

Fetch the software.
Fetch the entire Acme package.

See Also:
Serve

澳门太阳集团2005

1381.com FileServlet()
Constructor.
 o FileServlet(String)
Constructor with throttling.

Method Index

 o copyStream(InputStream, OutputStream)
Copy a file from in to out.
 o getServletInfo()
Returns a string containing information about the author, version, and copyright of the servlet.
澳门太阳集团2006 service(HttpServletRequest, HttpServletResponse)
Services a single request from the client.

Constructors

 o FileServlet
 public FileServlet()
Constructor.

 o FileServlet
 public FileServlet(String throttles) throws IOException
Constructor with throttling.

Parameters:
throttles - filename containing throttle settings
See Also:
ThrottledOutputStream

Methods

澳门太阳集团城网址 getServletInfo
 public String getServletInfo()
Returns a string containing information about the author, version, and copyright of the servlet.

Overrides:
getServletInfo in class GenericServlet
 o service
 public void service(HttpServletRequest req,
                     HttpServletResponse res) throws ServletException, IOException
Services a single request from the client.

Parameters:
req - the servlet request
req - the servlet response
Throws: ServletException
when an exception has occurred
Overrides:
service in class HttpServlet
 o copyStream
 public void copyStream(InputStream in,
                        OutputStream out) throws IOException
Copy a file from in to out. Sub-classes can override this in order to do filtering of some sort.


All Packages  Class Hierarchy  This Package  Previous  Next  Index

ACME Java  ACME Labs