Package edu.uga.galileo.slash.bo

Examples of edu.uga.galileo.slash.bo.GeoLocation


        stat.setTopLevelDomain(reverseDNSLookupValue
            .substring(reverseDNSLookupValue.lastIndexOf('.') + 1));
      }

      // add resolved geolocation information
      GeoLocation location = Controller.getGeolocationLookupService()
          .getGeoLocation(stat.getIpAddress());
      if (location != null) {
        stat.setCity(location.getCity());
        stat.setRegion(location.getRegion());
        stat.setCountry(location.getCountry());
        stat.setNetSpeed(location.getNetSpeed());
      }

      if (!(stat.getUserAgent().startsWith("Java"))) {
        sdao.writeStat(conn, stat);
      }
View Full Code Here


      ps.setLong(2, ipToLong);

      rs = ps.executeQuery();

      if (rs.next()) {
        return new GeoLocation(rs.getString("city"), rs
            .getString("region"), rs.getString("country"), ""); // rs.getString("netspeed")
                                      // last
      }
    } catch (SQLException e) {
      Logger.error("Couldn't perform geolocation.", e);
View Full Code Here

TOP

Related Classes of edu.uga.galileo.slash.bo.GeoLocation

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.