|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectno.ntnu.vegare.visualizer.client.utils.GeoIP
public class GeoIP
Interface to MaxMind GeoIP ( http://www.maxmind.com/app/java), which is a database of IP address to location relationships.
The file is located in the folder geoip/GeoIPCity.dat, and can be updated from MaxMind's websites when new versions are released.
Constructor Summary | |
---|---|
GeoIP()
|
Method Summary | |
---|---|
static com.maxmind.geoip.Location |
ipToPoint(java.net.InetAddress ip)
Convert an IP address to a physical location. |
static com.maxmind.geoip.Location |
ipToPoint(java.lang.String ip)
Convert an IP address to a physical location |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GeoIP()
Method Detail |
---|
public static com.maxmind.geoip.Location ipToPoint(java.net.InetAddress ip)
ip
- IP address
public static com.maxmind.geoip.Location ipToPoint(java.lang.String ip)
ip
- IP address string on dot-notation form
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |