org.jboss.wise.lms.httpForward.servlet
Class LoggingServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.jboss.wise.lms.httpForward.servlet.LoggingServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class LoggingServlet
extends javax.servlet.http.HttpServlet

This the servlet that actually acts as a proxy, gets the user requests, logs them through the Lms MBean, invokes the actual target service, get responses, logs them too and forwards them to the user.

Author:
Stefano Maestri, stefano.maestri@javalinux.it, Alessio Soldano, alessio.soldano@javalinux.it
See Also:
Serialized Form

Field Summary
protected  javax.servlet.ServletConfig config
           
static long serialVersionUID
           
 
Constructor Summary
LoggingServlet()
           
 
Method Summary
 void doGet(javax.servlet.http.HttpServletRequest inRequest, javax.servlet.http.HttpServletResponse inResponse)
           
 void doPost(javax.servlet.http.HttpServletRequest inRequest, javax.servlet.http.HttpServletResponse inResponse)
           
 void init()
           
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values

config

protected javax.servlet.ServletConfig config
Constructor Detail

LoggingServlet

public LoggingServlet()
Method Detail

init

public void init()
          throws javax.servlet.ServletException
Overrides:
init in class javax.servlet.GenericServlet
Throws:
javax.servlet.ServletException

doGet

public void doGet(javax.servlet.http.HttpServletRequest inRequest,
                  javax.servlet.http.HttpServletResponse inResponse)
           throws java.io.IOException,
                  javax.servlet.ServletException
Overrides:
doGet in class javax.servlet.http.HttpServlet
Throws:
java.io.IOException
javax.servlet.ServletException

doPost

public void doPost(javax.servlet.http.HttpServletRequest inRequest,
                   javax.servlet.http.HttpServletResponse inResponse)
            throws java.io.IOException,
                   javax.servlet.ServletException
Overrides:
doPost in class javax.servlet.http.HttpServlet
Throws:
java.io.IOException
javax.servlet.ServletException