org.softamis.net.localinfo
Interface InetAddressAcceptor

All Known Implementing Classes:
AnyAddressAcceptor, Ip4AddressesAcceptor, NoAddressAcceptor

public interface InetAddressAcceptor

Interface which declares generic policy for accepting particular NetworkInterface or particular InetAddress from that interface;

Author:
Andrew Sazonov

Method Summary
 boolean acceptInetAddress(java.net.NetworkInterface aInterface, java.net.InetAddress aAddress)
          Accepts or denies given InetAddress from corresponding NetworkInterface for further processing.
 boolean acceptNetworkInterface(java.net.NetworkInterface aInterface)
          Accepts or denes given NetworkInterface for further processing
 

Method Detail

acceptNetworkInterface

boolean acceptNetworkInterface(java.net.NetworkInterface aInterface)
Accepts or denes given NetworkInterface for further processing

Parameters:
aInterface - - instance of NetworkInteface for inspection
Returns:
true if interface accepted, false otherwise

acceptInetAddress

boolean acceptInetAddress(java.net.NetworkInterface aInterface,
                          java.net.InetAddress aAddress)
Accepts or denies given InetAddress from corresponding NetworkInterface for further processing.

Parameters:
aInterface - network interface
aAddress - address to accept or deny
Returns:
true if address is accepted, false otherwise