hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1552414 [4/6] - in /httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http: ./ auth/ auth/params/ client/ client/entity/ client/methods/ client/params/ client/protocol/ client/utils/ conn/ conn/params/ conn/ro...
Date Thu, 19 Dec 2013 20:20:09 GMT
Modified: httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/client/ProxyClient.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/client/ProxyClient.java?rev=1552414&r1=1552413&r2=1552414&view=diff
==============================================================================
--- httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/client/ProxyClient.java (original)
+++ httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/client/ProxyClient.java Thu Dec 19 20:20:02 2013
@@ -40,7 +40,7 @@ import org.apache.http.HttpVersion;
 import org.apache.http.auth.AUTH;
 import org.apache.http.auth.AuthSchemeRegistry;
 import org.apache.http.auth.AuthScope;
-import org.apache.http.auth.AuthState;
+import org.apache.http.auth.AuthStateHC4;
 import org.apache.http.auth.Credentials;
 import org.apache.http.client.config.AuthSchemes;
 import org.apache.http.client.config.RequestConfig;
@@ -53,10 +53,10 @@ import org.apache.http.conn.ManagedHttpC
 import org.apache.http.conn.routing.HttpRoute;
 import org.apache.http.conn.routing.RouteInfo.LayerType;
 import org.apache.http.conn.routing.RouteInfo.TunnelType;
-import org.apache.http.entity.BufferedHttpEntity;
-import org.apache.http.impl.DefaultConnectionReuseStrategy;
-import org.apache.http.impl.auth.BasicSchemeFactory;
-import org.apache.http.impl.auth.DigestSchemeFactory;
+import org.apache.http.entity.BufferedHttpEntityHC4;
+import org.apache.http.impl.DefaultConnectionReuseStrategyHC4;
+import org.apache.http.impl.auth.BasicSchemeFactoryHC4;
+import org.apache.http.impl.auth.DigestSchemeFactoryHC4;
 import org.apache.http.impl.auth.HttpAuthenticator;
 import org.apache.http.impl.auth.KerberosSchemeFactory;
 import org.apache.http.impl.auth.NTLMSchemeFactory;
@@ -67,16 +67,16 @@ import org.apache.http.message.BasicHttp
 import org.apache.http.params.BasicHttpParams;
 import org.apache.http.params.HttpParamConfig;
 import org.apache.http.params.HttpParams;
-import org.apache.http.protocol.BasicHttpContext;
+import org.apache.http.protocol.BasicHttpContextHC4;
 import org.apache.http.protocol.HttpContext;
 import org.apache.http.protocol.HttpCoreContext;
 import org.apache.http.protocol.HttpProcessor;
 import org.apache.http.protocol.HttpRequestExecutor;
 import org.apache.http.protocol.ImmutableHttpProcessor;
-import org.apache.http.protocol.RequestTargetHost;
-import org.apache.http.protocol.RequestUserAgent;
+import org.apache.http.protocol.RequestTargetHostHC4;
+import org.apache.http.protocol.RequestUserAgentHC4;
 import org.apache.http.util.Args;
-import org.apache.http.util.EntityUtils;
+import org.apache.http.util.EntityUtilsHC4;
 
 /**
  * ProxyClient can be used to establish a tunnel via an HTTP proxy.
@@ -91,7 +91,7 @@ public class ProxyClient {
     private final HttpRequestExecutor requestExec;
     private final ProxyAuthenticationStrategy proxyAuthStrategy;
     private final HttpAuthenticator authenticator;
-    private final AuthState proxyAuthState;
+    private final AuthStateHC4 proxyAuthState;
     private final AuthSchemeRegistry authSchemeRegistry;
     private final ConnectionReuseStrategy reuseStrategy;
 
@@ -107,18 +107,18 @@ public class ProxyClient {
         this.connectionConfig = connectionConfig != null ? connectionConfig : ConnectionConfig.DEFAULT;
         this.requestConfig = requestConfig != null ? requestConfig : RequestConfig.DEFAULT;
         this.httpProcessor = new ImmutableHttpProcessor(
-                new RequestTargetHost(), new RequestClientConnControl(), new RequestUserAgent());
+                new RequestTargetHostHC4(), new RequestClientConnControl(), new RequestUserAgentHC4());
         this.requestExec = new HttpRequestExecutor();
         this.proxyAuthStrategy = new ProxyAuthenticationStrategy();
         this.authenticator = new HttpAuthenticator();
-        this.proxyAuthState = new AuthState();
+        this.proxyAuthState = new AuthStateHC4();
         this.authSchemeRegistry = new AuthSchemeRegistry();
-        this.authSchemeRegistry.register(AuthSchemes.BASIC, new BasicSchemeFactory());
-        this.authSchemeRegistry.register(AuthSchemes.DIGEST, new DigestSchemeFactory());
+        this.authSchemeRegistry.register(AuthSchemes.BASIC, new BasicSchemeFactoryHC4());
+        this.authSchemeRegistry.register(AuthSchemes.DIGEST, new DigestSchemeFactoryHC4());
         this.authSchemeRegistry.register(AuthSchemes.NTLM, new NTLMSchemeFactory());
         this.authSchemeRegistry.register(AuthSchemes.SPNEGO, new SPNegoSchemeFactory());
         this.authSchemeRegistry.register(AuthSchemes.KERBEROS, new KerberosSchemeFactory());
-        this.reuseStrategy = new DefaultConnectionReuseStrategy();
+        this.reuseStrategy = new DefaultConnectionReuseStrategyHC4();
     }
 
     /**
@@ -176,14 +176,14 @@ public class ProxyClient {
 
         final ManagedHttpClientConnection conn = this.connFactory.create(
                 route, this.connectionConfig);
-        final HttpContext context = new BasicHttpContext();
+        final HttpContext context = new BasicHttpContextHC4();
         HttpResponse response;
 
         final HttpRequest connect = new BasicHttpRequest(
                 "CONNECT", host.toHostString(), HttpVersion.HTTP_1_1);
 
-        final BasicCredentialsProvider credsProvider = new BasicCredentialsProvider();
-        credsProvider.setCredentials(new AuthScope(proxy), credentials);
+        final BasicCredentialsProviderHC4 credsProvider = new BasicCredentialsProviderHC4();
+        credsProvider.setCredentials(new AuthScope(proxy.getHostName(), proxy.getPort()), credentials);
 
         // Populate the execution context
         context.setAttribute(HttpCoreContext.HTTP_TARGET_HOST, target);
@@ -220,7 +220,7 @@ public class ProxyClient {
                     if (this.reuseStrategy.keepAlive(response, context)) {
                         // Consume response content
                         final HttpEntity entity = response.getEntity();
-                        EntityUtils.consume(entity);
+                        EntityUtilsHC4.consume(entity);
                     } else {
                         conn.close();
                     }
@@ -241,7 +241,7 @@ public class ProxyClient {
             // Buffer response content
             final HttpEntity entity = response.getEntity();
             if (entity != null) {
-                response.setEntity(new BufferedHttpEntity(entity));
+                response.setEntity(new BufferedHttpEntityHC4(entity));
             }
 
             conn.close();

Copied: httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/client/RedirectLocationsHC4.java (from r1548964, httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/client/RedirectLocations.java)
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/client/RedirectLocationsHC4.java?p2=httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/client/RedirectLocationsHC4.java&p1=httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/client/RedirectLocations.java&r1=1548964&r2=1552414&rev=1552414&view=diff
==============================================================================
--- httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/client/RedirectLocations.java (original)
+++ httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/client/RedirectLocationsHC4.java Thu Dec 19 20:20:02 2013
@@ -44,12 +44,12 @@ import org.apache.http.annotation.NotThr
  * @since 4.0
  */
 @NotThreadSafe // HashSet/ArrayList are not synch.
