Uses of Interface
org.jboss.netty.handler.ipfilter.IpSet

Packages that use IpSet
Package
Description
Implementation of a Ip based Filter handlers.


  • Uses of IpSet in org.jboss.netty.handler.ipfilter

    Modifier and Type
    Interface
    Description
    interface 
    This Interface defines an Ip Filter Rule.
    Classes in org.jboss.netty.handler.ipfilter that implement IpSet
    Modifier and Type
    Class
    Description
    class 
    This class allows to check if an IP V4 or V6 Address is contained in a subnet.
    class 
    Ip V4 and Ip V6 filter rule.

    Note that mix of IPV4 and IPV6 is allowed but it is not recommended.
    class 
    This class allows to check if an IP-V4-Address is contained in a subnet.
    Supported Formats for the Subnets are: 1.1.1.1/255.255.255.255 or 1.1.1.1/32 (CIDR-Notation) and (InetAddress,Mask) where Mask is a integer for CIDR-notation or a String for Standard Mask notation.


    Example1:
    IpV4Subnet ips = new IpV4Subnet("192.168.1.0/24");
    System.out.println("Result: "+ ips.contains("192.168.1.123"));
    System.out.println("Result: "+ ips.contains(inetAddress2));

    Example1 bis:
    IpV4Subnet ips = new IpV4Subnet(inetAddress, 24);
    where inetAddress is 192.168.1.0 and inetAddress2 is 192.168.1.123


    Example2:
    IpV4Subnet ips = new IpV4Subnet("192.168.1.0/255.255.255.0");
    System.out.println("Result: "+ ips.contains("192.168.1.123"));
    System.out.println("Result: "+ ips.contains(inetAddress2));

    Example2 bis:
    IpV4Subnet ips = new IpV4Subnet(inetAddress, "255.255.255.0");
    where inetAddress is 192.168.1.0 and inetAddress2 is 192.168.1.123
    class 
    IpV4 only Filter Rule
    class 
    The Class PatternRule represents an IP filter rule using string patterns.