Package com.aquima.web.aaas
Class RestController
- java.lang.Object
-
- com.aquima.web.aaas.AbstractEndpoint
-
- com.aquima.web.aaas.RestController
-
@Controller public class RestController extends AbstractEndpoint
-
-
Field Summary
Fields Modifier and Type Field Description static String
PATH
-
Fields inherited from class com.aquima.web.aaas.AbstractEndpoint
authorizationManager
-
-
Constructor Summary
Constructors Constructor Description RestController(com.aquima.interactions.portal.IPortalEngine engine, IShortcutPathService shortcutPathService, BaasFlowStarter flowStarter, com.blueriq.component.api.security.IAuthorisationManager authorizationManager, com.blueriq.component.api.shortcut.IShortcutManager shortcutManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.web.servlet.View
handle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
org.springframework.http.ResponseEntity<RestErrorResponse>
handleErrorMessage(WebServiceCallException e)
org.springframework.http.ResponseEntity<String>
projectSwaggerFeed(String project, String version, String spec, javax.servlet.http.HttpServletRequest request)
String
shortcutSwaggerFeed(String shortcutName, String spec, javax.servlet.http.HttpServletRequest request)
-
Methods inherited from class com.aquima.web.aaas.AbstractEndpoint
createSession, getApplication, getSolution, handleWebserviceCallException, isAllowed, startFlow, validateRoles, validateRoles
-
-
-
-
Field Detail
-
PATH
public static final String PATH
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RestController
@Autowired public RestController(com.aquima.interactions.portal.IPortalEngine engine, IShortcutPathService shortcutPathService, BaasFlowStarter flowStarter, com.blueriq.component.api.security.IAuthorisationManager authorizationManager, com.blueriq.component.api.shortcut.IShortcutManager shortcutManager)
-
-
Method Detail
-
handle
@RequestMapping(value="/rest/**", params="!project") public org.springframework.web.servlet.View handle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
- Throws:
Exception
-
shortcutSwaggerFeed
@GetMapping(path="/rest/docs", params="shortcut", produces="application/json") @ResponseBody public String shortcutSwaggerFeed(@RequestParam("shortcut") String shortcutName, @RequestParam(name="spec",defaultValue="3") String spec, javax.servlet.http.HttpServletRequest request) throws Exception
- Throws:
Exception
-
projectSwaggerFeed
@GetMapping(path="/rest/docs", params="project", produces="application/json") @ResponseBody public org.springframework.http.ResponseEntity<String> projectSwaggerFeed(@RequestParam("project") String project, @RequestParam("version") String version, @RequestParam(name="spec",defaultValue="3") String spec, javax.servlet.http.HttpServletRequest request) throws com.fasterxml.jackson.core.JsonProcessingException
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
handleErrorMessage
@ResponseBody @ExceptionHandler(WebServiceCallException.class) public org.springframework.http.ResponseEntity<RestErrorResponse> handleErrorMessage(WebServiceCallException e)
-
-