Class RuleBasedIpFilter

    • Constructor Detail

      • RuleBasedIpFilter

        public RuleBasedIpFilter​(IpFilterRule... rules)

        Create new Instance of RuleBasedIpFilter and filter incoming connections based on their IP address and rules applied.

        acceptIfNotFound is set to true.

        Parameters:
        rules - An array of IpFilterRule containing all rules.
      • RuleBasedIpFilter

        public RuleBasedIpFilter​(boolean acceptIfNotFound,
                                 IpFilterRule... rules)
        Create new Instance of RuleBasedIpFilter and filter incoming connections based on their IP address and rules applied.
        Parameters:
        acceptIfNotFound - If true then accept connection from IP Address if it doesn't match any rule.
        rules - An array of IpFilterRule containing all rules.