From 882d54067ab5568ec11d9bb8803065d89bf0c989 Mon Sep 17 00:00:00 2001 From: Michael Peter Christen Date: Tue, 25 Sep 2012 23:09:32 +0200 Subject: [PATCH] added dummy update servlet --- htroot/solr/update.java | 42 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 htroot/solr/update.java 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, mc@yacy.net, 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 . + */ + +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; + } +}