users@jersey.java.net

Re: [Jersey] Jersey for clients

From: Paulo Cordeiro <paulo_at_link3.com.br>
Date: Fri, 10 Oct 2008 12:40:48 -0300

Hi,

Thank you. I need access service

    @GET
    @Path("/list")
    @ProduceMime( { "application/json", "application/xml" })
    public DpReports getListOfReports() {....

and others similar and secure services.


Paulo Cordeiro
paulo_at_link3.com.br

Link3 Tecnologia Ltda
71 2102-6000



2008/10/9 Paul Sandoz <Paul.Sandoz_at_sun.com>

> Hi Paul,
>
> On Oct 9, 2008, at 7:04 PM, Paulo Cordeiro wrote:
>
>> I need consume Rest services in my web application.
>> Jersey has option in your API or the best option is use
>> Apache Httpclient?
>>
>>
> The Jersey Client API is very easy to use especially when you want to
> send/receive information using certain Java types just like on the
> server-side. I find it a lot easier to use this API, which is resource
> centric rather than the Apache HTTP client which is more focused on the
> request and response. However, i am biased :-)
>
> The Jersey Client API is used extensively for testing Jersey itself as well
> as the samples, which also show how to use the API.
>
> The Apache HTTP client has probably got a lot more features, such as around
> authentication. The Jersey client is currently lacking the filters to
> support common cases. But it is easy to add your own filter functionality.
>
> The Jersey client API leverages HttpURLConnecton so it is possible to
> configure the default settings for HttpURLConnecton to enable say SSL
> certificates etc.
>
> What type of functionality do you require to consume your web applicaton?
>
> Paul.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>
>