import java.lang.reflect.Method;
+
+
/**
* A class to perform a DAS features request
*
int comeBackLater;
URL url;
/**
+ * @param url the URL the features should be downloaded from
*
*/
public DAS_FeatureRetrieve(URL url) {
comeBackLater = cont_handle.getComBackLater();
}
catch ( Exception e){
- System.out.println("ERROR PARSING RESULT FROM "+url+ "\n"+e+"\n");
- // e.printStackTrace();
+ e.printStackTrace();
logger.log(Level.FINE,"error while parsing response from "+ url);
comeBackLater = -1;
features = new ArrayList();
}
}
+
/** open HttpURLConnection. Recommended way to open
* HttpURLConnections, since this take care of setting timeouts
* properly for java 1.4 and 1.5*/
return huc;
}
+
private InputStream open(URL url)
throws java.io.IOException, java.net.ConnectException
{
}
- /** returns a List of Features */
+ /** returns a List of Features
+ * @return a List of Maps containing the features*/
public List get_features() {
return features;