org.apache.catalina.filters
Class RemoteAddrFilter
java.lang.Object
org.apache.catalina.filters.FilterBase
org.apache.catalina.filters.RequestFilter
org.apache.catalina.filters.RemoteAddrFilter
- All Implemented Interfaces:
- Filter, CometFilter
public final class RemoteAddrFilter
- extends RequestFilter
Concrete implementation of RequestFilter
that filters
based on the string representation of the remote client's IP address.
- Author:
- Craig R. McClanahan
Fields inherited from class org.apache.catalina.filters.FilterBase |
sm |
Method Summary |
void |
doFilter(ServletRequest request,
ServletResponse response,
FilterChain chain)
Extract the desired request property, and pass it (along with the
specified request and response objects and associated filter chain) to
the protected process() method to perform the actual
filtering. |
void |
doFilterEvent(CometEvent event,
CometFilterChain chain)
Extract the desired request property, and pass it (along with the comet
event and filter chain) to the protected process() method
to perform the actual filtering. |
protected Log |
getLogger()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RemoteAddrFilter
public RemoteAddrFilter()
doFilter
public void doFilter(ServletRequest request,
ServletResponse response,
FilterChain chain)
throws IOException,
ServletException
- Extract the desired request property, and pass it (along with the
specified request and response objects and associated filter chain) to
the protected
process()
method to perform the actual
filtering.
- Specified by:
doFilter
in interface Filter
- Specified by:
doFilter
in class RequestFilter
- Parameters:
request
- The servlet request to be processedresponse
- The servlet response to be createdchain
- The filter chain for this request
- Throws:
IOException
- if an input/output error occurs
ServletException
- if a servlet error occurs
doFilterEvent
public void doFilterEvent(CometEvent event,
CometFilterChain chain)
throws IOException,
ServletException
- Extract the desired request property, and pass it (along with the comet
event and filter chain) to the protected
process()
method
to perform the actual filtering.
- Parameters:
event
- The comet event to be processedchain
- The filter chain for this event
- Throws:
IOException
- if an input/output error occurs
ServletException
- if a servlet error occurs
getLogger
protected Log getLogger()
- Specified by:
getLogger
in class FilterBase
Copyright © 2000-2010 Apache Software Foundation. All Rights Reserved.