Package org.springframework.remoting.httpinvoker

Examples of org.springframework.remoting.httpinvoker.HttpComponentsHttpInvokerRequestExecutor


public class HttpInvoker {
  @SuppressWarnings("unchecked")
  public static <T> T connect(String serviceUrl, Class<T> serviceInterface) {
      DefaultHttpClient httpClient = new DefaultHttpClient(cm);
      HttpComponentsHttpInvokerRequestExecutor httpExecutor = new HttpComponentsHttpInvokerRequestExecutor();
      httpExecutor.setHttpClient(httpClient);
     
      HttpInvokerProxyFactoryBean httpFactory = new HttpInvokerProxyFactoryBean();
      httpFactory.setHttpInvokerRequestExecutor(httpExecutor);
 
      httpFactory.setServiceUrl(serviceUrl);
View Full Code Here

TOP

Related Classes of org.springframework.remoting.httpinvoker.HttpComponentsHttpInvokerRequestExecutor

Copyright © 2018 www.massapicom. 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.