Examples of HessianCAHProxyFactory


Examples of com.pccw.hessian.support.client.HessianCAHProxyFactory

 
  public static void execute2(){
        //String url = "http://127.0.0.1:8080/HessianServer/remoting/acrmapi";
    //parseAnnotations(PublicService.class);
      String url = "http://192.168.1.45:8080/CRMServer/remoting/acrmapi";
        HessianCAHProxyFactory proxyFactory = new HessianCAHProxyFactory();
        proxyFactory.setConnectTimeout(3000);
        proxyFactory.setReadTimeout(3000);
        proxyFactory.setLocalEnabled(true);
        proxyFactory.setHessian2Reply(false);
       // proxyFactory.setDebug(true);
        HessianCAHProxyFactory.setCookieSeterName("Set-Cookie");
        try {
           PublicService api=proxyFactory.create(PublicService.class, url,
               new DefaultCacheHandler(),
               new CRMAsynTaskExecuter<Object, Throwable>(),
               new CRMExceptionHandler(),null);
          // parseAnnotations(api.getClass());
          //Thread.sleep(1000);
View Full Code Here

Examples of com.pccw.hessian.support.client.HessianCAHProxyFactory

  }
 
  public static void execute0(){
        //String url = "http://127.0.0.1:8080/HessianServer/remoting/acrmapi";
      String url = "http://192.168.1.201:8080/CRMServer/remoting/acrmapi";
        HessianCAHProxyFactory proxyFactory = new HessianCAHProxyFactory();
        proxyFactory.setConnectTimeout(3000);
        proxyFactory.setReadTimeout(3000);
        proxyFactory.setHessian2Reply(false);
       // proxyFactory.setDebug(true);
        HessianCAHProxyFactory.setCookieSeterName("Set-Cookie");
        try {
          AcrmApi api=proxyFactory.create(AcrmApi.class, url,new CRMCacheHandler(),new CRMAsynTaskExecuter<Object, Throwable>(),null,null);
          //api.login("guxuede", "123",new CRMTaskListener());
          //Thread.sleep(1000);
          api.login("guxuede", "123");
          System.out.println(GxdInputStream.getAccumulatTotalLength());
          api.getContacts(new CRMDefaultTaskListener<List<String>,Throwable>(){
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.