Package edu.uga.galileo.slash.bo

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


    ArrayList<GalileoInstitution> institutionList = new ArrayList<GalileoInstitution>();
    URLDataSource uds = new URLDataSource();
    String result = uds.retrieveWithTimeout(instResolver, 10000).trim();
    StringTokenizer st = new StringTokenizer(result, "\n");
    while (st.hasMoreTokens()) {
      institutionList.add(new GalileoInstitution(st.nextToken()));
    }

    institutions = new GalileoInstitution[institutionList.size()];
    for (int m = 0; m < institutionList.size(); m++) {
      institutions[m] = (GalileoInstitution) institutionList.get(m);
View Full Code Here


   *             If an error occurs retrieving the list from GALILEO.
   */
  public static void main(String[] args) throws IOException {
    InstitutionLookupService ils = InstitutionLookupService.getInstance();
    if ((args != null) && (args.length > 0)) {
      GalileoInstitution result = ils.getInstitutionData(args[0]);
      System.out.println("Institution: " + result.getInstCode() + ", "
          + result.getInstName());
    }
  }
View Full Code Here

      throws RecordInsertException, BatchUpdateException {
    Logger.debug("Processing stat: " + stat.toString());

    try {
      // add institution codes and names
      GalileoInstitution galileoInstitution = Controller
          .getInstitutionLookupService().getInstitutionData(
              stat.getIpAddress());
      if (galileoInstitution != null) {
        stat.setInstCode(galileoInstitution.getInstCode());
        stat.setInstName(galileoInstitution.getInstName());
      }

      // add top level domain from reverse dns lookup
      String reverseDNSLookupValue = Controller
          .getReverseDNSLookupService().lookup(stat.getIpAddress());
View Full Code Here

TOP

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

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.