dev@jersey.java.net

Re: [Jersey] Proxy-based interface as in RESTEasy ?

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Mon, 28 Jun 2010 05:32:50 -0700

On Jun 27, 2010, at 4:27 AM, Juergen.Zimmermann_at_HS-Karlsruhe.de wrote:

> Are there any plans to provide a proxy-based (and easy to use)
> interface as
> in RESTEasy? Please see at
> http://docs.jboss.org/resteasy/docs/1.2.GA/userguide/html/RESTEasy_Client_Fr
> amework.html

There are plans to do something slightly different.

IMHO while the proxy-based interface approach has a nice element of
reuse it encourages a tight rpc-like coupling between the client and
server.

The approach that we are proposing working with Jan CC'ed, is a POJO
matching approach similar in style to the server-side. This enables of
reuse while also enabling the developer, if they so wish, to better
work with hypermedia.

For more details please see Jan's blogs:

   http://www.nordsc.com/blog/?p=439
   http://www.nordsc.com/blog/?p=484

and also see experimental support in Jersey at the maven location here:

   http://download.java.net/maven/2/com/sun/jersey/experimental/view-client/

with samples here:

   http://download.java.net/maven/2/com/sun/jersey/experimental/view-client/jersey-view-client-samples/atompub-simple-view-client-sample/

http://download.java.net/maven/2/com/sun/jersey/experimental/view-client/jersey-view-client-samples/hypermedia-action-sample/


We are looking for feedback on this approach and we plan to move this
from the experimental to the stable area by the September time frame.


BTW Jersey has a plug-able mechanism so that any developer can plug in
a "proxy" based approach. We call these "views" for want of a better
word :-) i can provide more details if you want to learn more.

Paul.


>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: dev-help_at_jersey.dev.java.net
>