Return-Path: X-Original-To: apmail-cxf-commits-archive@www.apache.org Delivered-To: apmail-cxf-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 018DF10A1C for ; Fri, 22 Nov 2013 13:48:50 +0000 (UTC) Received: (qmail 16830 invoked by uid 500); 22 Nov 2013 13:48:46 -0000 Delivered-To: apmail-cxf-commits-archive@cxf.apache.org Received: (qmail 16690 invoked by uid 500); 22 Nov 2013 13:48:42 -0000 Mailing-List: contact commits-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list commits@cxf.apache.org Received: (qmail 16677 invoked by uid 99); 22 Nov 2013 13:48:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Nov 2013 13:48:41 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Nov 2013 13:48:37 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 19F6823888E7 for ; Fri, 22 Nov 2013 13:48:17 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r887691 - in /websites/production/cxf/content: cache/docs.pageCache docs/jax-rs-basics.html docs/jax-rs-client-api.html Date: Fri, 22 Nov 2013 13:48:16 -0000 To: commits@cxf.apache.org From: buildbot@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20131122134817.19F6823888E7@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: buildbot Date: Fri Nov 22 13:48:16 2013 New Revision: 887691 Log: Production update by buildbot for cxf Modified: websites/production/cxf/content/cache/docs.pageCache websites/production/cxf/content/docs/jax-rs-basics.html websites/production/cxf/content/docs/jax-rs-client-api.html Modified: websites/production/cxf/content/cache/docs.pageCache ============================================================================== Binary files - no diff available. Modified: websites/production/cxf/content/docs/jax-rs-basics.html ============================================================================== --- websites/production/cxf/content/docs/jax-rs-basics.html (original) +++ websites/production/cxf/content/docs/jax-rs-basics.html Fri Nov 22 13:48:16 2013 @@ -191,7 +191,11 @@ Apache CXF -- JAX-RS Basics

Typically, the resource method accepting AsyncResponse will either store it and start a new thread to finish the request, the method will return and the invocation will be suspended, then eventually another thread (either the one which initiated an internal job or some other thread) will resume the suspended call. Note in this case the invocation will be suspended indefinitely until it is resumed.

-

Another approach is to have AsyncResponse suspended for a limited period of time only and also register a TimeoutHandler. The latter will be invoked when the invocation is resumed by the container after the timeout has expired and the handler will either complete the invocation or suspend it again till it is ready to finish it.

+

Another approach is to have AsyncResponse suspended for a limited period of time only and also register a TimeoutHandler. The latter will be invoked when the invocation is resumed by the container after the timeout has expired and the handler will either complete the invocation or suspend it again till it is ready to finish it.

+ +

CompletionCallback can be registered with AsyncResponse to receive the notifications when the async response has been sent back.

+ +

ConnectionCallback is not currently supported.

This feature can help developers write very sophisticated asynchronous applications.

Modified: websites/production/cxf/content/docs/jax-rs-client-api.html ============================================================================== --- websites/production/cxf/content/docs/jax-rs-client-api.html (original) +++ websites/production/cxf/content/docs/jax-rs-client-api.html Fri Nov 22 13:48:16 2013 @@ -133,19 +133,45 @@ Apache CXF -- JAX-RS Client API +

Maven Dependency

+ +

<dependency>
+ <groupId>org.apache.cxf</groupId>
+ <artifactId>cxf-rt-rs-client</artifactId>
+ <version>3.0.0-milestone1</version>
+</dependency>

+
+ +
+ +

JAX-RS 2.0 Client API

-

To be supported

+

CXF 3.0.0 implements JAX-RS 2.0 Client API. Internally it is implemented in terms of CXF specific WebClient.

-

JAX-RS 2.0 and CXF specific API

+

Overview

-

CXF proxy and WebClient client code has been retrofitted to support all the new JAX-RS 2.0 client constructs except for the client API itself.
-Specifically, JAX-RS 2.0 client filters, reader and writer interceptors, new exception classes and Response API all can be used in scope of working with proxy or WebClient API.

+

JAX-RS 2.0 and CXF specific API

-

Additionally, WebClient supports JAX-RS 2.0 AsyncInvoker interface and offers few shortcuts, please see more about it below.

+

CXF proxy and WebClient client code has been retrofitted to support JAX-RS 2.0 client filters, reader and writer interceptors, new exception classes and Response API.

-

Users can expect WebClient API maintained in the next CXF releases as it offers a light-weight fluent API alternative.

+

WebClient offers shortcuts to JAX-RS 2.0 AsyncInvoker and SyncInvoker interfaces.

+ +

WebClient.getConfig(Object client) supports JAX-RS 2.0 WebTarget and Invocation.Builder for 2.0 clients to be able to get to the lower-level CXF configuration and set up the properties such as 'receiveTimeout', etc.

Proxy-based API

@@ -396,11 +422,13 @@ Book book = WebClient.create("http://boo

Asynchronous invocations

-

Starting from CXF 2.7.0

+

WebClient has several methods accepting JAX-RS 2.0 InvocationCallback and returning Future. Alternatively, users can also use WebClient.async() shortcut to work with a standard AsyncInvoker.

Working with explicit collections

-

Example :

+

WebClient supports GenericEntity and JAX-RS 2.0 GenericType directly and via JAX-RS 2.0 SyncInvoker and AsyncInvoker to make it easier to work with the explicit collections.

+ +

WebClient also has few collection-aware methods, example: