Apache Lucene open-source search software
removed deprecated additions since Solr 1.1 -- ContentStream.java (moved to util a while ago) and CommitRequestHandler.java
Ryan McKinley1efad8310442
diff --git a/example/solr/conf/solrconfig.xml b/example/solr/conf/solrconfig.xmlindex 7217dc6452a..d89bdbdb3c6 100755--- a/example/solr/conf/solrconfig.xml+++ b/example/solr/conf/solrconfig.xml@@ -386,10 +386,7 @@</lst></requestHandler>- <!-- NOTE, /update is mapped to a servlet, we can have the filter handle requests off that! -->- <requestHandler name="/update/commit" class="solr.CommitRequestHandler" />--+<!-- CSV update handler, loaded on demand --><requestHandler name="/update/csv" class="solr.CSVRequestHandler" startup="lazy"></requestHandler>diff --git a/src/java/org/apache/solr/handler/CommitRequestHandler.java b/src/java/org/apache/solr/handler/CommitRequestHandler.javadeleted file mode 100644index 54eac4092b1..00000000000--- a/src/java/org/apache/solr/handler/CommitRequestHandler.java+++ /dev/null@@ -1,66 +0,0 @@-/**- * Licensed to the Apache Software Foundation (ASF) under one or more- * contributor license agreements. See the NOTICE file distributed with- * this work for additional information regarding copyright ownership.- * The ASF licenses this file to You under the Apache License, Version 2.0- * (the "License"); you may not use this file except in compliance with- * the License. You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--package org.apache.solr.handler;--import java.io.IOException;--import org.apache.solr.core.SolrCore;-import org.apache.solr.request.SolrParams;-import org.apache.solr.request.SolrQueryRequest;-import org.apache.solr.request.SolrQueryResponse;-import org.apache.solr.update.CommitUpdateCommand;--/**- * This handler could be replace with the standard XmlUpdateHandler with- * a default parameter set to commit=true- *- * TODO? -- Delete it now, while it is not in mainstream use yet...- *- */-@Deprecated-public class CommitRequestHandler extends RequestHandlerBase-{- @Override- public void handleRequestBody(SolrQueryRequest req, SolrQueryResponse rsp) throws IOException- {- // common parameters- RequestHandlerUtils.handleCommit(req, rsp, true);- }-- //////////////////////// SolrInfoMBeans methods //////////////////////-- @Override- public String getDescription() {- return "Commit all pending documents";- }-- @Override- public String getVersion() {- return "$Revision$";- }-- @Override- public String getSourceId() {- return "$Id$";- }-- @Override- public String getSource() {- return "$URL$";- }-}diff --git a/src/java/org/apache/solr/request/ContentStream.java b/src/java/org/apache/solr/request/ContentStream.javadeleted file mode 100644index 0115bb48e67..00000000000--- a/src/java/org/apache/solr/request/ContentStream.java+++ /dev/null@@ -1,27 +0,0 @@-/**- * Licensed to the Apache Software Foundation (ASF) under one or more- * contributor license agreements. See the NOTICE file distributed with- * this work for additional information regarding copyright ownership.- * The ASF licenses this file to You under the Apache License, Version 2.0- * (the "License"); you may not use this file except in compliance with- * the License. You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--package org.apache.solr.request;---@Deprecated-public interface ContentStream extends org.apache.solr.util.ContentStream {- // The contentstream should go in util because it is needed for- // SOLR-20 and does not need any lucene specific libraries.- // it is new since solr 1.1 so I think we can move it without the- // deprication...-}diff --git a/src/test/org/apache/solr/update/DirectUpdateHandlerTest.java b/src/test/org/apache/solr/update/DirectUpdateHandlerTest.javaindex cc3ef38f36c..1935d8c68d7 100644--- a/src/test/org/apache/solr/update/DirectUpdateHandlerTest.java+++ b/src/test/org/apache/solr/update/DirectUpdateHandlerTest.java@@ -31,11 +31,11 @@ import org.apache.lucene.document.Field.Store;import org.apache.solr.core.SolrCore;import org.apache.solr.core.SolrException;import org.apache.solr.handler.XmlUpdateRequestHandler;-import org.apache.solr.request.ContentStream;import org.apache.solr.request.MapSolrParams;import org.apache.solr.request.SolrQueryRequestBase;import org.apache.solr.request.SolrQueryResponse;import org.apache.solr.util.AbstractSolrTestCase;+import org.apache.solr.util.ContentStream;/***