public class SupportsMulticastInterfaceCriteria extends Object implements InterfaceCriteria
InterfaceCriteria that tests whether a given interface
supports multicast| Modifier and Type | Field and Description |
|---|---|
static SupportsMulticastInterfaceCriteria |
INSTANCE |
| 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 static final SupportsMulticastInterfaceCriteria INSTANCE
public 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 nulladdress if networkInterface
supports multicast.SocketException - if evaluating the state of networkInterface results in oneCopyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.