FileDocCategorySizeDatePackage
RemoteHostValve.javaAPI DocGlassfish v2 API3912Fri May 04 22:32:42 BST 2007org.apache.catalina.valves

RemoteHostValve

public final class RemoteHostValve extends RequestFilterValve
Concrete implementation of RequestFilterValve that filters based on the remote client's host name.
author
Craig R. McClanahan
version
$Revision: 1.4 $ $Date: 2007/05/05 05:32:41 $

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 intinvoke(org.apache.catalina.Request request, org.apache.catalina.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
param
context The valve context used to invoke the next valve in the current processing pipeline
exception
IOException if an input/output error occurs
exception
ServletException if a servlet error occurs


        return process(request.getRequest().getRemoteHost(),
                request, response);