java.lang.Object
org.apache.jena.atlas.net.Host
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringReturns a host address, for what is most likely the machine's LAN IP address (not a loopback address, 127.0.0.x or ::1).static InetAddressReturns anInetAddressobject encapsulating what is most likely the machine's LAN IP address (not a loopback address, 127.0.0.x or ::1).
-
Constructor Details
-
Host
public Host()
-
-
Method Details
-
getHostAddress
Returns a host address, for what is most likely the machine's LAN IP address (not a loopback address, 127.0.0.x or ::1). If there is no other choice, it returnsa local host address. -
getLocalHostLANAddress
Returns anInetAddressobject encapsulating what is most likely the machine's LAN IP address (not a loopback address, 127.0.0.x or ::1). If there is no other choice, it returnsInetAddress.getLocalHost. Throw aruntime IO exceptionif no address choice found.
-