Package nl.b3p.tailormap.api.controller
Class AppRestControllerAdvice
- java.lang.Object
-
- nl.b3p.tailormap.api.controller.AppRestControllerAdvice
-
@RestControllerAdvice(annotations=AppRestController.class) public class AppRestControllerAdvice extends Object
-
-
Constructor Summary
Constructors Constructor Description AppRestControllerAdvice(ApplicationRepository applicationRepository, GeoServiceRepository geoServiceRepository, ApplicationHelper applicationHelper, AuthorizationService authorizationService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.springframework.http.ResponseEntity<?>handleResponseStatusException(org.springframework.web.server.ResponseStatusException ex)protected voidinitBinder(org.springframework.web.bind.WebDataBinder binder)ApplicationpopulateApplication(ViewerResponse.KindEnum viewerKind, String viewerName, String base, String projection)AppTreeLayerNodepopulateAppTreeLayerNode(Application app, String appLayerId)GeoServicepopulateGeoService(AppTreeLayerNode appTreeLayerNode)GeoServiceLayerpopulateGeoServiceLayer(AppTreeLayerNode appTreeLayerNode, GeoService service)ViewerResponse.KindEnumpopulateViewerKind(javax.servlet.http.HttpServletRequest request)
-
-
-
Constructor Detail
-
AppRestControllerAdvice
public AppRestControllerAdvice(ApplicationRepository applicationRepository, GeoServiceRepository geoServiceRepository, ApplicationHelper applicationHelper, AuthorizationService authorizationService)
-
-
Method Detail
-
initBinder
@InitBinder protected void initBinder(org.springframework.web.bind.WebDataBinder binder)
-
handleResponseStatusException
@ExceptionHandler(org.springframework.web.server.ResponseStatusException.class) protected org.springframework.http.ResponseEntity<?> handleResponseStatusException(org.springframework.web.server.ResponseStatusException ex)
-
populateViewerKind
@ModelAttribute public ViewerResponse.KindEnum populateViewerKind(javax.servlet.http.HttpServletRequest request)
-
populateApplication
@ModelAttribute public Application populateApplication(@ModelAttribute ViewerResponse.KindEnum viewerKind, @PathVariable(required=false) String viewerName, @RequestParam(required=false) String base, @RequestParam(required=false) String projection)
-
populateAppTreeLayerNode
@ModelAttribute public AppTreeLayerNode populateAppTreeLayerNode(@ModelAttribute Application app, @PathVariable(required=false) String appLayerId)
-
populateGeoService
@ModelAttribute public GeoService populateGeoService(@ModelAttribute AppTreeLayerNode appTreeLayerNode)
-
populateGeoServiceLayer
@ModelAttribute public GeoServiceLayer populateGeoServiceLayer(@ModelAttribute AppTreeLayerNode appTreeLayerNode, @ModelAttribute GeoService service)
-
-