|
Rakesh API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rakeshv.filters.FilterAdapter
public class FilterAdapter
A Filter class that implements the Filter
interface, and provides default implementations for all the methods.
In most cases, sub-classes need only over-ride
the doFilter( ServletRequest, ServletResponse,
FilterChain ) method.
© Copyright 2003, Rakesh Vidyadharan
| Field Summary | |
|---|---|
protected javax.servlet.FilterConfig |
filterConfig
A reference to the Servlet container's Filter configuration. |
| Constructor Summary | |
|---|---|
FilterAdapter()
|
|
| Method Summary | |
|---|---|
void |
destroy()
Called by the web container to indicate to a filter that it is being taken out of service. |
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
This method of the Filter is called by the container each time a request/response pair is passed through the chain due to a client request for a resource at the end of the chain. |
void |
init(javax.servlet.FilterConfig filterConfig)
Called by the web container to indicate to a filter that it is being placed into service. |
protected void |
setFilterConfig(javax.servlet.FilterConfig filterConfig)
Set filterConfig. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected javax.servlet.FilterConfig filterConfig
| Constructor Detail |
|---|
public FilterAdapter()
| Method Detail |
|---|
public void init(javax.servlet.FilterConfig filterConfig)
throws javax.servlet.ServletException
init in interface javax.servlet.FilterfilterConfig - - A filter configuration object
used by a servlet container used to pass information to a filter
during initialization. This is used to set the filterConfig reference.
javax.servlet.ServletException - - If an exception is encountered while
fetching the initialisation parameters from the filterConfig object reference.public void destroy()
filterConfig
reference to null.
destroy in interface javax.servlet.Filter
public void doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
throws java.io.IOException,
javax.servlet.ServletException
The default implementation simply passes control on to the next filter in the chain.
doFilter in interface javax.servlet.Filterjava.io.IOException - - If exceptions are encountered while
applying the filter.
javax.servlet.ServletException - - If exceptions are encountered while
interacting with the request or response objects.protected void setFilterConfig(javax.servlet.FilterConfig filterConfig)
filterConfig.
filterConfig - The value to set.
|
Rakesh API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||