Class IpSubnetFilterRule

java.lang.Object
org.infinispan.server.core.transport.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 Details

    • IpSubnetFilterRule

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

    • cidr

      public String cidr()
    • 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
    • toString

      public String toString()
      Overrides:
      toString in class Object