Class IpSubnetFilterRule

  • All Implemented Interfaces:
    io.netty.handler.ipfilter.IpFilterRule

    public class IpSubnetFilterRule
    extends Object
    implements io.netty.handler.ipfilter.IpFilterRule
    This differs from Netty's equivalent IpSubnetFilterRule in that it parses CIDR addresses
    Since:
    12.1
    Author:
    Tristan Tarrant
    • Constructor Detail

      • IpSubnetFilterRule

        public IpSubnetFilterRule​(String cidr,
                                  io.netty.handler.ipfilter.IpFilterRuleType type)
    • Method Detail

      • matches

        public boolean matches​(InetSocketAddress inetSocketAddress)
        Specified by:
        matches in interface io.netty.handler.ipfilter.IpFilterRule
      • ruleType

        public io.netty.handler.ipfilter.IpFilterRuleType ruleType()
        Specified by:
        ruleType in interface io.netty.handler.ipfilter.IpFilterRule