hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r418575 - in /jakarta/httpcomponents/tcconnector/trunk/src/java/org/apache/http/tcconnector/impl: CoyoteHttpConnectionImpl.java HttpConnectionProcessor.java
Date Sun, 02 Jul 2006 11:10:42 GMT
Author: olegk
Date: Sun Jul  2 04:10:42 2006
New Revision: 418575

URL: http://svn.apache.org/viewvc?rev=418575&view=rev
Log:
[HTTPCORE-5] Made Header an interface

Modified:
    jakarta/httpcomponents/tcconnector/trunk/src/java/org/apache/http/tcconnector/impl/CoyoteHttpConnectionImpl.java
    jakarta/httpcomponents/tcconnector/trunk/src/java/org/apache/http/tcconnector/impl/HttpConnectionProcessor.java

Modified: jakarta/httpcomponents/tcconnector/trunk/src/java/org/apache/http/tcconnector/impl/CoyoteHttpConnectionImpl.java
URL: http://svn.apache.org/viewvc/jakarta/httpcomponents/tcconnector/trunk/src/java/org/apache/http/tcconnector/impl/CoyoteHttpConnectionImpl.java?rev=418575&r1=418574&r2=418575&view=diff
==============================================================================
--- jakarta/httpcomponents/tcconnector/trunk/src/java/org/apache/http/tcconnector/impl/CoyoteHttpConnectionImpl.java
(original)
+++ jakarta/httpcomponents/tcconnector/trunk/src/java/org/apache/http/tcconnector/impl/CoyoteHttpConnectionImpl.java
Sun Jul  2 04:10:42 2006
@@ -63,6 +63,7 @@
 import org.apache.http.io.HttpDataReceiver;
 import org.apache.http.io.HttpDataTransmitter;
 import org.apache.http.io.IdentityOutputStream;
+import org.apache.http.message.BasicHeader;
 import org.apache.http.params.HttpConnectionParams;
 import org.apache.http.params.HttpParams;
 import org.apache.http.protocol.HTTP;
@@ -235,7 +236,7 @@
         this.datatransmitter.writeLine(this.charbuffer);
         for (Iterator it = response.headerIterator(); it.hasNext(); ) {
             this.charbuffer.clear();
-            Header.format(this.charbuffer, (Header) it.next());
+            BasicHeader.format(this.charbuffer, (Header) it.next());
             this.datatransmitter.writeLine(this.charbuffer);
         }
         this.charbuffer.clear();

Modified: jakarta/httpcomponents/tcconnector/trunk/src/java/org/apache/http/tcconnector/impl/HttpConnectionProcessor.java
URL: http://svn.apache.org/viewvc/jakarta/httpcomponents/tcconnector/trunk/src/java/org/apache/http/tcconnector/impl/HttpConnectionProcessor.java?rev=418575&r1=418574&r2=418575&view=diff
==============================================================================
--- jakarta/httpcomponents/tcconnector/trunk/src/java/org/apache/http/tcconnector/impl/HttpConnectionProcessor.java
(original)
+++ jakarta/httpcomponents/tcconnector/trunk/src/java/org/apache/http/tcconnector/impl/HttpConnectionProcessor.java
Sun Jul  2 04:10:42 2006
@@ -404,11 +404,11 @@
         for (int i = 0; i < size; i++) {
             String name = headers.getName(i).getString();
             String value = headers.getValue(i).getString();
-            this.httpres.addHeader(new Header(name, value));
+            this.httpres.addHeader(name, value);
         }
         String lang = this.coyoteres.getContentLanguage();
         if (lang != null) {
-            this.httpres.addHeader(new Header("Content-Language", lang));
+            this.httpres.addHeader("Content-Language", lang);
         }
         if (canResponseHaveBody(this.httpreq, this.httpres)) {
             BasicHttpEntity entity = new BasicHttpEntity();



Mime
View raw message