Package org.jrest4guice.sample.contact.resource

Examples of org.jrest4guice.sample.contact.resource.ContactResource


    System.out.println("==================================");
   

    //测试通过远程代理方式调用远程服务
    RemoteServiceDynamicProxy proxy = new RemoteServiceDynamicProxy();
    ContactResource resource = proxy
        .createRemoteService(ContactResource.class);

    page = resource.listContacts(1, 2);
    contacts = page.getResult();
    for (Contact ct : contacts)
      System.out.println(ct.getName());
  }
View Full Code Here

TOP

Related Classes of org.jrest4guice.sample.contact.resource.ContactResource

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.