Package org.apache.catalina.valves
Class RemoteHostValve
- java.lang.Object
-
- org.apache.catalina.valves.ValveBase
-
- org.apache.catalina.valves.RequestFilterValve
-
- org.apache.catalina.valves.RemoteHostValve
-
- All Implemented Interfaces:
Contained,Lifecycle,Valve,GlassFishValve
public final class RemoteHostValve extends RequestFilterValve
Concrete implementation ofRequestFilterValvethat filters based on the remote client's host name.- Version:
- $Revision: 1.3 $ $Date: 2005/12/08 01:28:24 $
- Author:
- Craig R. McClanahan
-
-
Field Summary
-
Fields inherited from class org.apache.catalina.valves.RequestFilterValve
allow, allows, denies, deny
-
Fields inherited from class org.apache.catalina.valves.ValveBase
container, controller, debug, domain, lifecycle, log, next, oname, rb, started
-
Fields inherited from interface org.glassfish.web.valve.GlassFishValve
END_PIPELINE, INVOKE_NEXT
-
Fields inherited from interface org.apache.catalina.Lifecycle
AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, INIT_EVENT, START_EVENT, STOP_EVENT
-
-
Constructor Summary
Constructors Constructor Description RemoteHostValve()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetInfo()Return descriptive information about this Valve implementation.intinvoke(Request request, Response response)Extract the desired request property, and pass it (along with the specified request and response objects) to the protectedprocess()method to perform the actual filtering.-
Methods inherited from class org.apache.catalina.valves.RequestFilterValve
getAllow, getDeny, precalculate, process, setAllow, setDeny
-
Methods inherited from class org.apache.catalina.valves.ValveBase
addLifecycleListener, backgroundProcess, createObjectName, event, findLifecycleListeners, getContainer, getController, getDebug, getDomain, getNext, getObjectName, getParentName, invoke, isStarted, postInvoke, removeLifecycleListener, setContainer, setController, setDebug, setNext, setObjectName, start, stop
-
-
-
-
Method Detail
-
getInfo
public String getInfo()
Return descriptive information about this Valve implementation.- Specified by:
getInfoin interfaceGlassFishValve- Specified by:
getInfoin interfaceValve- Overrides:
getInfoin classRequestFilterValve
-
invoke
public int invoke(Request request, Response response) throws IOException, jakarta.servlet.ServletException
Extract the desired request property, and pass it (along with the specified request and response objects) to the protectedprocess()method to perform the actual filtering. This method must be implemented by a concrete subclass.- Specified by:
invokein interfaceGlassFishValve- Specified by:
invokein classRequestFilterValve- Parameters:
request- The servlet request to be processedresponse- The servlet response to be created- Returns:
INVOKE_NEXTorEND_PIPELINE- Throws:
IOException- if an input/output error occursjakarta.servlet.ServletException- if a servlet error occurs
-
-