PageBox
Class Audit

java.lang.Object
  extended byHttpServlet
      extended byPageBox.Audit

public class Audit
extends HttpServlet

Log display.

Changes:

alexis.grandemange@pagebox.net

Copyright (c) 2002-2004 Alexis Grandemange

This program is free software; you can redistribute it and/or
 modify it under the terms of the GNU Lesser General Public License
 as published by the Free Software Foundation; version 2.1 of the
 License.
 This library is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 GNU Lesser General Public License for more details.
 A copy of the GNU Lesser General Public License lesser.txt should be
 included in the distribution.

Version:
0, 1, 0
Author:
Alexis Grandemange
See Also:
Serialized Form

Field Summary
(package private)  javax.xml.transform.Templates audit
          Cached audit.xsl template
(package private)  DynDns dd
          Used to register/update a DNS address with DynDNS protocol
(package private)  Log log
          Logging object
(package private)  javax.xml.transform.Templates nolog
          Cached audit-nolog.xsl template
(package private)  java.lang.String workDir
          Directory where XML and log files are defined
 
Constructor Summary
Audit()
           
 
Method Summary
 void doGet(HttpServletRequest request, HttpServletResponse response)
          GET request handling.
 void doPost(HttpServletRequest request, HttpServletResponse response)
          POST request handling.
 void init(ServletConfig config)
          Invoked by Servlet container.
private  void writeLog(java.io.PrintWriter out, java.lang.String user)
          Write the log.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

workDir

java.lang.String workDir
Directory where XML and log files are defined


log

Log log
Logging object


audit

javax.xml.transform.Templates audit
Cached audit.xsl template


nolog

javax.xml.transform.Templates nolog
Cached audit-nolog.xsl template


dd

DynDns dd
Used to register/update a DNS address with DynDNS protocol

Constructor Detail

Audit

public Audit()
Method Detail

init

public void init(ServletConfig config)
          throws ServletException
Invoked by Servlet container.

Set workDir and log.

Throws:
ServletException

doGet

public void doGet(HttpServletRequest request,
                  HttpServletResponse response)
           throws ServletException,
                  java.io.IOException
GET request handling.

Parameters:
request - HttpServletRequest.
response - HttpServletResponse.
Throws:
ServletException
java.io.IOException

doPost

public void doPost(HttpServletRequest request,
                   HttpServletResponse response)
            throws ServletException,
                   java.io.IOException
POST request handling.

Parameters:
request - HttpServletRequest.
response - HttpServletResponse.
Throws:
ServletException
java.io.IOException

writeLog

private void writeLog(java.io.PrintWriter out,
                      java.lang.String user)
               throws java.io.IOException
Write the log.

Parameters:
out - writer
user - user name
Throws:
java.io.IOException