-public class RedirectLocations extends AbstractList<Object> {
+public class RedirectLocationsHC4 extends AbstractList<Object> {
 
     private final Set<URI> unique;
     private final List<URI> all;
 
-    public RedirectLocations() {
+    public RedirectLocationsHC4() {
         super();
         this.unique = new HashSet<URI>();
         this.all = new ArrayList<URI>();

Modified: httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/client/StandardHttpRequestRetryHandler.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/client/StandardHttpRequestRetryHandler.java?rev=1552414&r1=1552413&r2=1552414&view=diff
==============================================================================
--- httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/client/StandardHttpRequestRetryHandler.java (original)
+++ httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/client/StandardHttpRequestRetryHandler.java Thu Dec 19 20:20:02 2013
@@ -45,7 +45,7 @@ import org.apache.http.annotation.Immuta
  * @since 4.2
  */
 @Immutable
-public class StandardHttpRequestRetryHandler extends DefaultHttpRequestRetryHandler {
+public class StandardHttpRequestRetryHandler extends DefaultHttpRequestRetryHandlerHC4 {
 
     private final Map<String, Boolean> idempotentMethods;
 

Modified: httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/client/SystemDefaultCredentialsProvider.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/client/SystemDefaultCredentialsProvider.java?rev=1552414&r1=1552413&r2=1552414&view=diff
==============================================================================
--- httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/client/SystemDefaultCredentialsProvider.java (original)
+++ httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/client/SystemDefaultCredentialsProvider.java Thu Dec 19 20:20:02 2013
@@ -68,14 +68,14 @@ public class SystemDefaultCredentialsPro
         return s != null ? s : key;
     }
 
-    private final BasicCredentialsProvider internal;
+    private final BasicCredentialsProviderHC4 internal;
 
     /**
      * Default constructor.
      */
     public SystemDefaultCredentialsProvider() {
         super();
-        this.internal = new BasicCredentialsProvider();
+        this.internal = new BasicCredentialsProviderHC4();
     }
 
     public void setCredentials(final AuthScope authscope, final Credentials credentials) {

Modified: httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/client/package-info.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/client/package-info.java?rev=1552414&r1=1552413&r2=1552414&view=diff
==============================================================================
--- httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/client/package-info.java (original)
+++ httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/client/package-info.java Thu Dec 19 20:20:02 2013
@@ -32,14 +32,14 @@
  * <pre>
  * CloseableHttpClient httpclient = HttpClients.createDefault();
  * try {
- *      HttpGet httpGet = new HttpGet("http://targethost/homepage");
+ *      HttpGetHC4 httpGet = new HttpGetHC4("http://targethost/homepage");
  *      CloseableHttpResponse response = httpclient.execute(httpGet);
  *      try {
  *          System.out.println(response.getStatusLine());
  *          HttpEntity entity = response.getEntity();
  *          // do something useful with the response body
  *          // and ensure it is fully consumed
- *          EntityUtils.consume(entity);
+ *          EntityUtilsHC4.consume(entity);
  *      } finally {
  *          response.close();
  *      }

Modified: httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/conn/BasicHttpClientConnectionManager.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/conn/BasicHttpClientConnectionManager.java?rev=1552414&r1=1552413&r2=1552414&view=diff
==============================================================================
--- httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/conn/BasicHttpClientConnectionManager.java (original)
+++ httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/conn/BasicHttpClientConnectionManager.java Thu Dec 19 20:20:02 2013
@@ -314,7 +314,7 @@ public class BasicHttpClientConnectionMa
         } else {
             host = route.getTargetHost();
         }
-        final InetSocketAddress localAddress = route.getLocalSocketAddress();
+        final InetSocketAddress localAddress = route.getLocalAddress() != null ? new InetSocketAddress(route.getLocalAddress(), 0) : null;;
         this.connectionOperator.connect(this.conn, host, localAddress,
                 connectTimeout, this.socketConfig, context);
     }

Modified: httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/conn/DefaultHttpResponseParser.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/conn/DefaultHttpResponseParser.java?rev=1552414&r1=1552413&r2=1552414&view=diff
==============================================================================
--- httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/conn/DefaultHttpResponseParser.java (original)
+++ httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/conn/DefaultHttpResponseParser.java Thu Dec 19 20:20:02 2013
@@ -39,8 +39,8 @@ import org.apache.http.ProtocolException
 import org.apache.http.StatusLine;
 import org.apache.http.annotation.NotThreadSafe;
 import org.apache.http.config.MessageConstraints;
-import org.apache.http.impl.DefaultHttpResponseFactory;
-import org.apache.http.impl.io.AbstractMessageParser;
+import org.apache.http.impl.DefaultHttpResponseFactoryHC4;
+import org.apache.http.impl.io.AbstractMessageParserHC4;
 import org.apache.http.io.SessionInputBuffer;
 import org.apache.http.message.LineParser;
 import org.apache.http.message.ParserCursor;
@@ -56,7 +56,7 @@ import org.apache.http.util.CharArrayBuf
  */
 @SuppressWarnings("deprecation")
 @NotThreadSafe
-public class DefaultHttpResponseParser extends AbstractMessageParser<HttpResponse> {
+public class DefaultHttpResponseParser extends AbstractMessageParserHC4<HttpResponse> {
 
     private final Log log = LogFactory.getLog(getClass());
 
@@ -84,9 +84,9 @@ public class DefaultHttpResponseParser e
      *
      * @param buffer the session input buffer.
      * @param lineParser the line parser. If <code>null</code>
-     *   {@link org.apache.http.message.BasicLineParser#INSTANCE} will be used.
+     *   {@link org.apache.http.message.BasicLineParserHC4#INSTANCE} will be used.
      * @param responseFactory HTTP response factory. If <code>null</code>
-     *   {@link DefaultHttpResponseFactory#INSTANCE} will be used.
+     *   {@link DefaultHttpResponseFactoryHC4#INSTANCE} will be used.
      * @param constraints the message constraints. If <code>null</code>
      *   {@link MessageConstraints#DEFAULT} will be used.
      *
@@ -99,7 +99,7 @@ public class DefaultHttpResponseParser e
             final MessageConstraints constraints) {
         super(buffer, lineParser, constraints);
         this.responseFactory = responseFactory != null ? responseFactory :
-                DefaultHttpResponseFactory.INSTANCE;
+                DefaultHttpResponseFactoryHC4.INSTANCE;
         this.lineBuf = new CharArrayBuffer(128);
     }
 

Modified: httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/conn/DefaultHttpResponseParserFactory.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/conn/DefaultHttpResponseParserFactory.java?rev=1552414&r1=1552413&r2=1552414&view=diff
==============================================================================
--- httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/conn/DefaultHttpResponseParserFactory.java (original)
+++ httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/conn/DefaultHttpResponseParserFactory.java Thu Dec 19 20:20:02 2013
@@ -31,11 +31,11 @@ import org.apache.http.HttpResponse;
 import org.apache.http.HttpResponseFactory;
 import org.apache.http.annotation.Immutable;
 import org.apache.http.config.MessageConstraints;
-import org.apache.http.impl.DefaultHttpResponseFactory;
+import org.apache.http.impl.DefaultHttpResponseFactoryHC4;
 import org.apache.http.io.HttpMessageParser;
 import org.apache.http.io.HttpMessageParserFactory;
 import org.apache.http.io.SessionInputBuffer;
-import org.apache.http.message.BasicLineParser;
+import org.apache.http.message.BasicLineParserHC4;
 import org.apache.http.message.LineParser;
 
 /**
@@ -55,9 +55,9 @@ public class DefaultHttpResponseParserFa
             final LineParser lineParser,
             final HttpResponseFactory responseFactory) {
         super();
-        this.lineParser = lineParser != null ? lineParser : BasicLineParser.INSTANCE;
+        this.lineParser = lineParser != null ? lineParser : BasicLineParserHC4.INSTANCE;
         this.responseFactory = responseFactory != null ? responseFactory
-                : DefaultHttpResponseFactory.INSTANCE;
+                : DefaultHttpResponseFactoryHC4.INSTANCE;
     }
 
     public DefaultHttpResponseParserFactory(
@@ -69,7 +69,7 @@ public class DefaultHttpResponseParserFa
         this(null, null);
     }
 
-    public HttpMessageParser<HttpResponse> create(final SessionInputBuffer buffer,
+    public HttpMessageParser create(final SessionInputBuffer buffer,
             final MessageConstraints constraints) {
         return new DefaultHttpResponseParser(buffer, lineParser, responseFactory, constraints);
     }

Modified: httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/conn/HttpClientConnectionOperator.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/conn/HttpClientConnectionOperator.java?rev=1552414&r1=1552413&r2=1552414&view=diff
==============================================================================
--- httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/conn/HttpClientConnectionOperator.java (original)
+++ httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/conn/HttpClientConnectionOperator.java Thu Dec 19 20:20:02 2013
@@ -32,6 +32,7 @@ import java.net.InetAddress;
 import java.net.InetSocketAddress;
 import java.net.Socket;
 import java.net.SocketTimeoutException;
+import java.util.Arrays;
 
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
@@ -86,6 +87,18 @@ class HttpClientConnectionOperator {
         return reg;
     }
 
+    private static String getConnectTimeoutMessage(
+            final IOException cause,
+            final HttpHost host,
+            final InetAddress... remoteAddresses) {
+        return "Connect to " +
+                (host != null ? host.toHostString() : "remote host") +
+                (remoteAddresses != null && remoteAddresses .length > 0 ?
+                        " " + Arrays.asList(remoteAddresses) : "") +
+                ((cause != null && cause.getMessage() != null) ?
+                        " failed: " + cause.getMessage() : " timed out");
+    }
+
     public void connect(
             final ManagedHttpClientConnection conn,
             final HttpHost host,
@@ -127,15 +140,21 @@ class HttpClientConnectionOperator {
                 return;
             } catch (final SocketTimeoutException ex) {
                 if (last) {
-                    throw new ConnectTimeoutException(ex, host, addresses);
+                    final ConnectTimeoutException cex = new ConnectTimeoutException(
+                            getConnectTimeoutMessage(ex, host, addresses));
+                    cex.initCause(ex);
+                    throw cex;
                 }
             } catch (final ConnectException ex) {
                 if (last) {
                     final String msg = ex.getMessage();
                     if ("Connection timed out".equals(msg)) {
-                        throw new ConnectTimeoutException(ex, host, addresses);
+                        final ConnectTimeoutException cex = new ConnectTimeoutException(
+                                getConnectTimeoutMessage(ex, host, addresses));
+                        cex.initCause(ex);
+                        throw cex;
                     } else {
-                        throw new HttpHostConnectException(ex, host, addresses);
+                        throw new HttpHostConnectException(host, ex);
                     }
                 }
             }

Modified: httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/conn/LoggingInputStream.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/conn/LoggingInputStream.java?rev=1552414&r1=1552413&r2=1552414&view=diff
==============================================================================
--- httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/conn/LoggingInputStream.java (original)
+++ httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/conn/LoggingInputStream.java Thu Dec 19 20:20:02 2013
@@ -41,9 +41,9 @@ import java.io.InputStream;
 class LoggingInputStream extends InputStream {
 
     private final InputStream in;
-    private final Wire wire;
+    private final WireHC4 wire;
 
-    public LoggingInputStream(final InputStream in, final Wire wire) {
+    public LoggingInputStream(final InputStream in, final WireHC4 wire) {
         super();
         this.in = in;
         this.wire = wire;

Modified: httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/conn/LoggingManagedHttpClientConnection.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/conn/LoggingManagedHttpClientConnection.java?rev=1552414&r1=1552413&r2=1552414&view=diff
==============================================================================
--- httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/conn/LoggingManagedHttpClientConnection.java (original)
+++ httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/conn/LoggingManagedHttpClientConnection.java Thu Dec 19 20:20:02 2013
@@ -49,7 +49,7 @@ class LoggingManagedHttpClientConnection
 
     private final Log log;
     private final Log headerlog;
-    private final Wire wire;
+    private final WireHC4 wire;
 
     public LoggingManagedHttpClientConnection(
             final String id,
@@ -70,7 +70,7 @@ class LoggingManagedHttpClientConnection
                 requestWriterFactory, responseParserFactory);
         this.log = log;
         this.headerlog = headerlog;
-        this.wire = new Wire(wirelog, id);
+        this.wire = new WireHC4(wirelog, id);
     }
 
     @Override

Modified: httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/conn/LoggingOutputStream.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/conn/LoggingOutputStream.java?rev=1552414&r1=1552413&r2=1552414&view=diff
==============================================================================
--- httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/conn/LoggingOutputStream.java (original)
+++ httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/conn/LoggingOutputStream.java Thu Dec 19 20:20:02 2013
@@ -41,9 +41,9 @@ import java.io.OutputStream;
 class LoggingOutputStream extends OutputStream {
 
     private final OutputStream out;
-    private final Wire wire;
+    private final WireHC4 wire;
 
-    public LoggingOutputStream(final OutputStream out, final Wire wire) {
+    public LoggingOutputStream(final OutputStream out, final WireHC4 wire) {
         super();
         this.out = out;
         this.wire = wire;

Modified: httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/conn/PoolingHttpClientConnectionManager.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/conn/PoolingHttpClientConnectionManager.java?rev=1552414&r1=1552413&r2=1552414&view=diff
==============================================================================
--- httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/conn/PoolingHttpClientConnectionManager.java (original)
+++ httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/conn/PoolingHttpClientConnectionManager.java Thu Dec 19 20:20:02 2013
@@ -303,7 +303,7 @@ public class PoolingHttpClientConnection
         } else {
             host = route.getTargetHost();
         }
-        final InetSocketAddress localAddress = route.getLocalSocketAddress();
+        final InetSocketAddress localAddress = route.getLocalAddress() != null ? new InetSocketAddress(route.getLocalAddress(), 0) : null;;
         SocketConfig socketConfig = this.configData.getSocketConfig(host);
         if (socketConfig == null) {
             socketConfig = this.configData.getDefaultSocketConfig();

Copied: httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/conn/WireHC4.java (from r1548964, httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/conn/Wire.java)
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/conn/WireHC4.java?p2=httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/conn/WireHC4.java&p1=httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/conn/Wire.java&r1=1548964&r2=1552414&rev=1552414&view=diff
==============================================================================
--- httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/conn/Wire.java (original)
+++ httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/conn/WireHC4.java Thu Dec 19 20:20:02 2013
@@ -41,7 +41,7 @@ import org.apache.http.util.Args;
  * @since 4.0
  */
 @Immutable
-public class Wire {
+public class WireHC4 {
 
     private final Log log;
     private final String id;
@@ -49,12 +49,12 @@ public class Wire {
     /**
      * @since 4.3
      */
-    public Wire(final Log log, final String id) {
+    public WireHC4(final Log log, final String id) {
         this.log = log;
         this.id = id;
     }
 
-    public Wire(final Log log) {
+    public WireHC4(final Log log) {
         this(log, "");
     }
 

Copied: httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/AbstractCookieAttributeHandlerHC4.java (from r1548964, httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/AbstractCookieAttributeHandler.java)
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/AbstractCookieAttributeHandlerHC4.java?p2=httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/AbstractCookieAttributeHandlerHC4.java&p1=httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/AbstractCookieAttributeHandler.java&r1=1548964&r2=1552414&rev=1552414&view=diff
==============================================================================
--- httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/AbstractCookieAttributeHandler.java (original)
+++ httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/AbstractCookieAttributeHandlerHC4.java Thu Dec 19 20:20:02 2013
@@ -37,7 +37,7 @@ import org.apache.http.cookie.MalformedC
  * @since 4.0
  */
 @Immutable
-public abstract class AbstractCookieAttributeHandler implements CookieAttributeHandler {
+public abstract class AbstractCookieAttributeHandlerHC4 implements CookieAttributeHandler {
 
     public void validate(final Cookie cookie, final CookieOrigin origin)
             throws MalformedCookieException {

Copied: httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/AbstractCookieSpecHC4.java (from r1548964, httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/AbstractCookieSpec.java)
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/AbstractCookieSpecHC4.java?p2=httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/AbstractCookieSpecHC4.java&p1=httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/AbstractCookieSpec.java&r1=1548964&r2=1552414&rev=1552414&view=diff
==============================================================================
--- httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/AbstractCookieSpec.java (original)
+++ httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/AbstractCookieSpecHC4.java Thu Dec 19 20:20:02 2013
@@ -45,7 +45,7 @@ import org.apache.http.util.Args;
  * @since 4.0
  */
 @NotThreadSafe // HashMap is not thread-safe
-public abstract class AbstractCookieSpec implements CookieSpec {
+public abstract class AbstractCookieSpecHC4 implements CookieSpec {
 
     /**
     * Stores attribute name -> attribute handler mappings
@@ -55,7 +55,7 @@ public abstract class AbstractCookieSpec
     /**
      * Default constructor
      * */
-    public AbstractCookieSpec() {
+    public AbstractCookieSpecHC4() {
         super();
         this.attribHandlerMap = new HashMap<String, CookieAttributeHandler>(10);
     }

Copied: httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BasicClientCookie2HC4.java (from r1548964, httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BasicClientCookie2.java)
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BasicClientCookie2HC4.java?p2=httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BasicClientCookie2HC4.java&p1=httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BasicClientCookie2.java&r1=1548964&r2=1552414&rev=1552414&view=diff
==============================================================================
--- httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BasicClientCookie2.java (original)
+++ httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BasicClientCookie2HC4.java Thu Dec 19 20:20:02 2013
@@ -39,7 +39,7 @@ import org.apache.http.cookie.SetCookie2
  * @since 4.0
  */
 @NotThreadSafe
-public class BasicClientCookie2 extends BasicClientCookie implements SetCookie2, Serializable {
+public class BasicClientCookie2HC4 extends BasicClientCookieHC4 implements SetCookie2, Serializable {
 
     private static final long serialVersionUID = -7744598295706617057L;
 
@@ -53,7 +53,7 @@ public class BasicClientCookie2 extends 
      * @param name The name.
      * @param value The value.
      */
-    public BasicClientCookie2(final String name, final String value) {
+    public BasicClientCookie2HC4(final String name, final String value) {
         super(name, value);
     }
 
@@ -91,7 +91,7 @@ public class BasicClientCookie2 extends 
 
     @Override
     public Object clone() throws CloneNotSupportedException {
-        final BasicClientCookie2 clone = (BasicClientCookie2) super.clone();
+        final BasicClientCookie2HC4 clone = (BasicClientCookie2HC4) super.clone();
         if (this.ports != null) {
             clone.ports = this.ports.clone();
         }

Copied: httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BasicClientCookieHC4.java (from r1548964, httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BasicClientCookie.java)
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BasicClientCookieHC4.java?p2=httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BasicClientCookieHC4.java&p1=httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BasicClientCookie.java&r1=1548964&r2=1552414&rev=1552414&view=diff
==============================================================================
--- httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BasicClientCookie.java (original)
+++ httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BasicClientCookieHC4.java Thu Dec 19 20:20:02 2013
@@ -44,7 +44,7 @@ import org.apache.http.util.Args;
  * @since 4.0
  */
 @NotThreadSafe
-public class BasicClientCookie implements SetCookie, ClientCookie, Cloneable, Serializable {
+public class BasicClientCookieHC4 implements SetCookie, ClientCookie, Cloneable, Serializable {
 
     private static final long serialVersionUID = -3869795591041535538L;
 
@@ -54,7 +54,7 @@ public class BasicClientCookie implement
      * @param name The name.
      * @param value The value.
      */
-    public BasicClientCookie(final String name, final String value) {
+    public BasicClientCookieHC4(final String name, final String value) {
         super();
         Args.notNull(name, "Name");
         this.name = name;
@@ -299,7 +299,7 @@ public class BasicClientCookie implement
 
     @Override
     public Object clone() throws CloneNotSupportedException {
-        final BasicClientCookie clone = (BasicClientCookie) super.clone();
+        final BasicClientCookieHC4 clone = (BasicClientCookieHC4) super.clone();
         clone.attribs = new HashMap<String, String>(this.attribs);
         return clone;
     }

Copied: httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BasicCommentHandlerHC4.java (from r1548964, httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BasicCommentHandler.java)
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BasicCommentHandlerHC4.java?p2=httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BasicCommentHandlerHC4.java&p1=httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BasicCommentHandler.java&r1=1548964&r2=1552414&rev=1552414&view=diff
==============================================================================
--- httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BasicCommentHandler.java (original)
+++ httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BasicCommentHandlerHC4.java Thu Dec 19 20:20:02 2013
@@ -36,9 +36,9 @@ import org.apache.http.util.Args;
  * @since 4.0
  */
 @Immutable
-public class BasicCommentHandler extends AbstractCookieAttributeHandler {
+public class BasicCommentHandlerHC4 extends AbstractCookieAttributeHandlerHC4 {
 
-    public BasicCommentHandler() {
+    public BasicCommentHandlerHC4() {
         super();
     }
 

Copied: httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BasicDomainHandlerHC4.java (from r1548964, httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BasicDomainHandler.java)
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BasicDomainHandlerHC4.java?p2=httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BasicDomainHandlerHC4.java&p1=httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BasicDomainHandler.java&r1=1548964&r2=1552414&rev=1552414&view=diff
==============================================================================
--- httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BasicDomainHandler.java (original)
+++ httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BasicDomainHandlerHC4.java Thu Dec 19 20:20:02 2013
@@ -40,9 +40,9 @@ import org.apache.http.util.Args;
  * @since 4.0
  */
 @Immutable
-public class BasicDomainHandler implements CookieAttributeHandler {
+public class BasicDomainHandlerHC4 implements CookieAttributeHandler {
 
-    public BasicDomainHandler() {
+    public BasicDomainHandlerHC4() {
         super();
     }
 

Copied: httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BasicExpiresHandlerHC4.java (from r1548964, httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BasicExpiresHandler.java)
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BasicExpiresHandlerHC4.java?p2=httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BasicExpiresHandlerHC4.java&p1=httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BasicExpiresHandler.java&r1=1548964&r2=1552414&rev=1552414&view=diff
==============================================================================
--- httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BasicExpiresHandler.java (original)
+++ httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BasicExpiresHandlerHC4.java Thu Dec 19 20:20:02 2013
@@ -39,12 +39,12 @@ import org.apache.http.util.Args;
  * @since 4.0
  */
 @Immutable
-public class BasicExpiresHandler extends AbstractCookieAttributeHandler {
+public class BasicExpiresHandlerHC4 extends AbstractCookieAttributeHandlerHC4 {
 
     /** Valid date patterns */
     private final String[] datepatterns;
 
-    public BasicExpiresHandler(final String[] datepatterns) {
+    public BasicExpiresHandlerHC4(final String[] datepatterns) {
         Args.notNull(datepatterns, "Array of date patterns");
         this.datepatterns = datepatterns;
     }

Copied: httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BasicMaxAgeHandlerHC4.java (from r1548964, httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BasicMaxAgeHandler.java)
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BasicMaxAgeHandlerHC4.java?p2=httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BasicMaxAgeHandlerHC4.java&p1=httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BasicMaxAgeHandler.java&r1=1548964&r2=1552414&rev=1552414&view=diff
==============================================================================
--- httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BasicMaxAgeHandler.java (original)
+++ httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BasicMaxAgeHandlerHC4.java Thu Dec 19 20:20:02 2013
@@ -38,9 +38,9 @@ import org.apache.http.util.Args;
  * @since 4.0
  */
 @Immutable
-public class BasicMaxAgeHandler extends AbstractCookieAttributeHandler {
+public class BasicMaxAgeHandlerHC4 extends AbstractCookieAttributeHandlerHC4 {
 
-    public BasicMaxAgeHandler() {
+    public BasicMaxAgeHandlerHC4() {
         super();
     }
 

Copied: httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BasicPathHandlerHC4.java (from r1548964, httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BasicPathHandler.java)
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BasicPathHandlerHC4.java?p2=httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BasicPathHandlerHC4.java&p1=httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BasicPathHandler.java&r1=1548964&r2=1552414&rev=1552414&view=diff
==============================================================================
--- httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BasicPathHandler.java (original)
+++ httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BasicPathHandlerHC4.java Thu Dec 19 20:20:02 2013
@@ -41,9 +41,9 @@ import org.apache.http.util.TextUtils;
  * @since 4.0
  */
 @Immutable
-public class BasicPathHandler implements CookieAttributeHandler {
+public class BasicPathHandlerHC4 implements CookieAttributeHandler {
 
-    public BasicPathHandler() {
+    public BasicPathHandlerHC4() {
         super();
     }
 

Copied: httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BasicSecureHandlerHC4.java (from r1548964, httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BasicSecureHandler.java)
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BasicSecureHandlerHC4.java?p2=httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BasicSecureHandlerHC4.java&p1=httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BasicSecureHandler.java&r1=1548964&r2=1552414&rev=1552414&view=diff
==============================================================================
--- httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BasicSecureHandler.java (original)
+++ httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BasicSecureHandlerHC4.java Thu Dec 19 20:20:02 2013
@@ -38,9 +38,9 @@ import org.apache.http.util.Args;
  * @since 4.0
  */
 @Immutable
-public class BasicSecureHandler extends AbstractCookieAttributeHandler {
+public class BasicSecureHandlerHC4 extends AbstractCookieAttributeHandlerHC4 {
 
-    public BasicSecureHandler() {
+    public BasicSecureHandlerHC4() {
         super();
     }
 

Copied: httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BestMatchSpecFactoryHC4.java (from r1548964, httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BestMatchSpecFactory.java)
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BestMatchSpecFactoryHC4.java?p2=httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BestMatchSpecFactoryHC4.java&p1=httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BestMatchSpecFactory.java&r1=1548964&r2=1552414&rev=1552414&view=diff
==============================================================================
--- httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BestMatchSpecFactory.java (original)
+++ httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BestMatchSpecFactoryHC4.java Thu Dec 19 20:20:02 2013
@@ -45,18 +45,18 @@ import org.apache.http.protocol.HttpCont
  */
 @Immutable
 @SuppressWarnings("deprecation")
-public class BestMatchSpecFactory implements CookieSpecFactory, CookieSpecProvider {
+public class BestMatchSpecFactoryHC4 implements CookieSpecFactory, CookieSpecProvider {
 
     private final String[] datepatterns;
     private final boolean oneHeader;
 
-    public BestMatchSpecFactory(final String[] datepatterns, final boolean oneHeader) {
+    public BestMatchSpecFactoryHC4(final String[] datepatterns, final boolean oneHeader) {
         super();
         this.datepatterns = datepatterns;
         this.oneHeader = oneHeader;
     }
 
-    public BestMatchSpecFactory() {
+    public BestMatchSpecFactoryHC4() {
         this(null, false);
     }
 
@@ -73,14 +73,14 @@ public class BestMatchSpecFactory implem
             final boolean singleHeader = params.getBooleanParameter(
                     CookieSpecPNames.SINGLE_COOKIE_HEADER, false);
 
-            return new BestMatchSpec(patterns, singleHeader);
+            return new BestMatchSpecHC4(patterns, singleHeader);
         } else {
-            return new BestMatchSpec();
+            return new BestMatchSpecHC4();
         }
     }
 
     public CookieSpec create(final HttpContext context) {
-        return new BestMatchSpec(this.datepatterns, this.oneHeader);
+        return new BestMatchSpecHC4(this.datepatterns, this.oneHeader);
     }
 
 }

Copied: httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BestMatchSpecHC4.java (from r1548964, httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BestMatchSpec.java)
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BestMatchSpecHC4.java?p2=httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BestMatchSpecHC4.java&p1=httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BestMatchSpec.java&r1=1548964&r2=1552414&rev=1552414&view=diff
==============================================================================
--- httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BestMatchSpec.java (original)
+++ httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BestMatchSpecHC4.java Thu Dec 19 20:20:02 2013
@@ -50,43 +50,43 @@ import org.apache.http.util.CharArrayBuf
  * @since 4.0
  */
 @NotThreadSafe // CookieSpec fields are @NotThreadSafe
-public class BestMatchSpec implements CookieSpec {
+public class BestMatchSpecHC4 implements CookieSpec {
 
     private final String[] datepatterns;
     private final boolean oneHeader;
 
     // Cached values of CookieSpec instances
-    private RFC2965Spec strict; // @NotThreadSafe
-    private RFC2109Spec obsoleteStrict; // @NotThreadSafe
-    private BrowserCompatSpec compat; // @NotThreadSafe
+    private RFC2965SpecHC4 strict; // @NotThreadSafe
+    private RFC2109SpecHC4 obsoleteStrict; // @NotThreadSafe
+    private BrowserCompatSpecHC4 compat; // @NotThreadSafe
 
-    public BestMatchSpec(final String[] datepatterns, final boolean oneHeader) {
+    public BestMatchSpecHC4(final String[] datepatterns, final boolean oneHeader) {
         super();
         this.datepatterns = datepatterns == null ? null : datepatterns.clone();
         this.oneHeader = oneHeader;
     }
 
-    public BestMatchSpec() {
+    public BestMatchSpecHC4() {
         this(null, false);
     }
 
-    private RFC2965Spec getStrict() {
+    private RFC2965SpecHC4 getStrict() {
         if (this.strict == null) {
-             this.strict = new RFC2965Spec(this.datepatterns, this.oneHeader);
+             this.strict = new RFC2965SpecHC4(this.datepatterns, this.oneHeader);
         }
         return strict;
     }
 
-    private RFC2109Spec getObsoleteStrict() {
+    private RFC2109SpecHC4 getObsoleteStrict() {
         if (this.obsoleteStrict == null) {
-             this.obsoleteStrict = new RFC2109Spec(this.datepatterns, this.oneHeader);
+             this.obsoleteStrict = new RFC2109SpecHC4(this.datepatterns, this.oneHeader);
         }
         return obsoleteStrict;
     }
 
-    private BrowserCompatSpec getCompat() {
+    private BrowserCompatSpecHC4 getCompat() {
         if (this.compat == null) {
-            this.compat = new BrowserCompatSpec(this.datepatterns);
+            this.compat = new BrowserCompatSpecHC4(this.datepatterns);
         }
         return compat;
     }
@@ -110,7 +110,7 @@ public class BestMatchSpec implements Co
         if (netscape || !versioned) {
             // Need to parse the header again, because Netscape style cookies do not correctly
             // support multiple header elements (comma cannot be treated as an element separator)
-            final NetscapeDraftHeaderParser parser = NetscapeDraftHeaderParser.DEFAULT;
+            final NetscapeDraftHeaderParserHC4 parser = NetscapeDraftHeaderParserHC4.DEFAULT;
             final CharArrayBuffer buffer;
             final ParserCursor cursor;
             if (header instanceof FormattedHeader) {

Copied: httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BrowserCompatSpecFactoryHC4.java (from r1548964, httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BrowserCompatSpecFactory.java)
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BrowserCompatSpecFactoryHC4.java?p2=httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BrowserCompatSpecFactoryHC4.java&p1=httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BrowserCompatSpecFactory.java&r1=1548964&r2=1552414&rev=1552414&view=diff
==============================================================================
--- httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BrowserCompatSpecFactory.java (original)
+++ httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BrowserCompatSpecFactoryHC4.java Thu Dec 19 20:20:02 2013
@@ -45,7 +45,7 @@ import org.apache.http.protocol.HttpCont
  */
 @Immutable
 @SuppressWarnings("deprecation")
-public class BrowserCompatSpecFactory implements CookieSpecFactory, CookieSpecProvider {
+public class BrowserCompatSpecFactoryHC4 implements CookieSpecFactory, CookieSpecProvider {
 
     public enum SecurityLevel {
         SECURITYLEVEL_DEFAULT,
@@ -55,17 +55,17 @@ public class BrowserCompatSpecFactory im
     private final String[] datepatterns;
     private final SecurityLevel securityLevel;
 
-    public BrowserCompatSpecFactory(final String[] datepatterns, final SecurityLevel securityLevel) {
+    public BrowserCompatSpecFactoryHC4(final String[] datepatterns, final SecurityLevel securityLevel) {
         super();
         this.datepatterns = datepatterns;
         this.securityLevel = securityLevel;
     }
 
-    public BrowserCompatSpecFactory(final String[] datepatterns) {
+    public BrowserCompatSpecFactoryHC4(final String[] datepatterns) {
         this(null, SecurityLevel.SECURITYLEVEL_DEFAULT);
     }
 
-    public BrowserCompatSpecFactory() {
+    public BrowserCompatSpecFactoryHC4() {
         this(null, SecurityLevel.SECURITYLEVEL_DEFAULT);
     }
 
@@ -79,14 +79,14 @@ public class BrowserCompatSpecFactory im
                 patterns = new String[param.size()];
                 patterns = param.toArray(patterns);
             }
-            return new BrowserCompatSpec(patterns, securityLevel);
+            return new BrowserCompatSpecHC4(patterns, securityLevel);
         } else {
-            return new BrowserCompatSpec(null, securityLevel);
+            return new BrowserCompatSpecHC4(null, securityLevel);
         }
     }
 
     public CookieSpec create(final HttpContext context) {
-        return new BrowserCompatSpec(this.datepatterns);
+        return new BrowserCompatSpecHC4(this.datepatterns);
     }
 
 }

Copied: httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BrowserCompatSpecHC4.java (from r1548964, httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BrowserCompatSpec.java)
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BrowserCompatSpecHC4.java?p2=httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BrowserCompatSpecHC4.java&p1=httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BrowserCompatSpec.java&r1=1548964&r2=1552414&rev=1552414&view=diff
==============================================================================
--- httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BrowserCompatSpec.java (original)
+++ httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BrowserCompatSpecHC4.java Thu Dec 19 20:20:02 2013
@@ -41,7 +41,7 @@ import org.apache.http.cookie.CookieOrig
 import org.apache.http.cookie.MalformedCookieException;
 import org.apache.http.cookie.SM;
 import org.apache.http.message.BasicHeaderElement;
-import org.apache.http.message.BasicHeaderValueFormatter;
+import org.apache.http.message.BasicHeaderValueFormatterHC4;
 import org.apache.http.message.BufferedHeader;
 import org.apache.http.message.ParserCursor;
 import org.apache.http.util.Args;
@@ -57,7 +57,7 @@ import org.apache.http.util.CharArrayBuf
  * @since 4.0
  */
 @NotThreadSafe // superclass is @NotThreadSafe
-public class BrowserCompatSpec extends CookieSpecBase {
+public class BrowserCompatSpecHC4 extends CookieSpecBaseHC4 {
 
 
     private static final String[] DEFAULT_DATE_PATTERNS = new String[] {
@@ -80,7 +80,7 @@ public class BrowserCompatSpec extends C
     private final String[] datepatterns;
 
     /** Default constructor */
-    public BrowserCompatSpec(final String[] datepatterns, final BrowserCompatSpecFactory.SecurityLevel securityLevel) {
+    public BrowserCompatSpecHC4(final String[] datepatterns, final BrowserCompatSpecFactoryHC4.SecurityLevel securityLevel) {
         super();
         if (datepatterns != null) {
             this.datepatterns = datepatterns.clone();
@@ -89,10 +89,10 @@ public class BrowserCompatSpec extends C
         }
         switch (securityLevel) {
             case SECURITYLEVEL_DEFAULT:
-                registerAttribHandler(ClientCookie.PATH_ATTR, new BasicPathHandler());
+                registerAttribHandler(ClientCookie.PATH_ATTR, new BasicPathHandlerHC4());
                 break;
             case SECURITYLEVEL_IE_MEDIUM:
-                registerAttribHandler(ClientCookie.PATH_ATTR, new BasicPathHandler() {
+                registerAttribHandler(ClientCookie.PATH_ATTR, new BasicPathHandlerHC4() {
                         @Override
                         public void validate(final Cookie cookie, final CookieOrigin origin) throws MalformedCookieException {
                             // No validation
@@ -104,23 +104,23 @@ public class BrowserCompatSpec extends C
                 throw new RuntimeException("Unknown security level");
         }
 
-        registerAttribHandler(ClientCookie.DOMAIN_ATTR, new BasicDomainHandler());
-        registerAttribHandler(ClientCookie.MAX_AGE_ATTR, new BasicMaxAgeHandler());
-        registerAttribHandler(ClientCookie.SECURE_ATTR, new BasicSecureHandler());
-        registerAttribHandler(ClientCookie.COMMENT_ATTR, new BasicCommentHandler());
-        registerAttribHandler(ClientCookie.EXPIRES_ATTR, new BasicExpiresHandler(
+        registerAttribHandler(ClientCookie.DOMAIN_ATTR, new BasicDomainHandlerHC4());
+        registerAttribHandler(ClientCookie.MAX_AGE_ATTR, new BasicMaxAgeHandlerHC4());
+        registerAttribHandler(ClientCookie.SECURE_ATTR, new BasicSecureHandlerHC4());
+        registerAttribHandler(ClientCookie.COMMENT_ATTR, new BasicCommentHandlerHC4());
+        registerAttribHandler(ClientCookie.EXPIRES_ATTR, new BasicExpiresHandlerHC4(
                 this.datepatterns));
         registerAttribHandler(ClientCookie.VERSION_ATTR, new BrowserCompatVersionAttributeHandler());
     }
 
     /** Default constructor */
-    public BrowserCompatSpec(final String[] datepatterns) {
-        this(datepatterns, BrowserCompatSpecFactory.SecurityLevel.SECURITYLEVEL_DEFAULT);
+    public BrowserCompatSpecHC4(final String[] datepatterns) {
+        this(datepatterns, BrowserCompatSpecFactoryHC4.SecurityLevel.SECURITYLEVEL_DEFAULT);
     }
 
     /** Default constructor */
-    public BrowserCompatSpec() {
-        this(null, BrowserCompatSpecFactory.SecurityLevel.SECURITYLEVEL_DEFAULT);
+    public BrowserCompatSpecHC4() {
+        this(null, BrowserCompatSpecFactoryHC4.SecurityLevel.SECURITYLEVEL_DEFAULT);
     }
 
     public List<Cookie> parse(final Header header, final CookieOrigin origin)
@@ -146,7 +146,7 @@ public class BrowserCompatSpec extends C
         if (netscape || !versioned) {
             // Need to parse the header again, because Netscape style cookies do not correctly
             // support multiple header elements (comma cannot be treated as an element separator)
-            final NetscapeDraftHeaderParser parser = NetscapeDraftHeaderParser.DEFAULT;
+            final NetscapeDraftHeaderParserHC4 parser = NetscapeDraftHeaderParserHC4.DEFAULT;
             final CharArrayBuffer buffer;
             final ParserCursor cursor;
             if (header instanceof FormattedHeader) {
@@ -182,7 +182,7 @@ public class BrowserCompatSpec extends C
             final String cookieValue = cookie.getValue();
             if (cookie.getVersion() > 0 &&
                     !(cookieValue.startsWith("\"") && cookieValue.endsWith("\""))) {
-                BasicHeaderValueFormatter.INSTANCE.formatHeaderElement(
+                BasicHeaderValueFormatterHC4.INSTANCE.formatHeaderElement(
                         buffer,
                         new BasicHeaderElement(cookieName, cookieValue),
                         false);

Modified: httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BrowserCompatVersionAttributeHandler.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BrowserCompatVersionAttributeHandler.java?rev=1552414&r1=1552413&r2=1552414&view=diff
==============================================================================
--- httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BrowserCompatVersionAttributeHandler.java (original)
+++ httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/BrowserCompatVersionAttributeHandler.java Thu Dec 19 20:20:02 2013
@@ -39,7 +39,7 @@ import org.apache.http.util.Args;
  */
 @Immutable
 public class BrowserCompatVersionAttributeHandler extends
-        AbstractCookieAttributeHandler {
+        AbstractCookieAttributeHandlerHC4 {
 
     public BrowserCompatVersionAttributeHandler() {
         super();

Copied: httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/CookieSpecBaseHC4.java (from r1548964, httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/CookieSpecBase.java)
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/CookieSpecBaseHC4.java?p2=httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/CookieSpecBaseHC4.java&p1=httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/CookieSpecBase.java&r1=1548964&r2=1552414&rev=1552414&view=diff
==============================================================================
--- httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/CookieSpecBase.java (original)
+++ httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/CookieSpecBaseHC4.java Thu Dec 19 20:20:02 2013
@@ -46,8 +46,8 @@ import org.apache.http.util.Args;
  *
  * @since 4.0
  */
-@NotThreadSafe // AbstractCookieSpec is not thread-safe
-public abstract class CookieSpecBase extends AbstractCookieSpec {
+@NotThreadSafe // AbstractCookieSpecHC4 is not thread-safe
+public abstract class CookieSpecBaseHC4 extends AbstractCookieSpecHC4 {
 
     protected static String getDefaultPath(final CookieOrigin origin) {
         String defaultPath = origin.getPath();
@@ -76,7 +76,7 @@ public abstract class CookieSpecBase ext
                 throw new MalformedCookieException("Cookie name may not be empty");
             }
 
-            final BasicClientCookie cookie = new BasicClientCookie(name, value);
+            final BasicClientCookieHC4 cookie = new BasicClientCookieHC4(name, value);
             cookie.setPath(getDefaultPath(origin));
             cookie.setDomain(getDefaultDomain(origin));
 

Modified: httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/IgnoreSpec.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/IgnoreSpec.java?rev=1552414&r1=1552413&r2=1552414&view=diff
==============================================================================
--- httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/IgnoreSpec.java (original)
+++ httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/IgnoreSpec.java Thu Dec 19 20:20:02 2013
@@ -42,7 +42,7 @@ import org.apache.http.cookie.MalformedC
  * @since 4.1
  */
 @NotThreadSafe // superclass is @NotThreadSafe
-public class IgnoreSpec extends CookieSpecBase {
+public class IgnoreSpec extends CookieSpecBaseHC4 {
 
     public int getVersion() {
         return 0;

Copied: httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/NetscapeDomainHandlerHC4.java (from r1548964, httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/NetscapeDomainHandler.java)
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/NetscapeDomainHandlerHC4.java?p2=httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/NetscapeDomainHandlerHC4.java&p1=httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/NetscapeDomainHandler.java&r1=1548964&r2=1552414&rev=1552414&view=diff
==============================================================================
--- httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/NetscapeDomainHandler.java (original)
+++ httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/NetscapeDomainHandlerHC4.java Thu Dec 19 20:20:02 2013
@@ -41,9 +41,9 @@ import org.apache.http.util.Args;
  * @since 4.0
  */
 @Immutable
-public class NetscapeDomainHandler extends BasicDomainHandler {
+public class NetscapeDomainHandlerHC4 extends BasicDomainHandlerHC4 {
 
-    public NetscapeDomainHandler() {
+    public NetscapeDomainHandlerHC4() {
         super();
     }
 

Copied: httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/NetscapeDraftHeaderParserHC4.java (from r1548964, httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/NetscapeDraftHeaderParser.java)
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/NetscapeDraftHeaderParserHC4.java?p2=httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/NetscapeDraftHeaderParserHC4.java&p1=httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/NetscapeDraftHeaderParser.java&r1=1548964&r2=1552414&rev=1552414&view=diff
==============================================================================
--- httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/NetscapeDraftHeaderParser.java (original)
+++ httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/NetscapeDraftHeaderParserHC4.java Thu Dec 19 20:20:02 2013
@@ -46,11 +46,11 @@ import org.apache.http.util.CharArrayBuf
  * @since 4.0
  */
 @Immutable
-public class NetscapeDraftHeaderParser {
+public class NetscapeDraftHeaderParserHC4 {
 
-    public final static NetscapeDraftHeaderParser DEFAULT = new NetscapeDraftHeaderParser();
+    public final static NetscapeDraftHeaderParserHC4 DEFAULT = new NetscapeDraftHeaderParserHC4();
 
-    public NetscapeDraftHeaderParser() {
+    public NetscapeDraftHeaderParserHC4() {
         super();
     }
 

Copied: httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/NetscapeDraftSpecFactoryHC4.java (from r1548964, httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/NetscapeDraftSpecFactory.java)
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/NetscapeDraftSpecFactoryHC4.java?p2=httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/NetscapeDraftSpecFactoryHC4.java&p1=httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/NetscapeDraftSpecFactory.java&r1=1548964&r2=1552414&rev=1552414&view=diff
==============================================================================
--- httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/NetscapeDraftSpecFactory.java (original)
+++ httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/NetscapeDraftSpecFactoryHC4.java Thu Dec 19 20:20:02 2013
@@ -45,16 +45,16 @@ import org.apache.http.protocol.HttpCont
  */
 @Immutable
 @SuppressWarnings("deprecation")
-public class NetscapeDraftSpecFactory implements CookieSpecFactory, CookieSpecProvider {
+public class NetscapeDraftSpecFactoryHC4 implements CookieSpecFactory, CookieSpecProvider {
 
     private final String[] datepatterns;
 
-    public NetscapeDraftSpecFactory(final String[] datepatterns) {
+    public NetscapeDraftSpecFactoryHC4(final String[] datepatterns) {
         super();
         this.datepatterns = datepatterns;
     }
 
-    public NetscapeDraftSpecFactory() {
+    public NetscapeDraftSpecFactoryHC4() {
         this(null);
     }
 
@@ -68,14 +68,14 @@ public class NetscapeDraftSpecFactory im
                 patterns = new String[param.size()];
                 patterns = param.toArray(patterns);
             }
-            return new NetscapeDraftSpec(patterns);
+            return new NetscapeDraftSpecHC4(patterns);
         } else {
-            return new NetscapeDraftSpec();
+            return new NetscapeDraftSpecHC4();
         }
     }
 
     public CookieSpec create(final HttpContext context) {
-        return new NetscapeDraftSpec(this.datepatterns);
+        return new NetscapeDraftSpecHC4(this.datepatterns);
     }
 
 }

Copied: httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/NetscapeDraftSpecHC4.java (from r1548964, httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/NetscapeDraftSpec.java)
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/NetscapeDraftSpecHC4.java?p2=httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/NetscapeDraftSpecHC4.java&p1=httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/NetscapeDraftSpec.java&r1=1548964&r2=1552414&rev=1552414&view=diff
==============================================================================
--- httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/NetscapeDraftSpec.java (original)
+++ httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/NetscapeDraftSpecHC4.java Thu Dec 19 20:20:02 2013
@@ -53,31 +53,31 @@ import org.apache.http.util.CharArrayBuf
  * @since 4.0
  */
 @NotThreadSafe // superclass is @NotThreadSafe
-public class NetscapeDraftSpec extends CookieSpecBase {
+public class NetscapeDraftSpecHC4 extends CookieSpecBaseHC4 {
 
     protected static final String EXPIRES_PATTERN = "EEE, dd-MMM-yy HH:mm:ss z";
 
     private final String[] datepatterns;
 
     /** Default constructor */
-    public NetscapeDraftSpec(final String[] datepatterns) {
+    public NetscapeDraftSpecHC4(final String[] datepatterns) {
         super();
         if (datepatterns != null) {
             this.datepatterns = datepatterns.clone();
         } else {
             this.datepatterns = new String[] { EXPIRES_PATTERN };
         }
-        registerAttribHandler(ClientCookie.PATH_ATTR, new BasicPathHandler());
-        registerAttribHandler(ClientCookie.DOMAIN_ATTR, new NetscapeDomainHandler());
-        registerAttribHandler(ClientCookie.MAX_AGE_ATTR, new BasicMaxAgeHandler());
-        registerAttribHandler(ClientCookie.SECURE_ATTR, new BasicSecureHandler());
-        registerAttribHandler(ClientCookie.COMMENT_ATTR, new BasicCommentHandler());
-        registerAttribHandler(ClientCookie.EXPIRES_ATTR, new BasicExpiresHandler(
+        registerAttribHandler(ClientCookie.PATH_ATTR, new BasicPathHandlerHC4());
+        registerAttribHandler(ClientCookie.DOMAIN_ATTR, new NetscapeDomainHandlerHC4());
+        registerAttribHandler(ClientCookie.MAX_AGE_ATTR, new BasicMaxAgeHandlerHC4());
+        registerAttribHandler(ClientCookie.SECURE_ATTR, new BasicSecureHandlerHC4());
+        registerAttribHandler(ClientCookie.COMMENT_ATTR, new BasicCommentHandlerHC4());
+        registerAttribHandler(ClientCookie.EXPIRES_ATTR, new BasicExpiresHandlerHC4(
                 this.datepatterns));
     }
 
     /** Default constructor */
-    public NetscapeDraftSpec() {
+    public NetscapeDraftSpecHC4() {
         this(null);
     }
 
@@ -113,7 +113,7 @@ public class NetscapeDraftSpec extends C
             throw new MalformedCookieException("Unrecognized cookie header '"
                     + header.toString() + "'");
         }
-        final NetscapeDraftHeaderParser parser = NetscapeDraftHeaderParser.DEFAULT;
+        final NetscapeDraftHeaderParserHC4 parser = NetscapeDraftHeaderParserHC4.DEFAULT;
         final CharArrayBuffer buffer;
         final ParserCursor cursor;
         if (header instanceof FormattedHeader) {

Copied: httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/PublicSuffixFilterHC4.java (from r1548964, httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/PublicSuffixFilter.java)
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/PublicSuffixFilterHC4.java?p2=httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/PublicSuffixFilterHC4.java&p1=httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/PublicSuffixFilter.java&r1=1548964&r2=1552414&rev=1552414&view=diff
==============================================================================
--- httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/PublicSuffixFilter.java (original)
+++ httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/PublicSuffixFilterHC4.java Thu Dec 19 20:20:02 2013
@@ -30,7 +30,7 @@ import java.util.Collection;
 import java.util.HashSet;
 import java.util.Set;
 
-import org.apache.http.client.utils.Punycode;
+import org.apache.http.client.utils.PunycodeHC4;
 import org.apache.http.cookie.Cookie;
 import org.apache.http.cookie.CookieAttributeHandler;
 import org.apache.http.cookie.CookieOrigin;
@@ -47,12 +47,12 @@ import org.apache.http.cookie.SetCookie;
  *
  * @since 4.0
  */
-public class PublicSuffixFilter implements CookieAttributeHandler {
+public class PublicSuffixFilterHC4 implements CookieAttributeHandler {
     private final CookieAttributeHandler wrapped;
     private Set<String> exceptions;
     private Set<String> suffixes;
 
-    public PublicSuffixFilter(final CookieAttributeHandler wrapped) {
+    public PublicSuffixFilterHC4(final CookieAttributeHandler wrapped) {
         this.wrapped = wrapped;
     }
 
@@ -98,7 +98,7 @@ public class PublicSuffixFilter implemen
         if (domain.startsWith(".")) {
             domain = domain.substring(1);
         }
-        domain = Punycode.toUnicode(domain);
+        domain = PunycodeHC4.toUnicode(domain);
 
         // An exception rule takes priority over any other matching rule.
         if (this.exceptions != null) {

Copied: httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/PublicSuffixListParserHC4.java (from r1548964, httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/PublicSuffixListParser.java)
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/PublicSuffixListParserHC4.java?p2=httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/PublicSuffixListParserHC4.java&p1=httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/PublicSuffixListParser.java&r1=1548964&r2=1552414&rev=1552414&view=diff
==============================================================================
--- httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/PublicSuffixListParser.java (original)
+++ httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/PublicSuffixListParserHC4.java Thu Dec 19 20:20:02 2013
@@ -36,16 +36,16 @@ import org.apache.http.annotation.Immuta
 
 /**
  * Parses the list from <a href="http://publicsuffix.org/">publicsuffix.org</a>
- * and configures a PublicSuffixFilter.
+ * and configures a PublicSuffixFilterHC4.
  *
  * @since 4.0
  */
 @Immutable
-public class PublicSuffixListParser {
+public class PublicSuffixListParserHC4 {
     private static final int MAX_LINE_LEN = 256;
-    private final PublicSuffixFilter filter;
+    private final PublicSuffixFilterHC4 filter;
 
-    PublicSuffixListParser(final PublicSuffixFilter filter) {
+    PublicSuffixListParserHC4(final PublicSuffixFilterHC4 filter) {
         this.filter = filter;
     }
 

Copied: httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/RFC2109DomainHandlerHC4.java (from r1548964, httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/RFC2109DomainHandler.java)
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/RFC2109DomainHandlerHC4.java?p2=httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/RFC2109DomainHandlerHC4.java&p1=httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/RFC2109DomainHandler.java&r1=1548964&r2=1552414&rev=1552414&view=diff
==============================================================================
--- httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/RFC2109DomainHandler.java (original)
+++ httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/RFC2109DomainHandlerHC4.java Thu Dec 19 20:20:02 2013
@@ -42,9 +42,9 @@ import org.apache.http.util.Args;
  * @since 4.0
  */
 @Immutable
-public class RFC2109DomainHandler implements CookieAttributeHandler {
+public class RFC2109DomainHandlerHC4 implements CookieAttributeHandler {
 
-    public RFC2109DomainHandler() {
+    public RFC2109DomainHandlerHC4() {
         super();
     }
 

Copied: httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/RFC2109SpecFactoryHC4.java (from r1548964, httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/RFC2109SpecFactory.java)
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/RFC2109SpecFactoryHC4.java?p2=httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/RFC2109SpecFactoryHC4.java&p1=httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/RFC2109SpecFactory.java&r1=1548964&r2=1552414&rev=1552414&view=diff
==============================================================================
--- httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/RFC2109SpecFactory.java (original)
+++ httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/RFC2109SpecFactoryHC4.java Thu Dec 19 20:20:02 2013
@@ -45,18 +45,18 @@ import org.apache.http.protocol.HttpCont
  */
 @Immutable
 @SuppressWarnings("deprecation")
-public class RFC2109SpecFactory implements CookieSpecFactory, CookieSpecProvider {
+public class RFC2109SpecFactoryHC4 implements CookieSpecFactory, CookieSpecProvider {
 
     private final String[] datepatterns;
     private final boolean oneHeader;
 
-    public RFC2109SpecFactory(final String[] datepatterns, final boolean oneHeader) {
+    public RFC2109SpecFactoryHC4(final String[] datepatterns, final boolean oneHeader) {
         super();
         this.datepatterns = datepatterns;
         this.oneHeader = oneHeader;
     }
 
-    public RFC2109SpecFactory() {
+    public RFC2109SpecFactoryHC4() {
         this(null, false);
     }
 
@@ -73,14 +73,14 @@ public class RFC2109SpecFactory implemen
             final boolean singleHeader = params.getBooleanParameter(
                     CookieSpecPNames.SINGLE_COOKIE_HEADER, false);
 
-            return new RFC2109Spec(patterns, singleHeader);
+            return new RFC2109SpecHC4(patterns, singleHeader);
         } else {
-            return new RFC2109Spec();
+            return new RFC2109SpecHC4();
         }
     }
 
     public CookieSpec create(final HttpContext context) {
-        return new RFC2109Spec(this.datepatterns, this.oneHeader);
+        return new RFC2109SpecHC4(this.datepatterns, this.oneHeader);
     }
 
 }

Copied: httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/RFC2109SpecHC4.java (from r1548964, httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/RFC2109Spec.java)
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/RFC2109SpecHC4.java?p2=httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/RFC2109SpecHC4.java&p1=httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/RFC2109Spec.java&r1=1548964&r2=1552414&rev=1552414&view=diff
==============================================================================
--- httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/RFC2109Spec.java (original)
+++ httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/RFC2109SpecHC4.java Thu Dec 19 20:20:02 2013
@@ -51,12 +51,12 @@ import org.apache.http.util.CharArrayBuf
  * This is an older version of the official HTTP state management specification
  * superseded by RFC 2965.
  *
- * @see RFC2965Spec
+ * @see RFC2965SpecHC4
  *
  * @since 4.0
  */
 @NotThreadSafe // superclass is @NotThreadSafe
-public class RFC2109Spec extends CookieSpecBase {
+public class RFC2109SpecHC4 extends CookieSpecBaseHC4 {
 
     private final static CookiePathComparator PATH_COMPARATOR = new CookiePathComparator();
 
@@ -70,7 +70,7 @@ public class RFC2109Spec extends CookieS
     private final boolean oneHeader;
 
     /** Default constructor */
-    public RFC2109Spec(final String[] datepatterns, final boolean oneHeader) {
+    public RFC2109SpecHC4(final String[] datepatterns, final boolean oneHeader) {
         super();
         if (datepatterns != null) {
             this.datepatterns = datepatterns.clone();
@@ -78,18 +78,18 @@ public class RFC2109Spec extends CookieS
             this.datepatterns = DATE_PATTERNS;
         }
         this.oneHeader = oneHeader;
-        registerAttribHandler(ClientCookie.VERSION_ATTR, new RFC2109VersionHandler());
-        registerAttribHandler(ClientCookie.PATH_ATTR, new BasicPathHandler());
-        registerAttribHandler(ClientCookie.DOMAIN_ATTR, new RFC2109DomainHandler());
-        registerAttribHandler(ClientCookie.MAX_AGE_ATTR, new BasicMaxAgeHandler());
-        registerAttribHandler(ClientCookie.SECURE_ATTR, new BasicSecureHandler());
-        registerAttribHandler(ClientCookie.COMMENT_ATTR, new BasicCommentHandler());
-        registerAttribHandler(ClientCookie.EXPIRES_ATTR, new BasicExpiresHandler(
+        registerAttribHandler(ClientCookie.VERSION_ATTR, new RFC2109VersionHandlerHC4());
+        registerAttribHandler(ClientCookie.PATH_ATTR, new BasicPathHandlerHC4());
+        registerAttribHandler(ClientCookie.DOMAIN_ATTR, new RFC2109DomainHandlerHC4());
+        registerAttribHandler(ClientCookie.MAX_AGE_ATTR, new BasicMaxAgeHandlerHC4());
+        registerAttribHandler(ClientCookie.SECURE_ATTR, new BasicSecureHandlerHC4());
+        registerAttribHandler(ClientCookie.COMMENT_ATTR, new BasicCommentHandlerHC4());
+        registerAttribHandler(ClientCookie.EXPIRES_ATTR, new BasicExpiresHandlerHC4(
                 this.datepatterns));
     }
 
     /** Default constructor */
-    public RFC2109Spec() {
+    public RFC2109SpecHC4() {
         this(null, false);
     }
 

Copied: httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/RFC2109VersionHandlerHC4.java (from r1548964, httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/RFC2109VersionHandler.java)
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/RFC2109VersionHandlerHC4.java?p2=httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/RFC2109VersionHandlerHC4.java&p1=httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/RFC2109VersionHandler.java&r1=1548964&r2=1552414&rev=1552414&view=diff
==============================================================================
--- httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/RFC2109VersionHandler.java (original)
+++ httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/RFC2109VersionHandlerHC4.java Thu Dec 19 20:20:02 2013
@@ -39,9 +39,9 @@ import org.apache.http.util.Args;
  * @since 4.0
  */
 @Immutable
-public class RFC2109VersionHandler extends AbstractCookieAttributeHandler {
+public class RFC2109VersionHandlerHC4 extends AbstractCookieAttributeHandlerHC4 {
 
-    public RFC2109VersionHandler() {
+    public RFC2109VersionHandlerHC4() {
         super();
     }
 

Copied: httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/RFC2965CommentUrlAttributeHandlerHC4.java (from r1548964, httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/RFC2965CommentUrlAttributeHandler.java)
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/RFC2965CommentUrlAttributeHandlerHC4.java?p2=httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/RFC2965CommentUrlAttributeHandlerHC4.java&p1=httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/RFC2965CommentUrlAttributeHandler.java&r1=1548964&r2=1552414&rev=1552414&view=diff
==============================================================================
--- httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/RFC2965CommentUrlAttributeHandler.java (original)
+++ httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/RFC2965CommentUrlAttributeHandlerHC4.java Thu Dec 19 20:20:02 2013
@@ -41,9 +41,9 @@ import org.apache.http.cookie.SetCookie2
  * @since 4.0
  */
 @Immutable
-public class RFC2965CommentUrlAttributeHandler implements CookieAttributeHandler {
+public class RFC2965CommentUrlAttributeHandlerHC4 implements CookieAttributeHandler {
 
-      public RFC2965CommentUrlAttributeHandler() {
+      public RFC2965CommentUrlAttributeHandlerHC4() {
           super();
       }
 

Copied: httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/RFC2965DiscardAttributeHandlerHC4.java (from r1548964, httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/RFC2965DiscardAttributeHandler.java)
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/RFC2965DiscardAttributeHandlerHC4.java?p2=httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/RFC2965DiscardAttributeHandlerHC4.java&p1=httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/RFC2965DiscardAttributeHandler.java&r1=1548964&r2=1552414&rev=1552414&view=diff
==============================================================================
--- httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/RFC2965DiscardAttributeHandler.java (original)
+++ httpcomponents/httpclient-android/branches/test-branch/src/main/java/org/apache/http/impl/cookie/RFC2965DiscardAttributeHandlerHC4.java Thu Dec 19 20:20:02 2013
@@ -41,9 +41,9 @@ import org.apache.http.cookie.SetCookie2
  * @since 4.0
  */
 @Immutable
-public class RFC2965DiscardAttributeHandler implements CookieAttributeHandler {
+public class RFC2965DiscardAttributeHandlerHC4 implements CookieAttributeHandler {
 
-      public RFC2965DiscardAttributeHandler() {
+      public RFC2965DiscardAttributeHandlerHC4() {
           super();
       }
 



Mime
View raw message