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
-
FileServlet()
- Constructor.
-
FileServlet(String)
- Constructor with throttling.
-
copyStream(InputStream, OutputStream)
- Copy a file from in to out.
-
getServletInfo()
- Returns a string containing information about the author, version, and
copyright of the servlet.
-
service(HttpServletRequest, HttpServletResponse)
- Services a single request from the client.
FileServlet
public FileServlet()
- Constructor.
FileServlet
public FileServlet(String throttles) throws IOException
- Constructor with throttling.
- Parameters:
- throttles - filename containing throttle settings
- See Also:
- ThrottledOutputStream
getServletInfo
public String getServletInfo()
- Returns a string containing information about the author, version, and
copyright of the servlet.
- Overrides:
- getServletInfo in class GenericServlet
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
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