public class AnyInterfaceCriteria extends Object implements InterfaceCriteria
InterfaceCriteria that tests whether a given network interface and
address satisfy any of a contained set of InterfaceCriteria.| Constructor and Description |
|---|
AnyInterfaceCriteria(Set<InterfaceCriteria> criteria)
Creates a new AnyInterfaceCriteria
|
| Modifier and Type | Method and Description |
|---|---|
InetAddress |
isAcceptable(NetworkInterface networkInterface,
InetAddress address)
Gets whether the given network interface and address are acceptable for
use.
|
public AnyInterfaceCriteria(Set<InterfaceCriteria> criteria)
criteria - the criteria to check to see if any are satisfied.
Cannot be nullIllegalArgumentException - if criteria is nullpublic InetAddress isAcceptable(NetworkInterface networkInterface, InetAddress address) throws SocketException
address
parameter. For those criteria which override the configured address, the override address should
be returned.isAcceptable in interface InterfaceCriterianetworkInterface - the network interface. Cannot be nulladdress - an address that is associated with networkInterface.
Cannot be nullisAcceptable(java.net.NetworkInterface, java.net.InetAddress)
result that is non-null, or null if no criteria applySocketException - if evaluating the state of networkInterface results in oneCopyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.