public class LoopbackAddressInterfaceCriteria extends Object implements InterfaceCriteria
| Constructor and Description |
|---|
LoopbackAddressInterfaceCriteria(org.jboss.dmr.ModelNode address)
Creates a new LoopbackAddressInterfaceCriteria
|
| Modifier and Type | Method and Description |
|---|---|
InetAddress |
getAddress() |
InetAddress |
isAcceptable(NetworkInterface networkInterface,
InetAddress address)
Gets whether the given network interface and address are acceptable for
use.
|
String |
toString() |
public LoopbackAddressInterfaceCriteria(org.jboss.dmr.ModelNode address)
address - a valid value to pass to InetAddress.getByName(String)
Cannot be nullIllegalArgumentException - if network is nullpublic InetAddress getAddress() throws UnknownHostException
UnknownHostExceptionpublic 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 nullgetAddress()() if NetworkInterface.isLoopback() is true, null otherwise.SocketException - if evaluating the state of networkInterface results in oneCopyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.