Class SlotOptionsResource

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

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

    • SlotOptionsResource

      public SlotOptionsResource()
  • Method Details

    • getSlotOptions

      @RequestMapping(value="/slot-options/{slot}", method=GET, produces={"application/json","application/xml","text/xml"}) @ResponseBody public org.springframework.http.ResponseEntity<info.mikethomas.jfold.slot.SlotOptions> getSlotOptions(@PathVariable("slot") int slot) throws info.mikethomas.jfold.exceptions.SlotOptionsException
      Retrieves representation of an instance of info.mikethomas.fahservices.service.SlotOptionsResource.
      Parameters:
      slot - Slot number
      Returns:
      an instance of java.lang.String
      Throws:
      info.mikethomas.jfold.exceptions.SlotOptionsException
    • handleException

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

      handleException.

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