Class WmsResponseInterceptor
- java.lang.Object
-
- de.terrestris.shoguncore.util.interceptor.secure.WmsResponseInterceptor
-
- All Implemented Interfaces:
WmsResponseInterceptorInterface
public class WmsResponseInterceptor extends Object implements WmsResponseInterceptorInterface
- Author:
- Daniel Koch, Andreas Schmitz, Johannes Weskamm, terrestris GmbH & Co. KG
-
-
Field Summary
Fields Modifier and Type Field Description protected LayerService<Layer,LayerDao<Layer>>layerService
-
Constructor Summary
Constructors Constructor Description WmsResponseInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResponseinterceptDescribeLayer(MutableHttpServletRequest mutableRequest, Response response)ResponseinterceptGetCapabilities(MutableHttpServletRequest request, Response response)Intercepts the response in order to filter the capabilities document.ResponseinterceptGetFeatureInfo(MutableHttpServletRequest mutableRequest, Response response)ResponseinterceptGetLegendGraphic(MutableHttpServletRequest mutableRequest, Response response)ResponseinterceptGetMap(MutableHttpServletRequest mutableRequest, Response response)ResponseinterceptGetStyles(MutableHttpServletRequest mutableRequest, Response response)
-
-
-
Field Detail
-
layerService
@Autowired @Qualifier("layerService") protected LayerService<Layer,LayerDao<Layer>> layerService
-
-
Method Detail
-
interceptGetCapabilities
public Response interceptGetCapabilities(MutableHttpServletRequest request, Response response)
Intercepts the response in order to filter the capabilities document. URLs will be replaced to match the geoserver.action interface and layers without permission will be removed from the document- Specified by:
interceptGetCapabilitiesin interfaceWmsResponseInterceptorInterface- Parameters:
request- The requestresponse- The response to intercept
-
interceptGetMap
public Response interceptGetMap(MutableHttpServletRequest mutableRequest, Response response)
- Specified by:
interceptGetMapin interfaceWmsResponseInterceptorInterface
-
interceptGetFeatureInfo
public Response interceptGetFeatureInfo(MutableHttpServletRequest mutableRequest, Response response)
- Specified by:
interceptGetFeatureInfoin interfaceWmsResponseInterceptorInterface
-
interceptDescribeLayer
public Response interceptDescribeLayer(MutableHttpServletRequest mutableRequest, Response response)
- Specified by:
interceptDescribeLayerin interfaceWmsResponseInterceptorInterface
-
interceptGetLegendGraphic
public Response interceptGetLegendGraphic(MutableHttpServletRequest mutableRequest, Response response)
- Specified by:
interceptGetLegendGraphicin interfaceWmsResponseInterceptorInterface
-
interceptGetStyles
public Response interceptGetStyles(MutableHttpServletRequest mutableRequest, Response response)
- Specified by:
interceptGetStylesin interfaceWmsResponseInterceptorInterface
-
-