Class InfoResource

java.lang.Object
info.mikethomas.fahservices.service.InfoResource

@RestController("info") public class InfoResource extends Object
REST Web Service.
Version:
$Id: $Id
Author:
Michael Thomas (mikepthomas@outlook.com)
  • Constructor Details

    • InfoResource

      public InfoResource()
  • Method Details

    • getInfo

      @RequestMapping(value="/info", method=GET, produces="application/json") @ResponseBody public org.springframework.http.ResponseEntity<List> getInfo() throws info.mikethomas.jfold.exceptions.InfoException
      Retrieves representation of an instance of info.mikethomas.fahservices.service.InfoResource.
      Returns:
      an instance of java.lang.String
      Throws:
      info.mikethomas.jfold.exceptions.InfoException - if any.
    • handleException

      @ExceptionHandler(info.mikethomas.jfold.exceptions.InfoException.class) @ResponseStatus(INTERNAL_SERVER_ERROR) public org.springframework.http.ResponseEntity<Exception> handleException(Exception ex)

      handleException.

      Parameters:
      ex - a Exception object
      Returns:
      a ResponseEntity object