Package org.apache.catalina.filters
Class RemoteHostFilter
java.lang.Object
org.apache.catalina.filters.FilterBase
org.apache.catalina.filters.RequestFilter
org.apache.catalina.filters.RemoteHostFilter
- All Implemented Interfaces:
Filter
Concrete implementation of
RequestFilter that filters based on the remote client's host name.- Author:
- Craig R. McClanahan
-
Field Summary
Fields inherited from class org.apache.catalina.filters.RequestFilter
allow, deny, denyStatusFields inherited from class org.apache.catalina.filters.FilterBase
sm -
Constructor Summary
Constructors -
Method Summary
Modifier 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.RequestFilter
getAllow, getDeny, getDenyStatus, isConfigProblemFatal, process, setAllow, setDeny, setDenyStatusMethods inherited from class org.apache.catalina.filters.FilterBase
destroy, init
-
Constructor Details
-
RemoteHostFilter
public RemoteHostFilter()
-
-
Method Details
-
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 protectedprocess()method to perform the actual filtering.- Specified by:
doFilterin interfaceFilter- Specified by:
doFilterin classRequestFilter- 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 occursServletException- if a servlet error occurs
-
getLogger
- Specified by:
getLoggerin classFilterBase
-