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

public final Class RemoteHostValve

extends RequestFilterValve
Class Inheritance
Imports
java.io.IOException, jakarta.servlet.ServletException, org.apache.catalina.connector.Request, .Response, org.apache.juli.logging.Log, .LogFactory

Concrete implementation of RequestFilterValve that filters based on the remote client's host name optionally combined with the server connector port number.
Author
Craig R. McClanahan

Field Summary

Modifier and TypeField and Description
private static final Log
Inherited from org.apache.catalina.valves.RequestFilterValve:
allowallowValidallowValuedenydenyStatusdenyValiddenyValue

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected Log
public void
invoke(Request
The servlet request to be processed
request
,
Response
The servlet response to be created
response
)

Implements abstract org.apache.catalina.valves.RequestFilterValve.invoke.

Implements org.apache.catalina.Valve.invoke.

Extract the desired request property, and pass it (along with the specified request and response objects) to the protected process() method to perform the actual filtering.

Inherited from org.apache.catalina.valves.RequestFilterValve:
denyRequestgetAddConnectorPortgetAllowgetDenygetDenyStatusgetInvalidAuthenticationWhenDenygetUsePeerAddressinitInternalisAllowedisAllowValidisDenyValidprocesssetAddConnectorPortsetAllowsetDenysetDenyStatussetInvalidAuthenticationWhenDenysetUsePeerAddressstartInternal

Field Detail

logback to summary
private static final Log log

Hides org.apache.catalina.util.LifecycleMBeanBase.log.

Constructor Detail

RemoteHostValveback to summary
public RemoteHostValve()

Method Detail

getLogback to summary
protected Log getLog()

Implements abstract org.apache.catalina.valves.RequestFilterValve.getLog.

Annotations
@Override
invokeback to summary
public void invoke(Request request, Response response) throws IOException, ServletException

Implements abstract org.apache.catalina.valves.RequestFilterValve.invoke.

Implements org.apache.catalina.Valve.invoke.

Doc from org.apache.catalina.valves.RequestFilterValve.invoke.

Extract the desired request property, and pass it (along with the specified request and response objects) to the protected process() method to perform the actual filtering. This method must be implemented by a concrete subclass.

Parameters
request:Request

The servlet request to be processed

response:Response

The servlet response to be created

Annotations
@Override
Exceptions
IOException:
if an input/output error occurs
ServletException:
if a servlet error occurs