Class Host

java.lang.Object
org.apache.jena.atlas.net.Host

public class Host extends Object
  • Constructor Details

    • Host

      public Host()
  • Method Details

    • getHostAddressForIRI

      public static String 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

      public static InetAddress getLocalHostLANAddress()
      Returns an InetAddress object 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 returns InetAddress.getLocalHost. Throw a runtime IO exception if no address choice found.