Class WmtsResponseInterceptor
- java.lang.Object
-
- de.terrestris.shoguncore.util.interceptor.secure.WmtsResponseInterceptor
-
- All Implemented Interfaces:
WmtsResponseInterceptorInterface
public class WmtsResponseInterceptor extends Object implements WmtsResponseInterceptorInterface
- 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 WmtsResponseInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResponseinterceptGetCapabilities(MutableHttpServletRequest request, Response response)Intercepts the response in order to filter the capabilities document.ResponseinterceptGetFeatureInfo(MutableHttpServletRequest mutableRequest, Response response)ResponseinterceptGetTile(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 interfaceWmtsResponseInterceptorInterface- Parameters:
request- The requestresponse- The response to intercept
-
interceptGetTile
public Response interceptGetTile(MutableHttpServletRequest mutableRequest, Response response)
- Specified by:
interceptGetTilein interfaceWmtsResponseInterceptorInterface
-
interceptGetFeatureInfo
public Response interceptGetFeatureInfo(MutableHttpServletRequest mutableRequest, Response response)
- Specified by:
interceptGetFeatureInfoin interfaceWmtsResponseInterceptorInterface
-
-