com.jfw.web.filter
Class JFWFilter

java.lang.Object
  extended by com.jfw.web.filter.JFWFilter
All Implemented Interfaces:
javax.servlet.Filter
Direct Known Subclasses:
CharsetFilter, CompressionFilter

public abstract class JFWFilter
extends java.lang.Object
implements javax.servlet.Filter

All filters extend this class.


Field Summary
protected  java.lang.String className
          Used for logging.
protected  javax.servlet.FilterConfig config
          A FilterConfig object.
 
Constructor Summary
JFWFilter()
           
 
Method Summary
 void destroy()
          Remove the filter.
 javax.servlet.FilterConfig getFilterConfig()
          Return filter config
 void setFilterConfig(javax.servlet.FilterConfig filterConfig)
          Set filter config.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.Filter
doFilter, init
 

Field Detail

className

protected final java.lang.String className
Used for logging.


config

protected javax.servlet.FilterConfig config
A FilterConfig object.

Constructor Detail

JFWFilter

public JFWFilter()
Method Detail

destroy

public void destroy()
Remove the filter.

Specified by:
destroy in interface javax.servlet.Filter

setFilterConfig

public void setFilterConfig(javax.servlet.FilterConfig filterConfig)
                     throws javax.servlet.ServletException
Set filter config.

Parameters:
filterConfig - a FilterConfig object.
Throws:
javax.servlet.ServletException

getFilterConfig

public javax.servlet.FilterConfig getFilterConfig()
Return filter config

Returns:
a FilterConfig object.