Examples of ClientInvoker


Examples of org.jboss.resteasy.client.core.ClientInvoker

         providerFactory = ((ProviderFactoryDelegate) providerFactory).getDelegate();
      }

      for (Method method : clazz.getMethods())
      {
         ClientInvoker invoker = null;
         Set<String> httpMethods = IsHttpMethod.getHttpMethods(method);
         if (httpMethods == null || httpMethods.size() != 1)
         {
            throw new RuntimeException("You must use at least one, but no more than one http method annotation on: " + method.toString());
         }

         invoker = new ClientInvoker(baseUri, clazz, method, providerFactory, executor);
         ClientInvokerInterceptorFactory.applyDefaultInterceptors(invoker, providerFactory, clazz, method);
         invoker.setHttpMethod(httpMethods.iterator().next());
         methodMap.put(method, invoker);
      }

      Class<?>[] intfs = {clazz, ResteasyClientProxy.class};
View Full Code Here

Examples of org.jboss.resteasy.client.jaxrs.internal.proxy.ClientInvoker

            {
               URI uri = getURI(method, link, context);
               if (uri == null)
                  return null;

               return new ClientInvoker((ResteasyWebTarget)(context.getInvocation().getClient().target(uri)),
                       method.getDeclaringClass(),
                       method,
                       new ProxyConfig(Thread.currentThread().getContextClassLoader(), null, null)).invoke(args);
            }
         };
View Full Code Here

Examples of org.switchyard.component.resteasy.util.ClientInvoker

*/
public class OsgiMethodInvokerFactory implements MethodInvokerFactory {

    @Override
    public MethodInvoker createInvoker(String basePath, Class<?> resourceClass, Method method, RESTEasyBindingModel model) {
        ClientInvoker invoker = new ClientInvoker(basePath, resourceClass, method, model);
        ResteasyProviderFactory repFactory = invoker.getResteasyProviderFactory();
        for (Class<?> provider : RESTEasyProviders.PROVIDERS) {
            repFactory.registerProvider(provider);
        }
        return invoker;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.