Class GeoServerInterceptorController<S extends GeoServerInterceptorService>

  • Type Parameters:
    S -

    @Controller
    public class GeoServerInterceptorController<S extends GeoServerInterceptorService>
    extends java.lang.Object
    Author:
    Daniel Koch, Kai Volland, terrestris GmbH & Co. KG
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String ERROR_MESSAGE  
      protected S service  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.springframework.http.ResponseEntity<?> interceptGeoServerRequest​(javax.servlet.http.HttpServletRequest request, java.util.Optional<java.lang.String> endpoint)  
      org.springframework.http.ResponseEntity<?> interceptWmtsRequest​(javax.servlet.http.HttpServletRequest request, java.lang.String service)  
      void setService​(S service)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GeoServerInterceptorController

        public GeoServerInterceptorController()
    • Method Detail

      • interceptWmtsRequest

        @GetMapping("/wmts.action/{service}/**")
        public org.springframework.http.ResponseEntity<?> interceptWmtsRequest​(javax.servlet.http.HttpServletRequest request,
                                                                               @PathVariable("service")
                                                                               java.lang.String service)
      • interceptGeoServerRequest

        @RequestMapping(value={"/geoserver.action","/geoserver.action/{endpoint}"},
                        method={GET,POST})
        public org.springframework.http.ResponseEntity<?> interceptGeoServerRequest​(javax.servlet.http.HttpServletRequest request,
                                                                                    @PathVariable(value="endpoint",required=false)
                                                                                    java.util.Optional<java.lang.String> endpoint)
        Parameters:
        request -
      • setService

        @Autowired
        public void setService​(S service)
        Parameters:
        service - the service to set