public class HostGeoInfo
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
java.lang.String |
address
the IP address
|
java.lang.String |
displayName |
double |
latitude |
static org.slf4j.Logger |
log |
double |
longitude |
Constructor and Description |
---|
HostGeoInfo(java.lang.String address,
java.lang.String displayName,
double latitude,
double longitude) |
Modifier and Type | Method and Description |
---|---|
static void |
clearCachedLookup() |
static HostGeoInfo |
create(java.lang.String address,
java.lang.String displayName,
double latitude,
double longitude) |
boolean |
equals(java.lang.Object o) |
static java.net.InetAddress |
findIpAddress(Location l) |
static HostGeoInfo |
fromEntity(Entity e) |
static HostGeoInfo |
fromIpAddress(java.net.InetAddress address) |
static HostGeoInfo |
fromLocation(Location l)
returns null if cannot be set
|
java.lang.String |
getAddress() |
static HostGeoLookup |
getDefaultLookup() |
int |
hashCode() |
java.lang.String |
toString() |
public static final org.slf4j.Logger log
public final java.lang.String address
public final java.lang.String displayName
public final double latitude
public final double longitude
public HostGeoInfo(java.lang.String address, java.lang.String displayName, double latitude, double longitude)
public static HostGeoInfo create(java.lang.String address, java.lang.String displayName, double latitude, double longitude)
public static HostGeoInfo fromIpAddress(java.net.InetAddress address)
@Nullable public static HostGeoLookup getDefaultLookup() throws java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.ClassNotFoundException
public static void clearCachedLookup()
public static HostGeoInfo fromLocation(Location l)
public static HostGeoInfo fromEntity(Entity e)
public static java.net.InetAddress findIpAddress(Location l)
public java.lang.String getAddress()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object