Class RemoteAddrFilter

  • All Implemented Interfaces:
    Filter

    public final class RemoteAddrFilter
    extends RequestFilter
    Concrete implementation of RequestFilter that filters based on the string representation of the remote client's IP address.
    Author:
    Craig R. McClanahan
    • Constructor Detail

      • RemoteAddrFilter

        public RemoteAddrFilter()
    • Method Detail

      • doFilter

        public void doFilter​(ServletRequest request,
                             ServletResponse response,
                             FilterChain chain)
                      throws java.io.IOException,
                             ServletException
        Extract the desired request property, and pass it (along with the specified request and response objects and associated filter chain) to the protected process() method to perform the actual filtering.
        Specified by:
        doFilter in interface Filter
        Specified by:
        doFilter in class RequestFilter
        Parameters:
        request - The servlet request to be processed
        response - The servlet response to be created
        chain - The filter chain for this request
        Throws:
        java.io.IOException - if an input/output error occurs
        ServletException - if a servlet error occurs