|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectHttpServlet
Repository.Audit
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.
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 |
writeBegin(java.io.PrintWriter out,
java.lang.String user)
Write the beginning of the html stream. |
private void |
writeEnd(java.io.PrintWriter out,
java.lang.String user)
Write the end of the html stream. |
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 |
Constructor Detail |
public Audit()
Method Detail |
public void init(ServletConfig config) throws ServletException
Get parameters and set log.
config
- servlet configuration
ServletException
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, java.io.IOException
request
- HttpServletRequest.response
- HttpServletResponse.
ServletException
java.io.IOException
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, java.io.IOException
request
- HttpServletRequest.response
- HttpServletResponse.
ServletException
java.io.IOException
private void writeBegin(java.io.PrintWriter out, java.lang.String user)
out
- writeruser
- user nameprivate void writeEnd(java.io.PrintWriter out, java.lang.String user)
out
- writeruser
- user nameprivate void writeLog(java.io.PrintWriter out, java.lang.String user) throws java.io.IOException
out
- writeruser
- user name
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |