Class RemoteAddrValve

  • All Implemented Interfaces:
    javax.management.MBeanRegistration, Contained, JmxEnabled, Lifecycle, Valve

    public final class RemoteAddrValve
    extends RequestFilterValve
    Concrete implementation of RequestFilterValve that filters based on the string representation of the remote client's IP address optionally combined with the server connector port number.
    Author:
    Craig R. McClanahan
    • Constructor Detail

      • RemoteAddrValve

        public RemoteAddrValve()
    • Method Detail

      • invoke

        public void invoke​(Request request,
                           Response response)
                    throws java.io.IOException,
                           ServletException
        Description copied from class: RequestFilterValve
        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.
        Specified by:
        invoke in interface Valve
        Specified by:
        invoke in class RequestFilterValve
        Parameters:
        request - The servlet request to be processed
        response - The servlet response to be created
        Throws:
        java.io.IOException - if an input/output error occurs
        ServletException - if a servlet error occurs