[Osaas-commits] r72 - in trunk: . client/java/src/de/intevation/osaas
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Fri Mar 19 19:18:36 CET 2010
Author: bh
Date: 2010-03-19 19:18:36 +0100 (Fri, 19 Mar 2010)
New Revision: 72
Modified:
trunk/ChangeLog
trunk/client/java/src/de/intevation/osaas/OSAASClient.java
Log:
* client/java/src/de/intevation/osaas/OSAASClient.java
(OSAASClient.buildRequest): Add startTime parameter and use
starttime and endtime in the request instead of responsetime.
(OSAASClient.sendRequest): Add startTime parameter.
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2010-03-19 18:14:21 UTC (rev 71)
+++ trunk/ChangeLog 2010-03-19 18:18:36 UTC (rev 72)
@@ -1,5 +1,12 @@
2010-03-19 Bernhard Herzog <bh at intevation.de>
+ * client/java/src/de/intevation/osaas/OSAASClient.java
+ (OSAASClient.buildRequest): Add startTime parameter and use
+ starttime and endtime in the request instead of responsetime.
+ (OSAASClient.sendRequest): Add startTime parameter.
+
+2010-03-19 Bernhard Herzog <bh at intevation.de>
+
* client/java/src/de/intevation/osaas/OSAASClient.java: Add
milliseconds to the formatted timestamp so that the new OSAAS
timestamp format is used.
Modified: trunk/client/java/src/de/intevation/osaas/OSAASClient.java
===================================================================
--- trunk/client/java/src/de/intevation/osaas/OSAASClient.java 2010-03-19 18:14:21 UTC (rev 71)
+++ trunk/client/java/src/de/intevation/osaas/OSAASClient.java 2010-03-19 18:18:36 UTC (rev 72)
@@ -78,10 +78,12 @@
}
private String buildRequest(String user, String queryString,
- String wmsidextern, String wmsidintern) {
+ String wmsidextern, String wmsidintern,
+ Calendar startTime) {
String[][] fields = {
{"user", user},
- {"responsetime", getTimestamp()},
+ {"endtime", getTimestamp()},
+ {"starttime", formatTime(startTime)},
{"wmsidextern", wmsidextern},
{"wmsidintern", wmsidintern},
{"requeststring", queryString},
@@ -106,9 +108,9 @@
}
public void sendRequest(String user, String queryString, String wmsidextern,
- String wmsidintern) {
+ String wmsidintern, Calendar startTime) {
String request = buildRequest(user, queryString, wmsidextern,
- wmsidintern);
+ wmsidintern, startTime);
int responseCode = 0;
try {
HttpURLConnection conn =
More information about the Osaas-commits
mailing list