public class PublicAddressInterfaceCriteria extends AbstractInterfaceCriteria
InterfaceCriteria
that tests whether a given address is not
site-local
,
link-local
or a wildcard address
.Modifier and Type | Field and Description |
---|---|
static PublicAddressInterfaceCriteria |
INSTANCE |
Modifier and Type | Method and Description |
---|---|
protected InetAddress |
isAcceptable(NetworkInterface networkInterface,
InetAddress address)
Gets whether the given network interface and address are acceptable for
use.
|
cloneCandidates, getAcceptableAddresses
public static final PublicAddressInterfaceCriteria INSTANCE
protected 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 class AbstractInterfaceCriteria
networkInterface
- the network interface. Cannot be null
address
- an address that is associated with networkInterface
.
Cannot be null
address
if address
is not
site-local
,
link-local
or a wildcard address
.SocketException
- if evaluating the state of networkInterface
results in oneCopyright © 2023 JBoss by Red Hat. All rights reserved.