|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object filters.ExampleFilter
public final class ExampleFilter
Example filter that can be attached to either an individual servlet or to a URL pattern. This filter performs the following functions:
attribute
initialization
parameter.
Constructor Summary | |
---|---|
ExampleFilter()
|
Method Summary | |
---|---|
void |
destroy()
Take this filter out of service. |
void |
doFilter(ServletRequest request,
ServletResponse response,
FilterChain chain)
Time the processing that is performed by all subsequent filters in the current filter stack, including the ultimately invoked servlet. |
void |
init(FilterConfig filterConfig)
Place this filter into service. |
String |
toString()
Return a String representation of this object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ExampleFilter()
Method Detail |
---|
public void destroy()
destroy
in interface Filter
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException
doFilter
in interface Filter
request
- The servlet request we are processingresult
- The servlet response we are creatingchain
- The filter chain we are processing
IOException
- if an input/output error occurs
ServletException
- if a servlet error occurspublic void init(FilterConfig filterConfig) throws ServletException
init
in interface Filter
filterConfig
- The filter configuration object
ServletException
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |