Package com.jverstry.DataModel

Examples of com.jverstry.DataModel.MyData


  @RequestMapping(value="/{time}", method = RequestMethod.GET)
  public @ResponseBody MyData getMyData(
      @PathVariable long time) {
   
    return new MyData(time, "REST GET Call !!!");
  }
View Full Code Here


    return md;
  }
 
  @RequestMapping(method = RequestMethod.POST)
  public @ResponseBody MyData postMyData() {
    return new MyData(
      System.currentTimeMillis(), "REST POST Call !!!");
  }
View Full Code Here

  @RequestMapping(value="/{time}", method = RequestMethod.DELETE)
  public @ResponseBody MyData deleteMyData(
      @PathVariable long time) {
   
    return new MyData(time, "REST DELETE Call !!!");
  }
View Full Code Here

      + "MyRemoteData/" + System.currentTimeMillis();
   
    MyRemoteData mrd = restTemplate.getForObject(
      remote, MyRemoteData.class);
   
    return new MyData(System.currentTimeMillis(), mrd.getData());
   
  }
View Full Code Here

  @RequestMapping(value="/{time}", method = RequestMethod.GET)
  public @ResponseBody MyData getMyData(
      @PathVariable long time) {
   
    return new MyData(time, "REST GET Call !!!");
  }
View Full Code Here

  @RequestMapping(method = RequestMethod.PUT)
  public @ResponseBody MyData putMyData(
      @RequestParam("time") long time,
      @RequestParam("message") String message) {
   
    return new MyData(time, message);
  }
View Full Code Here

    return new MyData(time, message);
  }
 
  @RequestMapping(method = RequestMethod.POST)
  public @ResponseBody MyData postMyData() {
    return new MyData(
      System.currentTimeMillis(), "REST POST Call !!!");
  }
View Full Code Here

  @RequestMapping(value="/{time}", method = RequestMethod.DELETE)
  public @ResponseBody MyData deleteMyData(
      @PathVariable long time) {
   
    return new MyData(time, "REST DELETE Call !!!");
  }
View Full Code Here

TOP

Related Classes of com.jverstry.DataModel.MyData

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.