wink-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rf...@apache.org
Subject svn commit: r1307544 - in /incubator/wink/trunk/wink-client-apache-httpclient/src/main/java/org/apache/wink/client: ApacheHttpClientConfig.java httpclient/ httpclient/ApacheHttpClientConfig.java
Date Fri, 30 Mar 2012 17:23:28 GMT
Author: rfeng
Date: Fri Mar 30 17:23:28 2012
New Revision: 1307544

URL: http://svn.apache.org/viewvc?rev=1307544&view=rev
Log:
Move to org.apache.wink.client.httpclient to avoid OSGi split packages against the wink-client

Added:
    incubator/wink/trunk/wink-client-apache-httpclient/src/main/java/org/apache/wink/client/httpclient/
    incubator/wink/trunk/wink-client-apache-httpclient/src/main/java/org/apache/wink/client/httpclient/ApacheHttpClientConfig.java
      - copied, changed from r1307529, incubator/wink/trunk/wink-client-apache-httpclient/src/main/java/org/apache/wink/client/ApacheHttpClientConfig.java
Modified:
    incubator/wink/trunk/wink-client-apache-httpclient/src/main/java/org/apache/wink/client/ApacheHttpClientConfig.java

Modified: incubator/wink/trunk/wink-client-apache-httpclient/src/main/java/org/apache/wink/client/ApacheHttpClientConfig.java
URL: http://svn.apache.org/viewvc/incubator/wink/trunk/wink-client-apache-httpclient/src/main/java/org/apache/wink/client/ApacheHttpClientConfig.java?rev=1307544&r1=1307543&r2=1307544&view=diff
==============================================================================
--- incubator/wink/trunk/wink-client-apache-httpclient/src/main/java/org/apache/wink/client/ApacheHttpClientConfig.java
(original)
+++ incubator/wink/trunk/wink-client-apache-httpclient/src/main/java/org/apache/wink/client/ApacheHttpClientConfig.java
Fri Mar 30 17:23:28 2012
@@ -42,30 +42,18 @@ import org.apache.wink.client.internal.h
  * </pre>
  * 
  * </p>
+ * Move to org.apache.wink.client.httpclient to avoid OSGi split package issues
+ * @deprecated
+ * 
  */
-public class ApacheHttpClientConfig extends ClientConfig {
-
-    private HttpClient client;
-    private int maxPooledConnections;
+@Deprecated
+public class ApacheHttpClientConfig extends org.apache.wink.client.httpclient.ApacheHttpClientConfig
{
 
     public ApacheHttpClientConfig() {
-        client = null;
+        super();
     }
 
     public ApacheHttpClientConfig(HttpClient client) {
-        this.client = client;
-    }
-
-    @Override
-    protected ConnectionHandler getConnectionHandler() {
-        return new ApacheHttpClientConnectionHandler(client);
-    }
-
-    public void setMaxPooledConnections(int maxPooledConnections) {
-        this.maxPooledConnections = maxPooledConnections;
-    }
-
-    public int getMaxPooledConnections() {
-        return maxPooledConnections;
+        super(client);
     }
 }

Copied: incubator/wink/trunk/wink-client-apache-httpclient/src/main/java/org/apache/wink/client/httpclient/ApacheHttpClientConfig.java
(from r1307529, incubator/wink/trunk/wink-client-apache-httpclient/src/main/java/org/apache/wink/client/ApacheHttpClientConfig.java)
URL: http://svn.apache.org/viewvc/incubator/wink/trunk/wink-client-apache-httpclient/src/main/java/org/apache/wink/client/httpclient/ApacheHttpClientConfig.java?p2=incubator/wink/trunk/wink-client-apache-httpclient/src/main/java/org/apache/wink/client/httpclient/ApacheHttpClientConfig.java&p1=incubator/wink/trunk/wink-client-apache-httpclient/src/main/java/org/apache/wink/client/ApacheHttpClientConfig.java&r1=1307529&r2=1307544&rev=1307544&view=diff
==============================================================================
--- incubator/wink/trunk/wink-client-apache-httpclient/src/main/java/org/apache/wink/client/ApacheHttpClientConfig.java
(original)
+++ incubator/wink/trunk/wink-client-apache-httpclient/src/main/java/org/apache/wink/client/httpclient/ApacheHttpClientConfig.java
Fri Mar 30 17:23:28 2012
@@ -18,9 +18,10 @@
  *  
  *******************************************************************************/
 
-package org.apache.wink.client;
+package org.apache.wink.client.httpclient;
 
 import org.apache.http.client.HttpClient;
+import org.apache.wink.client.ClientConfig;
 import org.apache.wink.client.handlers.ConnectionHandler;
 import org.apache.wink.client.internal.handlers.ApacheHttpClientConnectionHandler;
 
@@ -45,8 +46,8 @@ import org.apache.wink.client.internal.h
  */
 public class ApacheHttpClientConfig extends ClientConfig {
 
-    private HttpClient client;
-    private int maxPooledConnections;
+    protected HttpClient client;
+    protected int maxPooledConnections;
 
     public ApacheHttpClientConfig() {
         client = null;



Mime
View raw message