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 equivalentIpSubnetFilterRule
in that it parses CIDR addresses- Since:
- 12.1
- Author:
- Tristan Tarrant
-
-
Constructor Summary
Constructors Constructor Description IpSubnetFilterRule(String cidr, io.netty.handler.ipfilter.IpFilterRuleType type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
cidr()
boolean
matches(InetSocketAddress inetSocketAddress)
io.netty.handler.ipfilter.IpFilterRuleType
ruleType()
String
toString()
-
-
-
Constructor Detail
-
IpSubnetFilterRule
public IpSubnetFilterRule(String cidr, io.netty.handler.ipfilter.IpFilterRuleType type)
-
-
Method Detail
-
cidr
public String cidr()
-
matches
public boolean matches(InetSocketAddress inetSocketAddress)
- Specified by:
matches
in interfaceio.netty.handler.ipfilter.IpFilterRule
-
ruleType
public io.netty.handler.ipfilter.IpFilterRuleType ruleType()
- Specified by:
ruleType
in interfaceio.netty.handler.ipfilter.IpFilterRule
-
-