lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hoss...@apache.org
Subject svn commit: r950835 - in /lucene/dev/trunk/solr: ./ src/java/org/apache/solr/request/
Date Thu, 03 Jun 2010 00:24:19 GMT
Author: hossman
Date: Thu Jun  3 00:24:19 2010
New Revision: 950835

URL: http://svn.apache.org/viewvc?rev=950835&view=rev
Log:
SOLR-1602 wrappup - adding deprecations and warning log messages to response writers in the
o.a.s.request package

Modified:
    lucene/dev/trunk/solr/CHANGES.txt
    lucene/dev/trunk/solr/src/java/org/apache/solr/request/BinaryResponseWriter.java
    lucene/dev/trunk/solr/src/java/org/apache/solr/request/JSONResponseWriter.java
    lucene/dev/trunk/solr/src/java/org/apache/solr/request/PHPResponseWriter.java
    lucene/dev/trunk/solr/src/java/org/apache/solr/request/PHPSerializedResponseWriter.java
    lucene/dev/trunk/solr/src/java/org/apache/solr/request/PythonResponseWriter.java
    lucene/dev/trunk/solr/src/java/org/apache/solr/request/RawResponseWriter.java
    lucene/dev/trunk/solr/src/java/org/apache/solr/request/RubyResponseWriter.java
    lucene/dev/trunk/solr/src/java/org/apache/solr/request/SolrQueryResponse.java
    lucene/dev/trunk/solr/src/java/org/apache/solr/request/TextResponseWriter.java
    lucene/dev/trunk/solr/src/java/org/apache/solr/request/XMLResponseWriter.java
    lucene/dev/trunk/solr/src/java/org/apache/solr/request/XSLTResponseWriter.java

Modified: lucene/dev/trunk/solr/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/CHANGES.txt?rev=950835&r1=950834&r2=950835&view=diff
==============================================================================
--- lucene/dev/trunk/solr/CHANGES.txt (original)
+++ lucene/dev/trunk/solr/CHANGES.txt Thu Jun  3 00:24:19 2010
@@ -332,6 +332,10 @@ Bug Fixes
 Other Changes
 ----------------------
 
+* SOLR-1602: Refactor SOLR package structure to include o.a.solr.response 
+  and move QueryResponseWriters in there
+  (Chris A. Mattmann, ryan, hoss)
+
 * SOLR-1516: Addition of an abstract BaseResponseWriter class to simplify the
   development of QueryResponseWriter implementations.
   (Chris A. Mattmann via noble)

Modified: lucene/dev/trunk/solr/src/java/org/apache/solr/request/BinaryResponseWriter.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/src/java/org/apache/solr/request/BinaryResponseWriter.java?rev=950835&r1=950834&r2=950835&view=diff
==============================================================================
--- lucene/dev/trunk/solr/src/java/org/apache/solr/request/BinaryResponseWriter.java (original)
+++ lucene/dev/trunk/solr/src/java/org/apache/solr/request/BinaryResponseWriter.java Thu Jun
 3 00:24:19 2010
