Class AbstractIPListPolicy<C>

    • Constructor Detail

      • AbstractIPListPolicy

        public AbstractIPListPolicy()
    • Method Detail

      • getRemoteAddr

        protected String getRemoteAddr​(ApiRequest request,
                                       IPListConfig config)
        Gets the remote address for comparison.
        Parameters:
        request - the request
        config - the config
      • isMatch

        protected boolean isMatch​(IPListConfig config,
                                  String remoteAddrStr)
        Returns true if the remote address is a match for the configured values in the IP List.
        Parameters:
        config - the config
        remoteAddrStr - the remote address