public final class RemoteAddrValve extends RequestFilterValve
RequestFilterValve
that filters
based on the string representation of the remote client's IP address.allow, allows, denies, deny
container, controller, debug, domain, lifecycle, log, next, oname, rb, started
AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, INIT_EVENT, START_EVENT, STOP_EVENT
END_PIPELINE, INVOKE_NEXT
Constructor and Description |
---|
RemoteAddrValve() |
Modifier and Type | Method and Description |
---|---|
String |
getInfo()
Return descriptive information about this Valve implementation.
|
int |
invoke(Request request,
Response response)
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. |
getAllow, getDeny, precalculate, process, setAllow, setDeny
addLifecycleListener, backgroundProcess, createObjectName, event, findLifecycleListeners, getContainer, getController, getDebug, getDomain, getNext, getObjectName, getParentName, invoke, isStarted, postInvoke, removeLifecycleListener, setContainer, setController, setDebug, setNext, setObjectName, start, stop
public String getInfo()
getInfo
in interface Valve
getInfo
in interface GlassFishValve
getInfo
in class RequestFilterValve
public int invoke(Request request, Response response) throws IOException, javax.servlet.ServletException
process()
method to perform the actual filtering.
This method must be implemented by a concrete subclass.invoke
in interface GlassFishValve
invoke
in class RequestFilterValve
request
- The servlet request to be processedresponse
- The servlet response to be createdINVOKE_NEXT
or END_PIPELINE
IOException
- if an input/output error occursjavax.servlet.ServletException
- if a servlet error occursCopyright © 2021. All rights reserved.