Yep, let me throw something together.

On Tue, Apr 21, 2015 at 12:08 PM, Romain Manni-Bucau <[email protected]>
wrote:

> interesting, I'm a bit out of time to do the whole test alone, can you
> provide us a small sample to let us dig further (github project would be
> awesome!)?
>
>
> Romain Manni-Bucau
> @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> <http://rmannibucau.wordpress.com> | Github <
> https://github.com/rmannibucau> |
> LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber
> <http://www.tomitribe.com>
>
> 2015-04-21 17:40 GMT+02:00 sgjava <[email protected]>:
>
> > OK, I added the source dependency for WebClient, so I could track down
> > what's
> > haoppening. client.target(url) returns
> > org.apache.cxf.jaxrs.client.spec.ClientImpl.WebTargetImpl. See my
> comments
> > below. client = ((WebTargetImpl)client).getWebClient() is returning null.
> > It's generally bad practice to reuse parameters and should be defined
> > final.
> >
> >     /**
> >      * Retrieves ClientConfiguration
> >      * @param client proxy or http-centric Client
> >      * @return underlying ClientConfiguration instance
> >      */
> >     public static ClientConfiguration getConfig(Object client) {
> >         if (client instanceof WebTargetImpl) { // <==== This is true
> >             client = ((WebTargetImpl)client).getWebClient(); // <====
> This
> > is null
> >         } else if (client instanceof InvocationBuilderImpl) {
> >             client = ((InvocationBuilderImpl)client).getWebClient();
> >         }
> >
> >         if (client instanceof Client) { // <===== This is returning false
> >             if (client instanceof WebClient) {
> >                 return ((AbstractClient)client).getConfiguration();
> >             } else if (client instanceof InvocationHandlerAware) {
> >                 Object handler =
> > ((InvocationHandlerAware)client).getInvocationHandler();
> >                 return ((AbstractClient)handler).getConfiguration();
> >             }
> >         }
> >         throw new IllegalArgumentException("Not a valid Client");
> >     }
> >
> >
> >
> > --
> > View this message in context:
> >
> http://tomee-openejb.979440.n4.nabble.com/JAX-RS-POJO-mapping-tp4674454p4674555.html
> > Sent from the TomEE Users mailing list archive at Nabble.com.
> >
>



-- 
Steven P. Goldsmith

Reply via email to