hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1329914 - in /httpcomponents/httpcore/trunk/httpcore/src: main/java/org/apache/http/impl/ main/java/org/apache/http/impl/io/ test/java/org/apache/http/impl/io/
Date Tue, 24 Apr 2012 18:26:35 GMT
Author: olegk
Date: Tue Apr 24 18:26:34 2012
New Revision: 1329914

URL: http://svn.apache.org/viewvc?rev=1329914&view=rev
Log:
Deprecated HttpRequestParser in favor of DefaultHttpRequestParser; deprecated HttpResponseParser
in favor of DefaultHttpResponseParser

Modified:
    httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/impl/AbstractHttpClientConnection.java
    httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/impl/AbstractHttpServerConnection.java
    httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/impl/io/HttpRequestParser.java
    httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/impl/io/HttpResponseParser.java
    httpcomponents/httpcore/trunk/httpcore/src/test/java/org/apache/http/impl/io/TestRequestParser.java
    httpcomponents/httpcore/trunk/httpcore/src/test/java/org/apache/http/impl/io/TestResponseParser.java

Modified: httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/impl/AbstractHttpClientConnection.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/impl/AbstractHttpClientConnection.java?rev=1329914&r1=1329913&r2=1329914&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/impl/AbstractHttpClientConnection.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/impl/AbstractHttpClientConnection.java
Tue Apr 24 18:26:34 2012
@@ -46,7 +46,6 @@ import org.apache.http.impl.entity.LaxCo
 import org.apache.http.impl.entity.StrictContentLengthStrategy;
 import org.apache.http.impl.io.DefaultHttpResponseParser;
 import org.apache.http.impl.io.HttpRequestWriter;
-import org.apache.http.impl.io.HttpResponseParser;
 import org.apache.http.io.EofSensor;
 import org.apache.http.io.HttpMessageParser;
 import org.apache.http.io.HttpMessageWriter;
@@ -156,8 +155,8 @@ public abstract class AbstractHttpClient
      * <p>
      * This method can be overridden in a super class in order to provide
      * a different implementation of the {@link HttpMessageParser} interface or
-     * to pass a different implementation of {@link LineParser} to the
-     * the default implementation {@link HttpResponseParser}.
+     * to pass a different implementation of the {@link LineParser} to the
+     * the {@link DefaultHttpResponseParser} constructor.
      *
      * @param buffer the session input buffer.
      * @param responseFactory the HTTP response factory.

Modified: httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/impl/AbstractHttpServerConnection.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/impl/AbstractHttpServerConnection.java?rev=1329914&r1=1329913&r2=1329914&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/impl/AbstractHttpServerConnection.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/impl/AbstractHttpServerConnection.java
Tue Apr 24 18:26:34 2012
@@ -45,7 +45,6 @@ import org.apache.http.impl.entity.Entit
 import org.apache.http.impl.entity.LaxContentLengthStrategy;
 import org.apache.http.impl.entity.StrictContentLengthStrategy;
 import org.apache.http.impl.io.DefaultHttpRequestParser;
-import org.apache.http.impl.io.HttpRequestParser;
 import org.apache.http.impl.io.HttpResponseWriter;
 import org.apache.http.io.EofSensor;
 import org.apache.http.io.HttpMessageParser;
@@ -157,8 +156,8 @@ public abstract class AbstractHttpServer
      * <p>
      * This method can be overridden in a super class in order to provide
      * a different implementation of the {@link HttpMessageParser} interface or
-     * to pass a different implementation of {@link LineParser} to the
-     * the default implementation {@link HttpRequestParser}.
+     * to pass a different implementation of the {@link LineParser} to the
+     * the {@link DefaultHttpRequestParser} constructor.
      *
      * @param buffer the session input buffer.
      * @param requestFactory the HTTP request factory.

Modified: httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/impl/io/HttpRequestParser.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/impl/io/HttpRequestParser.java?rev=1329914&r1=1329913&r2=1329914&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/impl/io/HttpRequestParser.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/impl/io/HttpRequestParser.java
Tue Apr 24 18:26:34 2012
@@ -55,7 +55,10 @@ import org.apache.http.util.CharArrayBuf
  * </ul>
  *
  * @since 4.0
+ * 
+ * @deprecated (4.2) use {@link DefaultHttpRequestParser}
  */
