FileDocCategorySizeDatePackage
RemoteAddrValve.javaAPI DocApache Tomcat 6.0.142751Fri Jul 20 04:20:32 BST 2007org.apache.catalina.valves

RemoteAddrValve

public final class RemoteAddrValve extends RequestFilterValve
Concrete implementation of RequestFilterValve that filters based on the string representation of the remote client's IP address.
author
Craig R. McClanahan
version
$Revision: 467222 $ $Date: 2006-10-24 05:17:11 +0200 (mar., 24 oct. 2006) $

Fields Summary
private static final String
info
The descriptive information related to this implementation.
Constructors Summary
Methods Summary
public java.lang.StringgetInfo()
Return descriptive information about this Valve implementation.



    // ------------------------------------------------------------- Properties


                
       

        return (info);

    
public voidinvoke(org.apache.catalina.connector.Request request, org.apache.catalina.connector.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. This method must be implemented by a concrete subclass.

param
request The servlet request to be processed
param
response The servlet response to be created
exception
IOException if an input/output error occurs
exception
ServletException if a servlet error occurs


        process(request.getRequest().getRemoteAddr(), request, response);