01: // /xml/version.java
02: // -------------------------------
03: // (C) 2006 Alexander Schier
04: // part of YaCy
05: //
06: // last major change: 06.02.2006
07: // this file is contributed by Alexander Schier
08: //
09: // This program is free software; you can redistribute it and/or modify
10: // it under the terms of the GNU General Public License as published by
11: // the Free Software Foundation; either version 2 of the License, or
12: // (at your option) any later version.
13: //
14: // This program is distributed in the hope that it will be useful,
15: // but WITHOUT ANY WARRANTY; without even the implied warranty of
16: // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17: // GNU General Public License for more details.
18: //
19: // You should have received a copy of the GNU General Public License
20: // along with this program; if not, write to the Free Software
21: // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 US
22:
23: package xml;
24:
25: import de.anomic.http.httpHeader;
26: import de.anomic.server.serverObjects;
27: import de.anomic.server.serverSwitch;
28:
29: public class version {
30:
31: public static serverObjects respond(httpHeader header,
32: serverObjects post, serverSwitch env) {
33: // return variable that accumulates replacements
34: serverObjects prop = new serverObjects();
35:
36: prop.put("version", env.getConfig("version", "0.0"));
37: prop.put("svnRev", env.getConfig("svnRevision", "0"));
38: prop.put("buildDate", env.getConfig("vdate", "19700101"));
39: // return rewrite properties
40: return prop;
41: }
42:
43: }
|