public class LoopbackAddress extends Object
Modifier and Type | Method and Description |
---|---|
static InetAddress |
get()
Quite similar to
InetAddress.getLoopbackAddress() which was introduced in Java 7. |
public static InetAddress get()
InetAddress.getLoopbackAddress()
which was introduced in Java 7. This
method aims to support Java 6. It returns an IPv4 address, but not IPv6 in order to
support -Djava.net.preferIPv4Stack=true
which is recommended for Elasticsearch.Copyright © 2009–2015 SonarSource. All rights reserved.