summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrei Aiordachioaie <a.aiordachioaie@jacobs-university.de>2009-10-19 11:21:34 +0200
committerAndrei Aiordachioaie <a.aiordachioaie@jacobs-university.de>2009-10-19 10:48:49 +0200
commitedc94183dc0579f46b37e9d1c8bbd24d752416f2 (patch)
tree7c0ef9f49de5b3fe7ab27d69facb0b3d4c5cf69e /src
parent89cb43f228733bcbbdd751651aabf1ac41153b64 (diff)
Removed unnecessary code from interface servlet
Diffstat (limited to 'src')
-rw-r--r--src/petascope/ConfigManager.java5
-rw-r--r--src/petascope/PetascopeInterface.java23
2 files changed, 0 insertions, 28 deletions
diff --git a/src/petascope/ConfigManager.java b/src/petascope/ConfigManager.java
index 7948379..1e997b1 100644
--- a/src/petascope/ConfigManager.java
+++ b/src/petascope/ConfigManager.java
@@ -50,8 +50,6 @@ public class ConfigManager
public static String METADATA_USER;
public static String METADATA_PASS;
- public static boolean hack = false; // TODO: remove CCIP hack
-
/* This URL gets initialized automatically when the first request is received.
* Its value is used in the Capabilities response */
public static String PETASCOPE_SERVLET_URL;
@@ -138,7 +136,6 @@ public class ConfigManager
METADATA_URL = get("metadata_url");
METADATA_USER = get("metadata_user");
METADATA_PASS = get("metadata_pass");
- hack = Boolean.parseBoolean(get("ccip_version"));
/* User preferences override default values for WCS-T */
String tmp = get("default_interpolation");
@@ -152,8 +149,6 @@ public class ConfigManager
WCST_DEFAULT_DATATYPE = tmp;
log("---------------------------");
- if (hack)
- log(" --- CCIP VERSION ---");
log("WCS-T Language: " + LANGUAGE);
log("WCS-T Version: " + VERSION);
log("Print Log: " + PRINT_LOG);
diff --git a/src/petascope/PetascopeInterface.java b/src/petascope/PetascopeInterface.java
index 6c636b5..e03f46f 100644
--- a/src/petascope/PetascopeInterface.java
+++ b/src/petascope/PetascopeInterface.java
@@ -431,29 +431,6 @@ public class PetascopeInterface extends HttpServlet
else
log("WCPS: Warning! No result returned from rasql query.");
- /* TODO: remove CCIP hack */
- if (ConfigManager.hack)
- {
- try
- {
- String dir = getServletContext().getRealPath("/");
- File f = new File(dir + "image.jpeg");
-
- log("HACK: Writing image to: " + f.getAbsolutePath());
-// if (f.exists())
- {
- OutputStream os = new DataOutputStream(new FileOutputStream(f, false));
- os.write(results.get(0));
- os.close();
- log("HACK: Wrote image successfully !");
- }
- }
- catch (Exception e)
- {
- e.printStackTrace();
- }
- }
-
log("WCPS: done");
}
catch (InvalidRequestException e)