Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Seam Core JSF2 2.3.0.Final
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jboss.seam.web
Class LoggingFilter

    java.lang.Object
      org.jboss.seam.web.AbstractFilter
          org.jboss.seam.web.LoggingFilter

All Implemented Interfaces:
  javax.servlet.Filter

    @Scope(value=APPLICATION)
    @Name(value="org.jboss.seam.web.loggingFilter")
    @BypassInterceptors
    @Filter(within="org.jboss.seam.web.authenticationFilter")
    @Install(classDependencies="org.apache.log4j.Logger",
             dependencies="org.jboss.seam.security.identity",
             precedence=0)
    public class LoggingFilter

extends AbstractFilter

This filter adds the authenticated user name to the log4j mapped diagnostic context so that it can be included in formatted log output if desired, by adding %X{username} to the pattern.

Author:
  Eric Trautman

Constructor Summary
`LoggingFilter()`

Method Summary
`void` | `doFilter(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse, javax.servlet.FilterChain filterChain)`

Methods inherited from class org.jboss.seam.web.AbstractFilter
`destroy, getRegexUrlPattern, getServletContext, getUrlPattern, init, isDisabled, isMappedToCurrentRequestPath, setDisabled, setRegexUrlPattern, setUrlPattern`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### LoggingFilter

    public LoggingFilter()

Method Detail

### doFilter

    public void doFilter(javax.servlet.ServletRequest servletRequest,
                         javax.servlet.ServletResponse servletResponse,
                         javax.servlet.FilterChain filterChain)
                  throws IOException,
                         javax.servlet.ServletException

  Throws:
    `IOException`
    `javax.servlet.ServletException`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Seam Core JSF2 2.3.0.Final
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2012 Seam Framework. All Rights Reserved.