public class GeoIPService extends Object
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the GeoIP lookup service.
|
String |
getCity() |
String |
getCountry() |
static GeoIPService |
getInstance(String dbFilename) |
double |
getLatitude() |
double |
getLongitude() |
String |
getRegion() |
void |
initLocation(String IPaddr)
Set the location attributes for this object
|
public String getCountry()
public String getRegion()
public String getCity()
public double getLatitude()
public double getLongitude()
public void initLocation(String IPaddr)
IPaddr
- the IP address to obtain location information forpublic static GeoIPService getInstance(String dbFilename) throws FileNotFoundException
FileNotFoundException
public void close()
Copyright © 2019. All rights reserved.