org.deegree.security.owsrequestvalidator
Class ResponseValidator
java.lang.Object
org.deegree.security.owsrequestvalidator.ResponseValidator
- Direct Known Subclasses:
- AbstractCSWResponseValidator, GetCapabilitiesResponseValidator, GetFeatureInfoResponseValidator, GetFeatureResponseValidator, GetLegendGraphicResponseValidator, GetMapResponseValidator, GetRecordsResponseValidator, GetRepositoryItemResponseValidator
public abstract class ResponseValidator
- extends Object
- Since:
- 1.1
- Version:
- 1.1, $Revision: 6709 $, $Date: 2007-04-27 15:07:54 +0200 (Fr, 27 Apr 2007) $
- Author:
- Andreas Poth , last edited by: $Author: apoth $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UNKNOWNMIMETYPE
protected static final String UNKNOWNMIMETYPE
policy
protected Policy policy
gpv
protected GeneralPolicyValidator gpv
ResponseValidator
public ResponseValidator(Policy policy)
- Parameters:
policy
-
getPolicy
public Policy getPolicy()
- Returns:
- Returns the policy.
setPolicy
public void setPolicy(Policy policy)
- Parameters:
policy
- The policy to set.
validateResponse
public abstract byte[] validateResponse(String service,
byte[] response,
String mime,
User user)
throws InvalidParameterValueException,
UnauthorizedException
- validates if the passed response itself and its content is valid against the conditions
defined in the policies assigned to a OWSPolicyValidator
- Parameters:
service
- service which produced the response (WMS, WFS ...)response
- mime
- mime-type of the responseuser
-
- Throws:
InvalidParameterValueException
UnauthorizedException
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://deegree.sourceforge.net