Class OptionsResource
java.lang.Object
info.mikethomas.fahservices.service.OptionsResource
REST Web Service.
- Version:
- $Id: $Id
- Author:
- Michael Thomas (mikepthomas@outlook.com)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity
<info.mikethomas.jfold.options.Options> Retrieves representation of an instance of info.mikethomas.fahservices.service.OptionsResource.org.springframework.http.ResponseEntity
<Exception> handleException.
-
Constructor Details
-
OptionsResource
public OptionsResource()
-
-
Method Details
-
getSlotOptions
@RequestMapping(value="/options", method=GET, produces={"application/json","application/xml","text/xml"}) @ResponseBody public org.springframework.http.ResponseEntity<info.mikethomas.jfold.options.Options> getSlotOptions() throws info.mikethomas.jfold.exceptions.OptionsExceptionRetrieves representation of an instance of info.mikethomas.fahservices.service.OptionsResource.- Returns:
- an instance of java.lang.String
- Throws:
info.mikethomas.jfold.exceptions.OptionsException
- if any.
-
handleException
@ExceptionHandler(info.mikethomas.jfold.exceptions.OptionsException.class) @ResponseStatus(INTERNAL_SERVER_ERROR) public org.springframework.http.ResponseEntity<Exception> handleException(Exception ex) handleException.
- Parameters:
ex
- aException
object- Returns:
- a
ResponseEntity
object
-