Class IpV4SubnetFilterRule

    • Constructor Detail

      • IpV4SubnetFilterRule

        public IpV4SubnetFilterRule​(boolean allow)
        Constructor for a ALLOW or DENY ALL
        Parameters:
        allow - True for ALLOW, False for DENY
      • IpV4SubnetFilterRule

        public IpV4SubnetFilterRule​(boolean allow,
                                    InetAddress inetAddress,
                                    int cidrNetMask)
        Parameters:
        allow - True for ALLOW, False for DENY
      • IpV4SubnetFilterRule

        public IpV4SubnetFilterRule​(boolean allow,
                                    InetAddress inetAddress,
                                    String netMask)
        Parameters:
        allow - True for ALLOW, False for DENY
    • Method Detail

      • isAllowRule

        public boolean isAllowRule()
        Specified by:
        isAllowRule in interface IpFilterRule
        Returns:
        True if this Rule is an ALLOW rule
      • isDenyRule

        public boolean isDenyRule()
        Specified by:
        isDenyRule in interface IpFilterRule
        Returns:
        True if this Rule is a DENY rule