|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LocalNetworkInfoProvider
Generic interface which provides information about the system. Supports both single and multi-home (one that includes more than one network cards and therefore network interfaces) configurations
Method Summary | |
---|---|
java.net.InetAddress |
getLocalAddress()
Tries to obtain local address of machine based on InetAddress |
java.util.List<java.net.InetAddress> |
getLocalAddresses(InetAddressAcceptor aAcceptor)
Collects all local addresses (more than one on multihome system) and applies given acceptor on them for selecting particular ones that accepted by acceptor |
byte[] |
getLocalAddressRaw()
Returns information about local address in raw format |
java.lang.String |
getLocalHostAddress()
Tries to obtain information about local host address |
java.util.List<java.lang.String> |
getLocalHostAddresses(InetAddressAcceptor aAcceptor)
Collects all addresses of local host and filters them based on given acceptor |
java.util.List<java.net.NetworkInterface> |
getNetworkInterfaces(InetAddressAcceptor aAcceptor)
Collects all network interfaces on the local machine and filters them based on given acceptor. |
Method Detail |
---|
java.net.InetAddress getLocalAddress() throws java.net.UnknownHostException
InetAddress
java.net.UnknownHostException
InetAddress.getLocalHost()
byte[] getLocalAddressRaw()
getLocalAddress()
java.lang.String getLocalHostAddress() throws java.net.UnknownHostException
java.net.UnknownHostException
java.util.List<java.net.InetAddress> getLocalAddresses(InetAddressAcceptor aAcceptor) throws java.net.SocketException
aAcceptor
- acceptor used to filter addresses
java.net.SocketException
java.util.List<java.net.NetworkInterface> getNetworkInterfaces(InetAddressAcceptor aAcceptor) throws java.net.SocketException
aAcceptor
- acceptor used to filter inet addresses on network interfaces
java.net.SocketException
java.util.List<java.lang.String> getLocalHostAddresses(InetAddressAcceptor aAcceptor) throws java.net.SocketException
aAcceptor
- acceptor used to filter inet addresses on network interfaces
java.net.SocketException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |