Package org.eclipse.jetty.util
Class InetAddressSet
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet<java.lang.String>
-
- org.eclipse.jetty.util.InetAddressSet
-
- All Implemented Interfaces:
java.lang.Iterable<java.lang.String>,java.util.Collection<java.lang.String>,java.util.function.Predicate<java.net.InetAddress>,java.util.Set<java.lang.String>
@Deprecated(since="2021-05-27") public class InetAddressSet extends java.util.AbstractSet<java.lang.String> implements java.util.Set<java.lang.String>, java.util.function.Predicate<java.net.InetAddress>Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.A set of InetAddress patterns.This is a
Setof String patterns that are used to match aPredicateover InetAddress for containment semantics. The patterns that may be set are:- InetAddress
- A single InetAddress either in hostname or address format.
All formats supported by
InetAddressare accepted. Not ethat using hostname matches may force domain lookups. eg. "[::1]", "1.2.3.4", "::ffff:127.0.0.1" - InetAddress/CIDR
- An InetAddress with a integer number of bits to indicate the significant prefix. eg. "192.168.0.0/16" will match from "192.168.0.0" to "192.168.255.255"
- InetAddress-InetAddress
- An inclusive range of InetAddresses. eg. "[a000::1]-[afff::]", "192.168.128.0-192.168.128.255"
- Legacy format
- The legacy format used by
IPAddressMapfor IPv4 only. eg. "10.10.10-14.0-128"
This class is designed to work with
IncludeExcludeSet- See Also:
IncludeExcludeSet
-
-
Constructor Summary
Constructors Constructor Description InetAddressSet()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanadd(java.lang.String pattern)Deprecated.java.util.Iterator<java.lang.String>iterator()Deprecated.booleanremove(java.lang.Object pattern)Deprecated.intsize()Deprecated.booleantest(java.net.InetAddress address)Deprecated.
-
-
-
Method Detail
-
add
public boolean add(java.lang.String pattern)
Deprecated.- Specified by:
addin interfacejava.util.Collection<java.lang.String>- Specified by:
addin interfacejava.util.Set<java.lang.String>- Overrides:
addin classjava.util.AbstractCollection<java.lang.String>
-
remove
public boolean remove(java.lang.Object pattern)
Deprecated.- Specified by:
removein interfacejava.util.Collection<java.lang.String>- Specified by:
removein interfacejava.util.Set<java.lang.String>- Overrides:
removein classjava.util.AbstractCollection<java.lang.String>
-
iterator
public java.util.Iterator<java.lang.String> iterator()
Deprecated.- Specified by:
iteratorin interfacejava.util.Collection<java.lang.String>- Specified by:
iteratorin interfacejava.lang.Iterable<java.lang.String>- Specified by:
iteratorin interfacejava.util.Set<java.lang.String>- Specified by:
iteratorin classjava.util.AbstractCollection<java.lang.String>
-
size
public int size()
Deprecated.- Specified by:
sizein interfacejava.util.Collection<java.lang.String>- Specified by:
sizein interfacejava.util.Set<java.lang.String>- Specified by:
sizein classjava.util.AbstractCollection<java.lang.String>
-
test
public boolean test(java.net.InetAddress address)
Deprecated.- Specified by:
testin interfacejava.util.function.Predicate<java.net.InetAddress>
-
-