Top Description Fields Constructors Methods
org.apache.catalina.filters

public final Class RemoteAddrFilter

extends RequestFilter
Class Inheritance
Imports
java.io.IOException, jakarta.servlet.FilterChain, .ServletException, .ServletRequest, .ServletResponse, org.apache.juli.logging.Log, .LogFactory

Concrete implementation of RequestFilter that filters based on the string representation of the remote client's IP address.
Author
Craig R. McClanahan

Field Summary

Modifier and TypeField and Description
private final Log
Inherited from org.apache.catalina.filters.RequestFilter:
allowdenydenyStatus

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
doFilter(ServletRequest
The servlet request to be processed
request
,
ServletResponse
The servlet response to be created
response
,
FilterChain
The filter chain for this request
chain
)

Implements abstract org.apache.catalina.filters.RequestFilter.doFilter.

Implements jakarta.servlet.Filter.doFilter.

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.

protected Log
Inherited from org.apache.catalina.filters.RequestFilter:
getAllowgetDenygetDenyStatusisConfigProblemFatalprocesssetAllowsetDenysetDenyStatus

Field Detail

logback to summary
private final Log log

Constructor Detail

RemoteAddrFilterback to summary
public RemoteAddrFilter()

Method Detail

doFilterback to summary
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException

Implements abstract org.apache.catalina.filters.RequestFilter.doFilter.

Implements jakarta.servlet.Filter.doFilter.

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.

Parameters
request:ServletRequest

The servlet request to be processed

response:ServletResponse

The servlet response to be created

chain:FilterChain

The filter chain for this request

Annotations
@Override
Exceptions
IOException:
if an input/output error occurs
ServletException:
if a servlet error occurs
getLoggerback to summary
protected Log getLogger()

Implements abstract org.apache.catalina.filters.FilterBase.getLogger.

Annotations
@Override