|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object filters.RequestDumperFilter
Example filter that dumps interesting state information about a request to the associated servlet context log file, before allowing the servlet to process the request in the usual way. This can be installed as needed to assist in debugging problems.
Constructor Summary | |
RequestDumperFilter()
|
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 RequestDumperFilter()
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 processingchain
- 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()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |