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, denyStatus
Fields inherited from class org.apache.catalina.filters.FilterBase
sm
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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 protectedprocess()
method to perform the actual filtering.protected Log
Methods inherited from class org.apache.catalina.filters.RequestFilter
getAllow, getDeny, getDenyStatus, isConfigProblemFatal, process, setAllow, setDeny, setDenyStatus
Methods inherited from class org.apache.catalina.filters.FilterBase
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:
doFilter
in interfaceFilter
- Specified by:
doFilter
in 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:
getLogger
in classFilterBase
-