Home / Function/ IpFilterRule() — netty Function Reference

IpFilterRule() — netty Function Reference

Architecture documentation for the IpFilterRule() function in IpSubnetFilterRule.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  021189c4_31cf_f5ee_f75f_612646c6334d["IpFilterRule()"]
  f3ff08cb_4fe1_1314_ac18_a2892f03b352["IpSubnetFilterRule"]
  021189c4_31cf_f5ee_f75f_612646c6334d -->|defined in| f3ff08cb_4fe1_1314_ac18_a2892f03b352
  c4185464_2099_2a9e_b108_9e389b3838a1["Ip4SubnetFilterRule()"]
  021189c4_31cf_f5ee_f75f_612646c6334d -->|calls| c4185464_2099_2a9e_b108_9e389b3838a1
  d87ce269_a09c_3dc3_d503_251ebc514d86["Ip6SubnetFilterRule()"]
  021189c4_31cf_f5ee_f75f_612646c6334d -->|calls| d87ce269_a09c_3dc3_d503_251ebc514d86
  style 021189c4_31cf_f5ee_f75f_612646c6334d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

handler/src/main/java/io/netty/handler/ipfilter/IpSubnetFilterRule.java lines 88–99

    private static IpFilterRule selectFilterRule(InetAddress ipAddress, int cidrPrefix, IpFilterRuleType ruleType) {
        ObjectUtil.checkNotNull(ipAddress, "ipAddress");
        ObjectUtil.checkNotNull(ruleType, "ruleType");

        if (ipAddress instanceof Inet4Address) {
            return new Ip4SubnetFilterRule((Inet4Address) ipAddress, cidrPrefix, ruleType);
        } else if (ipAddress instanceof Inet6Address) {
            return new Ip6SubnetFilterRule((Inet6Address) ipAddress, cidrPrefix, ruleType);
        } else {
            throw new IllegalArgumentException("Only IPv4 and IPv6 addresses are supported");
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does IpFilterRule() do?
IpFilterRule() is a function in the netty codebase, defined in handler/src/main/java/io/netty/handler/ipfilter/IpSubnetFilterRule.java.
Where is IpFilterRule() defined?
IpFilterRule() is defined in handler/src/main/java/io/netty/handler/ipfilter/IpSubnetFilterRule.java at line 88.
What does IpFilterRule() call?
IpFilterRule() calls 2 function(s): Ip4SubnetFilterRule, Ip6SubnetFilterRule.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free