Class GetIPLocation

java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.GetIPLocation

public class GetIPLocation extends DAO
A Data Access Object to geo-locate IP addresses.
Since:
2.5
Version:
9.0
Author:
Luke
  • Constructor Details

    • GetIPLocation

      public GetIPLocation(Connection c)
      Initializes the Data Access Object.
      Parameters:
      c - the JDBC connection to use
  • Method Details

    • get

      public IPBlock get(String addr) throws DAOException
      Retrieves Geolocation data for a particular IP address.
      Parameters:
      addr - the IP address
      Returns:
      information about this IP address, or null if none found
      Throws:
      DAOException - if a JDBC error occurs