Code Search for Developers
 
 
  

LocationLookup.java from Tea Stats at Krugle


Show LocationLookup.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 interface LocationLookup {

    int GEOIP_UNKNOWN_SPEED = 0;
    int GEOIP_DIALUP_SPEED = 1;
    int GEOIP_CABLEDSL_SPEED = 2;
    int GEOIP_CORPORATE_SPEED = 3;

    Country getCountry(String ipAddress);

    Country getCountry(InetAddress ipAddress);

    Country getCountry(long ipAddress);

    int getID(String ipAddress);

    int getID(InetAddress ipAddress);

    int getID(long ipAddress);

    DatabaseInfo getDatabaseInfo();

    // for GeoIP City only
    Location getLocation(InetAddress addr);

    // for GeoIP City only
    Location getLocation(String str);

    Location getLocationwithdnsservice(String str);

    Region getRegion(String str);

    Region getRegion(long ipnum);

    Location getLocation(long ipnum);

    String getOrg(InetAddress addr);

    String getOrg(String str);

    // GeoIP Organization and ISP Edition methods
    String getOrg(long ipnum);
}




See more files for this project here

Tea Stats

Web log analyzer... Written in OO Perl, provides the usual host / page analysis. Can also do site graphing using graphviz, browser, os, worm and search engine identification, and country and session tracking.

Project homepage: http://sourceforge.net/projects/teastats
Programming language(s): Java
License: other

  GeoIPLocationLookupDelegate.java
  LocationLookup.java