Package edu.uga.galileo.slash.utilities

Examples of edu.uga.galileo.slash.utilities.URLDataSource


    setProjectHandle("nge");

    // get extra data (title + media type) from the nge service
    String extraData = null;
    if (Pattern.matches("[a-z]-\\d+", getQuery1())) {
      URLDataSource uds = new URLDataSource();
      try {
        extraData = uds.retrieveWithTimeout(
            "http://draco.gsu.edu/nge/statistics/SLAShInfoService.jsp?id="
                + getQuery1(), 30000);
        if ((extraData != null) && (extraData.trim().equals("null"))) {
          extraData = null;
        }
View Full Code Here


   * @throws IOException
   *             If an error occurs retrieving the list from GALILEO.
   */
  private void getInstitutions() throws IOException {
    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()));
    }

View Full Code Here

TOP

Related Classes of edu.uga.galileo.slash.utilities.URLDataSource

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.