Package er.rest.routes

Examples of er.rest.routes.ERXRouteRequestHandler.routes()


    ERXRouteRequestHandler restHandler = new ERXRouteRequestHandler();
    restHandler.addRoute(new ERXRoute(TaskInfo.ENTITY_NAME, "/taskInfos", ERXRoute.Method.Post, TaskInfoController.class, "create"));
    restHandler.addRoute(new ERXRoute(TaskInfo.ENTITY_NAME, "/taskInfos/{taskInfo:TaskInfo}", ERXRoute.Method.Get, TaskInfoController.class, "show"));
    restHandler.addRoute(new ERXRoute(TaskInfo.ENTITY_NAME, "/taskInfos/{taskInfo:TaskInfo}/results", ERXRoute.Method.Get, TaskInfoController.class, "results"));
    registerRequestHandler(restHandler, ERXRouteRequestHandler.Key)
    NSLog.out.appendln(restHandler.routes());
  }
 
  /**
   * @return shared standard ExecutorService provided by {@link Executors#newCachedThreadPool()}
   */
 
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.