Package er.rest

Examples of er.rest.ERXNoOpRestDelegate


public class Client {
  public static void main(String[] args) throws HttpException, IOException {
    String baseURL = "http://localhost:8642/cgi-bin/WebObjects/RESTExample.woa/ra";
   
    ERXRestNameRegistry.registry().setExternalNameForInternalName("Company", "ClientCompany");
    IERXRestDelegate.Factory.setDefaultDelegate(new ERXNoOpRestDelegate());
    IERXRestDelegate.Factory.setDelegateForEntityNamed(new ClientCompanyRestDelegate(), "ClientCompany", ClientCompany.class);

    ERXRestClient client = new ERXRestClient(baseURL, new ERXRestContext());
    ClientCompany c = client.objectWithPath("Company/1.json");
    System.out.println("Client.main: single company = " + c);
View Full Code Here

TOP

Related Classes of er.rest.ERXNoOpRestDelegate

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.