users@jersey.java.net

[Jersey] Re: jersey client 2

From: Pavel Bucek <pavel.bucek_at_oracle.com>
Date: Mon, 12 Sep 2016 14:05:00 +0200

Hi Tomaz,

what is the usecase? I don't see anything useful which would come from
registering HttpAuthenticationFeature twice, but maybe its just Mondays
lack of imagination..

To answer your question - no that is currently not possible. You'd need
to create separate client instance, if you need to have different
HttpAuthenticationFeature configuration.

Regards,
Pavel


On 12/09/16 10:39, Tomaz Majerhold wrote:
> Once I register HttpAuthenticationFeature then it can not be changed
> and I'm getting this message:
>
> 'org.glassfish.jersey.client.authentication.HttpAuthenticationFeature:
> Existing previous registration found for the type'
>
> Is there any way to achieve that you can register
> HttpAuthenticationFeature more then once.
>
> Regards, Tomaz
>
>