+@Deprecated
 @NotThreadSafe
 public class HttpRequestParser extends AbstractMessageParser<HttpMessage> {
 

Modified: httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/impl/io/HttpResponseParser.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/impl/io/HttpResponseParser.java?rev=1329914&r1=1329913&r2=1329914&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/impl/io/HttpResponseParser.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/impl/io/HttpResponseParser.java
Tue Apr 24 18:26:34 2012
@@ -55,7 +55,10 @@ import org.apache.http.util.CharArrayBuf
  * </ul>
  *
  * @since 4.0
+ * 
+ * @deprecated (4.2) use {@link DefaultHttpResponseParser}
  */
+@Deprecated
 @NotThreadSafe
 public class HttpResponseParser extends AbstractMessageParser<HttpMessage> {
 

Modified: httpcomponents/httpcore/trunk/httpcore/src/test/java/org/apache/http/impl/io/TestRequestParser.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore/src/test/java/org/apache/http/impl/io/TestRequestParser.java?rev=1329914&r1=1329913&r2=1329914&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore/src/test/java/org/apache/http/impl/io/TestRequestParser.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore/src/test/java/org/apache/http/impl/io/TestRequestParser.java
Tue Apr 24 18:26:34 2012
@@ -47,14 +47,14 @@ import org.junit.Assert;
 import org.junit.Test;
 
 /**
- * Unit tests for {@link HttpRequestParser}.
+ * Unit tests for {@link DefaultHttpRequestParser}.
  */
 public class TestRequestParser {
 
     @Test
     public void testInvalidConstructorInput() throws Exception {
         try {
-            new HttpRequestParser(
+            new DefaultHttpRequestParser(
                     null,
                     BasicLineParser.DEFAULT,
                     new DefaultHttpRequestFactory(),
@@ -65,7 +65,7 @@ public class TestRequestParser {
         }
         try {
             SessionInputBuffer inbuffer = new SessionInputBufferMock(new byte[] {});
-            new HttpRequestParser(
+            new DefaultHttpRequestParser(
                     inbuffer,
                     BasicLineParser.DEFAULT,
                     null,
@@ -76,7 +76,7 @@ public class TestRequestParser {
         }
         try {
             SessionInputBuffer inbuffer = new SessionInputBufferMock(new byte[] {});
-            new HttpRequestParser(
+            new DefaultHttpRequestParser(
                     inbuffer,
                     BasicLineParser.DEFAULT,
                     new DefaultHttpRequestFactory(),
@@ -118,7 +118,7 @@ public class TestRequestParser {
     public void testConnectionClosedException() throws Exception {
         SessionInputBuffer inbuffer = new SessionInputBufferMock(new byte[] {});
 
-        HttpRequestParser parser = new HttpRequestParser(
+        DefaultHttpRequestParser parser = new DefaultHttpRequestParser(
                 inbuffer,
                 BasicLineParser.DEFAULT,
                 new DefaultHttpRequestFactory(),

Modified: httpcomponents/httpcore/trunk/httpcore/src/test/java/org/apache/http/impl/io/TestResponseParser.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore/src/test/java/org/apache/http/impl/io/TestResponseParser.java?rev=1329914&r1=1329913&r2=1329914&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore/src/test/java/org/apache/http/impl/io/TestResponseParser.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore/src/test/java/org/apache/http/impl/io/TestResponseParser.java
Tue Apr 24 18:26:34 2012
@@ -50,7 +50,7 @@ public class TestResponseParser {
     @Test
     public void testInvalidConstructorInput() throws Exception {
         try {
-            new HttpResponseParser(
+            new DefaultHttpResponseParser(
                     null,
                     BasicLineParser.DEFAULT,
                     new DefaultHttpResponseFactory(),
@@ -61,7 +61,7 @@ public class TestResponseParser {
         }
         try {
             SessionInputBuffer inbuffer = new SessionInputBufferMock(new byte[] {});
-            new HttpResponseParser(
+            new DefaultHttpResponseParser(
                     inbuffer,
                     BasicLineParser.DEFAULT,
                     null,
@@ -72,7 +72,7 @@ public class TestResponseParser {
         }
         try {
             SessionInputBuffer inbuffer = new SessionInputBufferMock(new byte[] {});
-            new HttpResponseParser(
+            new DefaultHttpResponseParser(
                     inbuffer,
                     BasicLineParser.DEFAULT,
                     new DefaultHttpResponseFactory(),
@@ -114,7 +114,7 @@ public class TestResponseParser {
     public void testConnectionClosedException() throws Exception {
         SessionInputBuffer inbuffer = new SessionInputBufferMock(new byte[] {});
 
-        HttpResponseParser parser = new HttpResponseParser(
+        DefaultHttpResponseParser parser = new DefaultHttpResponseParser(
                 inbuffer,
                 BasicLineParser.DEFAULT,
                 new DefaultHttpResponseFactory(),



Mime
View raw message