Examples of retrieveWithTimeout()


Examples of edu.uga.galileo.slash.utilities.URLDataSource.retrieveWithTimeout()

    // 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

Examples of edu.uga.galileo.slash.utilities.URLDataSource.retrieveWithTimeout()

   *             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

Examples of edu.uga.galileo.voci.utilities.URLDataSource.retrieveWithTimeout()

    URLDataSource uds = new URLDataSource();
    String result = "";

    try
    {
      result = uds.retrieveWithTimeout(url, 300000,
          "Mozilla/5.0 (CRDL; http://www.crdl.org)",
          "VOCI / cbking@uga.edu");
    }
    catch( IOException ioex )
    {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.