GeoIPLocationLookupDelegate.java from Tea Stats at Krugle
Show GeoIPLocationLookupDelegate.java syntax highlighted
/*
* This file is distributed under the GPL v2 as part of teastats site statistics package
* http://teastats.sourceforge.net
*/
package net.time4tea.webstats.geoip;
import com.maxmind.geoip.Country;
import com.maxmind.geoip.DatabaseInfo;
import com.maxmind.geoip.Location;
import com.maxmind.geoip.Region;
import java.net.InetAddress;
/**
* Originally richja Mar 30, 2006
*/
public class GeoIPLocationLookupDelegate implements LocationLookup {
com.maxmind.geoip.LookupService lookupService = null;
public GeoIPLocationLookupDelegate(com.maxmind.geoip.LookupService lookupService) {
this.lookupService = lookupService;
}
public void close() {
lookupService.close();
}
public Country getCountry(String ipAddress) {
return lookupService.getCountry(ipAddress);
}
public Country getCountry(InetAddress ipAddress) {
return lookupService.getCountry(ipAddress);
}
public Country getCountry(long ipAddress) {
return lookupService.getCountry(ipAddress);
}
public int getID(String ipAddress) {
return lookupService.getID(ipAddress);
}
public int getID(InetAddress ipAddress) {
return lookupService.getID(ipAddress);
}
public int getID(long ipAddress) {
return lookupService.getID(ipAddress);
}
public DatabaseInfo getDatabaseInfo() {
return lookupService.getDatabaseInfo();
}
public Location getLocation(InetAddress addr) {
return lookupService.getLocation(addr);
}
public Location getLocation(String str) {
return lookupService.getLocation(str);
}
public Location getLocationwithdnsservice(String str) {
return lookupService.getLocationwithdnsservice(str);
}
public Region getRegion(String str) {
return lookupService.getRegion(str);
}
public Region getRegion(long ipnum) {
return lookupService.getRegion(ipnum);
}
public Location getLocation(long ipnum) {
return lookupService.getLocation(ipnum);
}
public String getOrg(InetAddress addr) {
return lookupService.getOrg(addr);
}
public String getOrg(String str) {
return lookupService.getOrg(str);
}
public String getOrg(long ipnum) {
return lookupService.getOrg(ipnum);
}
}
See more files for this project here