Looks to me like it expects WebClient, not WebTarget:

    /**
     * Retieves ClientConfiguration
     * @param client proxy or http-centric Client
     * @return underlying ClientConfiguration instance 
     */
    public static ClientConfiguration getConfig(Object client) {
        if (client instanceof Client) {
            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-tp4674454p4674533.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Reply via email to