cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject svn commit: r1389597 - in /cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/client: AbstractClient.java WebClient.java
Date Mon, 24 Sep 2012 21:22:54 GMT
Author: sergeyb
Date: Mon Sep 24 21:22:54 2012
New Revision: 1389597

URL: http://svn.apache.org/viewvc?rev=1389597&view=rev
Log:
Minor update to client constructors given abstract URI-based constructor still wraps it into
the state object, fixing a doc typo

Modified:
    cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/client/AbstractClient.java
    cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/client/WebClient.java

Modified: cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/client/AbstractClient.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/client/AbstractClient.java?rev=1389597&r1=1389596&r2=1389597&view=diff
==============================================================================
--- cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/client/AbstractClient.java
(original)
+++ cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/client/AbstractClient.java
Mon Sep 24 21:22:54 2012
@@ -103,14 +103,9 @@ public abstract class AbstractClient imp
     protected ClientConfiguration cfg = new ClientConfiguration();
     private ClientState state;
     
-    protected AbstractClient(URI baseURI) {
-        this.state = new LocalClientState(baseURI);
-    }
-    
     protected AbstractClient(ClientState initialState) {
         this.state = initialState;
     }
-    
     /**
      * {@inheritDoc}
      */

Modified: cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/client/WebClient.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/client/WebClient.java?rev=1389597&r1=1389596&r2=1389597&view=diff
==============================================================================
--- cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/client/WebClient.java (original)
+++ cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/client/WebClient.java Mon
Sep 24 21:22:54 2012
@@ -80,9 +80,8 @@ public class WebClient extends AbstractC
         this(URI.create(baseAddress));
     }
     
-    protected WebClient(URI baseAddress) {
-        super(baseAddress);
-        cfg.getInInterceptors().add(new ClientAsyncResponseInterceptor());
+    protected WebClient(URI baseURI) {
+        this(new LocalClientState(baseURI));
     }
     
     protected WebClient(ClientState state) {
@@ -384,7 +383,7 @@ public class WebClient extends AbstractC
     
     /**
      * Does HTTP Async POST invocation and returns Future.
-     * Shortcut for async().get(InvocationCallback)
+     * Shortcut for async().post(Entity, InvocationCallback)
      * @param callback invocation callback 
      * @return the future
      */



Mime
View raw message