users@jersey.java.net

[Jersey] Re: How to use Jersey client with proxy server?

From: Arul Dhesiaseelan <aruld_at_acm.org>
Date: Mon, 12 Aug 2013 10:21:02 -1000

You could use ApacheConnector which has Proxy support. Here is how you
configure it on the Client.

        ClientConfig cc = new ClientConfig();
        cc.property(ApacheClientProperties.PROXY_URI, "http://proxy");
        cc.property(ApacheClientProperties.PROXY_USERNAME, "user");
        cc.property(ApacheClientProperties.PROXY_PASSWORD, "pass");
        Client client = ClientBuilder.newClient(cc.connector(new
ApacheConnector(cc.getConfiguration())));



On Sun, Aug 11, 2013 at 9:24 PM, Zsolt Zsuffa <zsolt.zsuffa_at_gmail.com>wrote:

> I tried to find out how to configure Jersey client with a proxy server
> but what i found seems to be obsolate.
> Can you guys point me out how can i user the latest jersey version in
> an intranet where proxy server has to be used?
>
> --
>
> Thank you,
> Zsolt Zsuffa
>
> LinkedIn - Personal profile
> Twitter - Professional discussions
> Agile Renovation - From agony to business agility
> ProcessPuzzle - Content & Workflow Management Business Platform
> Open Source ProcessPuzzle - Passionate collaboration
>