Package 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
Concrete implementation of 
RequestFilter that filters based on the string representation of the remote
 client's IP address.- Author:
- Craig R. McClanahan
- 
Field SummaryFields inherited from class org.apache.catalina.filters.RequestFilterallow, deny, denyStatusFields inherited from class org.apache.catalina.filters.FilterBasesm
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoiddoFilter(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 protectedprocess()method to perform the actual filtering.protected LogMethods inherited from class org.apache.catalina.filters.RequestFiltergetAllow, getDeny, getDenyStatus, isConfigProblemFatal, process, setAllow, setDeny, setDenyStatusMethods inherited from class org.apache.catalina.filters.FilterBaseinit
- 
Constructor Details- 
RemoteAddrFilterpublic RemoteAddrFilter()
 
- 
- 
Method Details- 
doFilterpublic 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 protectedprocess()method to perform the actual filtering.- Specified by:
- doFilterin interface- Filter
- Specified by:
- doFilterin class- RequestFilter
- Parameters:
- request- The servlet request to be processed
- response- The servlet response to be created
- chain- The filter chain for this request
- Throws:
- IOException- if an input/output error occurs
- ServletException- if a servlet error occurs
 
- 
getLogger- Specified by:
- getLoggerin class- FilterBase
 
 
-