Tynamo™-SNAP
v1.0.4

com.qindesign.servlet.example
Class LogViewerServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.qindesign.servlet.example.LogViewerServlet
All Implemented Interfaces:
Servlet, ServletConfig

public class LogViewerServlet
extends HttpServlet

Example servlet that can read the server and transfer logs. One suggestion for improvement is to make this an authenticated servlet.

Version:
1.0.4
Author:
Shawn Silverman

Constructor Summary
LogViewerServlet()
           
 
Method Summary
protected  void doGet(HttpServletRequest req, HttpServletResponse resp)
          Process a GET request.
 void init()
          Find the server and transfer log files.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doOptions, doPost, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogViewerServlet

public LogViewerServlet()
Method Detail

init

public void init()
          throws ServletException
Find the server and transfer log files. This will run when the servlet is loaded.

Overrides:
init in class GenericServlet
Throws:
ServletException

doGet

protected void doGet(HttpServletRequest req,
                     HttpServletResponse resp)
              throws ServletException,
                     IOException
Process a GET request.

Overrides:
doGet in class HttpServlet
Throws:
ServletException
IOException

Tynamo™-SNAP
v1.0.4

© 2001-2007 Shawn Silverman