Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

added dummy update servlet

Michael Peter Christen882d54067ab5
diff --git a/htroot/solr/update.java b/htroot/solr/update.java
new file mode 100644
index 000000000..90a6615b7
--- /dev/null
+++ b/htroot/solr/update.java
@@ -0,0 +1,42 @@
+/**
+ * update
+ * Copyright 2012 by Michael Peter Christen, [email protected], Frankfurt am Main, Germany
+ * First released 25.09.2012 at http://yacy.net
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program in the file lgpl21.txt
+ * If not, see <http://www.gnu.org/licenses/>.
+ */
+
+import java.io.OutputStream;
+
+import net.yacy.cora.protocol.RequestHeader;
+import net.yacy.kelondro.logging.Log;
+import net.yacy.server.serverObjects;
+import net.yacy.server.serverSwitch;
+
+/**
+ * this is a dummy class doing nothing. It is called by the solr connector but in YaCy we do not use it (yet)
+ */
+public class update {
+
+
+ public static String mime(@SuppressWarnings("unused") final RequestHeader header, @SuppressWarnings("unused") final serverObjects post, @SuppressWarnings("unused") final serverSwitch env) {
+ return "text/xml";
+ }
+
+ public static serverObjects respond(@SuppressWarnings("unused") final RequestHeader header, final serverObjects post, @SuppressWarnings("unused") final serverSwitch env, @SuppressWarnings("unused") final OutputStream out) {
+ Log.logInfo("update", "post = " + post == null ? "NULL" : post.toString());
+ return null;
+ }
+}