Class RemoteHostValve

  • All Implemented Interfaces:
    Contained, Lifecycle, Valve, GlassFishValve

    public final class RemoteHostValve
    extends RequestFilterValve
    Concrete implementation of RequestFilterValve that filters based on the remote client's host name.
    Version:
    $Revision: 1.3 $ $Date: 2005/12/08 01:28:24 $
    Author:
    Craig R. McClanahan
    • Constructor Detail

      • RemoteHostValve

        public RemoteHostValve()
    • Method Detail

      • 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 protected process() method to perform the actual filtering. This method must be implemented by a concrete subclass.
        Specified by:
        invoke in interface GlassFishValve
        Specified by:
        invoke in class RequestFilterValve
        Parameters:
        request - The servlet request to be processed
        response - The servlet response to be created
        Returns:
        INVOKE_NEXT or END_PIPELINE
        Throws:
        IOException - if an input/output error occurs
        jakarta.servlet.ServletException - if a servlet error occurs