cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Julio Carlos Barrera Juez <juliocarlos.barr...@i2cat.net>
Subject Re: JAXRSClientFactory create method accepting basic authentication, base address, class and providers
Date Mon, 29 Jul 2013 10:31:10 GMT
Thank you Sergey. It worked!


On 29 July 2013 11:50, Sergey Beryozkin <sberyozkin@gmail.com> wrote:

> Hi
>
> On 29/07/13 09:24, Julio Carlos Barrera Juez wrote:
>
>> Hi!
>>
>> JAXRSClientFactory has a create method accepting basic authentication
>> parameters (http://cxf.apache.org/**javadoc/latest/org/apache/cxf/**
>> jaxrs/client/**JAXRSClientFactory.html#**create(java.lang.String<http://cxf.apache.org/javadoc/latest/org/apache/cxf/jaxrs/client/JAXRSClientFactory.html#create(java.lang.String>
>> ,
>> java.lang.Class, java.lang.String, java.lang.String, java.lang.String)).
>> And aI want to use the same parameters plus the providers list.
>>
>> How can I obtain a proxy client using all the parameters I need? (basic
>> authentication, base address, class and providers).
>>
>>  Please use JAXRSClientFactoryBean, as it is not possible to capture all
> the combinations with the utility JAXRSClientFactory.
> So you'd do
>
> JAXRSClientFactoryBean bean = new JAXRSClientFactoryBean();
> bean.setAddress(address);
> // set other properties
> bean.create(MyProxy.class)
>
> HTH, Sergey
>
>> Thank you!
>>
>>
>
> --
> Sergey Beryozkin
>
> Talend Community Coders
> http://coders.talend.com/
>
> Blog: http://sberyozkin.blogspot.com
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message