public interface InterfaceCriteria extends Serializable
| Modifier and Type | Method and Description |
|---|---|
InetAddress |
isAcceptable(NetworkInterface networkInterface,
InetAddress address)
Gets whether the given network interface and address are acceptable for
use.
|
InetAddress isAcceptable(NetworkInterface networkInterface, InetAddress address) throws SocketException
address
parameter. For those criteria which override the configured address, the override address should
be returned.networkInterface - the network interface. Cannot be nulladdress - an address that is associated with networkInterface.
Cannot be nullInetAddress the non-null address to bind to if the
criteria is met, null if the criteria is not satisfiedSocketException - if evaluating the state of networkInterface results in oneCopyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.