@@ -16,11 +16,19 @@
  */
 package org.apache.solr.request;
 
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
 
 /**
  * @deprecated use org.apache.solr.response.BinaryResponseWriter
  */
 public class BinaryResponseWriter extends org.apache.solr.response.BinaryResponseWriter 
 {
-	
+  private static Logger log =  LoggerFactory.getLogger(BinaryResponseWriter.class.getName());
+  
+	 public BinaryResponseWriter(){
+	   super();
+	   log.warn(BinaryResponseWriter.class.getName()+" is deprecated. Please use the corresponding
class in org.apache.solr.response");
+	 }
 }

Modified: lucene/dev/trunk/solr/src/java/org/apache/solr/request/JSONResponseWriter.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/src/java/org/apache/solr/request/JSONResponseWriter.java?rev=950835&r1=950834&r2=950835&view=diff
==============================================================================
--- lucene/dev/trunk/solr/src/java/org/apache/solr/request/JSONResponseWriter.java (original)
+++ lucene/dev/trunk/solr/src/java/org/apache/solr/request/JSONResponseWriter.java Thu Jun
 3 00:24:19 2010
@@ -16,11 +16,21 @@
  */
 package org.apache.solr.request;
 
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
 
 /**
  * @deprecated use org.apache.solr.response.JSONResponseWriter
  */
 public class JSONResponseWriter extends org.apache.solr.response.JSONResponseWriter 
 {
-	
+  
+  private static Logger log = LoggerFactory.getLogger(JSONResponseWriter.class.getName());
+
+	public JSONResponseWriter(){
+	  super();
+    log.warn(JSONResponseWriter.class.getName()+" is deprecated. Please use the corresponding
class in org.apache.solr.response");
+
+	}
 }

Modified: lucene/dev/trunk/solr/src/java/org/apache/solr/request/PHPResponseWriter.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/src/java/org/apache/solr/request/PHPResponseWriter.java?rev=950835&r1=950834&r2=950835&view=diff
==============================================================================
--- lucene/dev/trunk/solr/src/java/org/apache/solr/request/PHPResponseWriter.java (original)
+++ lucene/dev/trunk/solr/src/java/org/apache/solr/request/PHPResponseWriter.java Thu Jun
 3 00:24:19 2010
@@ -16,11 +16,22 @@
  */
 package org.apache.solr.request;
 
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
 
 /**
  * @deprecated use org.apache.solr.response.PHPResponseWriter
  */
 public class PHPResponseWriter extends org.apache.solr.response.PHPResponseWriter 
 {
+  private static Logger log = LoggerFactory.getLogger(PHPResponseWriter.class.getName());
+
+  
+  public PHPResponseWriter(){
+    super();
+    log.warn(PHPResponseWriter.class.getName()+" is deprecated. Please use the corresponding
class in org.apache.solr.response");
+
+  }
 	
 }

Modified: lucene/dev/trunk/solr/src/java/org/apache/solr/request/PHPSerializedResponseWriter.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/src/java/org/apache/solr/request/PHPSerializedResponseWriter.java?rev=950835&r1=950834&r2=950835&view=diff
==============================================================================
--- lucene/dev/trunk/solr/src/java/org/apache/solr/request/PHPSerializedResponseWriter.java
(original)
+++ lucene/dev/trunk/solr/src/java/org/apache/solr/request/PHPSerializedResponseWriter.java
Thu Jun  3 00:24:19 2010
@@ -16,11 +16,20 @@
  */
 package org.apache.solr.request;
 
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
 
 /**
  * @deprecated use org.apache.solr.response.PHPSerializedResponseWriter
  */
 public class PHPSerializedResponseWriter extends org.apache.solr.response.PHPSerializedResponseWriter

 {
-	
+  private static Logger log = LoggerFactory.getLogger(PHPSerializedResponseWriter.class.getName());
+
+  public PHPSerializedResponseWriter(){
+    super();
+    log.warn(PHPSerializedResponseWriter.class.getName()+" is deprecated. Please use the
corresponding class in org.apache.solr.response");
+
+  }
 }

Modified: lucene/dev/trunk/solr/src/java/org/apache/solr/request/PythonResponseWriter.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/src/java/org/apache/solr/request/PythonResponseWriter.java?rev=950835&r1=950834&r2=950835&view=diff
==============================================================================
--- lucene/dev/trunk/solr/src/java/org/apache/solr/request/PythonResponseWriter.java (original)
+++ lucene/dev/trunk/solr/src/java/org/apache/solr/request/PythonResponseWriter.java Thu Jun
 3 00:24:19 2010
@@ -16,11 +16,20 @@
  */
 package org.apache.solr.request;
 
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
 
 /**
  * @deprecated use org.apache.solr.response.PythonResponseWriter
  */
 public class PythonResponseWriter extends org.apache.solr.response.PythonResponseWriter 
 {
-	
+  private static Logger log = LoggerFactory.getLogger(PythonResponseWriter.class.getName());
+
+  public PythonResponseWriter(){
+    super();
+    log.warn(PythonResponseWriter.class.getName()+" is deprecated. Please use the corresponding
class in org.apache.solr.response");
+
+  }	
 }

Modified: lucene/dev/trunk/solr/src/java/org/apache/solr/request/RawResponseWriter.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/src/java/org/apache/solr/request/RawResponseWriter.java?rev=950835&r1=950834&r2=950835&view=diff
==============================================================================
--- lucene/dev/trunk/solr/src/java/org/apache/solr/request/RawResponseWriter.java (original)
+++ lucene/dev/trunk/solr/src/java/org/apache/solr/request/RawResponseWriter.java Thu Jun
 3 00:24:19 2010
@@ -16,11 +16,21 @@
  */
 package org.apache.solr.request;
 
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
 
 /**
  * @deprecated use org.apache.solr.response.RawResponseWriter
  */
 public class RawResponseWriter extends org.apache.solr.response.RawResponseWriter 
 {
-	
+  private static Logger log = LoggerFactory.getLogger(RawResponseWriter.class.getName());
+
+  
+  public RawResponseWriter(){
+    super();
+    log.warn(RawResponseWriter.class.getName()+" is deprecated. Please use the corresponding
class in org.apache.solr.response");
+
+  }	
 }

Modified: lucene/dev/trunk/solr/src/java/org/apache/solr/request/RubyResponseWriter.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/src/java/org/apache/solr/request/RubyResponseWriter.java?rev=950835&r1=950834&r2=950835&view=diff
==============================================================================
--- lucene/dev/trunk/solr/src/java/org/apache/solr/request/RubyResponseWriter.java (original)
+++ lucene/dev/trunk/solr/src/java/org/apache/solr/request/RubyResponseWriter.java Thu Jun
 3 00:24:19 2010
@@ -16,11 +16,21 @@
  */
 package org.apache.solr.request;
 
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
 
 /**
  * @deprecated use org.apache.solr.response.RubyResponseWriter
  */
 public class RubyResponseWriter extends org.apache.solr.response.RubyResponseWriter 
 {
-	
+  private static Logger log = LoggerFactory.getLogger(RubyResponseWriter.class.getName());
+
+  
+  public RubyResponseWriter(){
+    super();
+    log.warn(RubyResponseWriter.class.getName()+" is deprecated. Please use the corresponding
class in org.apache.solr.response");
+
+  } 	
 }

Modified: lucene/dev/trunk/solr/src/java/org/apache/solr/request/SolrQueryResponse.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/src/java/org/apache/solr/request/SolrQueryResponse.java?rev=950835&r1=950834&r2=950835&view=diff
==============================================================================
--- lucene/dev/trunk/solr/src/java/org/apache/solr/request/SolrQueryResponse.java (original)
+++ lucene/dev/trunk/solr/src/java/org/apache/solr/request/SolrQueryResponse.java Thu Jun
 3 00:24:19 2010
@@ -16,11 +16,19 @@
  */
 package org.apache.solr.request;
 
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
 
 /**
  * @deprecated use org.apache.solr.response.SolrQueryResponse
  */
 public class SolrQueryResponse extends org.apache.solr.response.SolrQueryResponse 
 {
-	
+  private static Logger log = LoggerFactory.getLogger(SolrQueryResponse.class.getName());
+  
+  public SolrQueryResponse() {
+    super();
+    log.warn(SolrQueryResponse.class.getName()+" is deprecated. Please use the corresponding
class in org.apache.solr.response");    
+  }
 }

Modified: lucene/dev/trunk/solr/src/java/org/apache/solr/request/TextResponseWriter.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/src/java/org/apache/solr/request/TextResponseWriter.java?rev=950835&r1=950834&r2=950835&view=diff
==============================================================================
--- lucene/dev/trunk/solr/src/java/org/apache/solr/request/TextResponseWriter.java (original)
+++ lucene/dev/trunk/solr/src/java/org/apache/solr/request/TextResponseWriter.java Thu Jun
 3 00:24:19 2010
@@ -19,6 +19,8 @@ package org.apache.solr.request;
 import java.io.Writer;
 
 import org.apache.solr.response.SolrQueryResponse;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 
 
 /**
@@ -26,7 +28,10 @@ import org.apache.solr.response.SolrQuer
  */
 public abstract class TextResponseWriter extends org.apache.solr.response.TextResponseWriter

 {
+  private static Logger log = LoggerFactory.getLogger(TextResponseWriter.class.getName());
+
   public TextResponseWriter(Writer writer, SolrQueryRequest req, SolrQueryResponse rsp) {
     super(writer, req, rsp);
+    log.warn(TextResponseWriter.class.getName()+" is deprecated. Please use the corresponding
class in org.apache.solr.response");    
   }
 }

Modified: lucene/dev/trunk/solr/src/java/org/apache/solr/request/XMLResponseWriter.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/src/java/org/apache/solr/request/XMLResponseWriter.java?rev=950835&r1=950834&r2=950835&view=diff
==============================================================================
--- lucene/dev/trunk/solr/src/java/org/apache/solr/request/XMLResponseWriter.java (original)
+++ lucene/dev/trunk/solr/src/java/org/apache/solr/request/XMLResponseWriter.java Thu Jun
 3 00:24:19 2010
@@ -16,11 +16,21 @@
  */
 package org.apache.solr.request;
 
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
 
 /**
  * @deprecated use org.apache.solr.response.XMLResponseWriter
  */
 public class XMLResponseWriter extends org.apache.solr.response.XMLResponseWriter 
 {
-	
+  private static Logger log = LoggerFactory.getLogger(XMLResponseWriter.class.getName());
+
+  
+  public XMLResponseWriter(){
+    super();
+    log.warn(XMLResponseWriter.class.getName()+" is deprecated. Please use the corresponding
class in org.apache.solr.response");
+
+  } 
 }

Modified: lucene/dev/trunk/solr/src/java/org/apache/solr/request/XSLTResponseWriter.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/src/java/org/apache/solr/request/XSLTResponseWriter.java?rev=950835&r1=950834&r2=950835&view=diff
==============================================================================
--- lucene/dev/trunk/solr/src/java/org/apache/solr/request/XSLTResponseWriter.java (original)
+++ lucene/dev/trunk/solr/src/java/org/apache/solr/request/XSLTResponseWriter.java Thu Jun
 3 00:24:19 2010
@@ -16,11 +16,21 @@
  */
 package org.apache.solr.request;
 
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
 
 /**
  * @deprecated use org.apache.solr.response.XSLTResponseWriter
  */
 public class XSLTResponseWriter extends org.apache.solr.response.XSLTResponseWriter 
 {
-	
+  private static Logger log = LoggerFactory.getLogger(XSLTResponseWriter.class.getName());
+
+  
+  public XSLTResponseWriter(){
+    super();
+    log.warn(XSLTResponseWriter.class.getName()+" is deprecated. Please use the corresponding
class in org.apache.solr.response");
+
+  } 	
 }



Mime
View raw message