com.caucho.server.http
Class FileServlet

java.lang.Object
  |
  +--javax.servlet.GenericServlet
        |
        +--com.caucho.server.http.FileServlet
All Implemented Interfaces:
java.io.Serializable, Servlet, ServletConfig

public class FileServlet
extends GenericServlet

Serves static files. The cache headers are automatically set on these files.

See Also:
Serialized Form

Constructor Summary
FileServlet()
           
 
Method Summary
 void init(ServletConfig conf)
          Initialize the servlet.
 void service(ServletRequest request, ServletResponse response)
          Service a request.
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileServlet

public FileServlet()
Method Detail

init

public void init(ServletConfig conf)
          throws ServletException
Description copied from class: GenericServlet
Initialize the servlet. Most servlets should override the null parameter init() instead.
Overrides:
init in class GenericServlet
Following copied from class: javax.servlet.GenericServlet
Parameters:
config - the servlet's configuration

service

public void service(ServletRequest request,
                    ServletResponse response)
             throws ServletException,
                    java.io.IOException
Description copied from interface: Servlet
Service a request. Since the servlet engine is multithreaded, many threads may execute service simultaneously. Normally, req and res will actually be HttpServletRequest and HttpServletResponse classes.
Following copied from interface: javax.servlet.Servlet
Parameters:
req - request information. Normally servlets will cast this to HttpServletRequest
res - response information. Normally servlets will cast this to HttpServletRequest