com.caucho.doc
Class ViewFileServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by com.caucho.doc.ViewFileServlet
All Implemented Interfaces:
java.io.Serializable, Servlet, ServletConfig

public class ViewFileServlet
extends GenericServlet

Servlet to view a source file, with optional emphasis based on regular expressions.

See Also:
Serialized Form

Constructor Summary
ViewFileServlet()
           
 
Method Summary
 void init(ServletConfig config)
          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

ViewFileServlet

public ViewFileServlet()
Method Detail

init

public void init(ServletConfig config)
          throws ServletException
Description copied from class: GenericServlet
Initialize the servlet. Most servlets should override the zero parameter init() instead.

Specified by:
init in interface Servlet
Overrides:
init in class GenericServlet
Parameters:
config - the servlet's configuration
Throws:
ServletException

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.

Parameters:
request - request information. Normally servlets will cast this to HttpServletRequest
response - response information. Normally servlets will cast this to HttpServletRequest
Throws:
ServletException
java.io.IOException