Jive Forums API (5.5.20.2-oracle) Developer Javadocs

com.jivesoftware.base.util
Class CountryLookup

java.lang.Object
  extended by com.jivesoftware.base.util.CountryLookup

public class CountryLookup
extends java.lang.Object

Utility class to lookup country information based on an IP address.


Constructor Summary
CountryLookup()
           
 
Method Summary
static com.maxmind.geoip.Country getCountry(java.lang.String ipAddress)
          Returns the Country the IP address is from.
static com.maxmind.geoip.LookupService getLookupService()
          Returns the lookup service object.
static void reloadDatabase()
          Reloads the country database from the file system.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CountryLookup

public CountryLookup()
Method Detail

getCountry

public static com.maxmind.geoip.Country getCountry(java.lang.String ipAddress)
Returns the Country the IP address is from.

Parameters:
ipAddress - the IP address.
Returns:
the country.

getLookupService

public static com.maxmind.geoip.LookupService getLookupService()
Returns the lookup service object.

Returns:
the lookup service.

reloadDatabase

public static void reloadDatabase()
Reloads the country database from the file system.


Jive Forums Project Page

Copyright © 1999-2006 Jive Software.