java.lang.Object
org.apache.jena.atlas.net.Host
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringReturns a host address in a form suitable for an IRI authority host.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
-
getHostAddressForIRI
Returns a host address in a form suitable for an IRI authority host. This is not a loopback address, 127.0.0.x or ::1. -
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.
-