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 java.lang.Object
- Since:
- 1.1
- Version:
- 1.1, $Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Do, 18 Jun 2009) $
- Author:
- Andreas Poth , last edited by: $Author: mschneider $
Method Summary |
Policy |
getPolicy()
|
void |
setPolicy(Policy policy)
|
abstract byte[] |
validateResponse(java.lang.String service,
byte[] response,
java.lang.String mime,
User user)
validates if the passed response itself and its content is valid against the conditions
defined in the policies assigned to a OWSPolicyValidator |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UNKNOWNMIMETYPE
protected static final java.lang.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(java.lang.String service,
byte[] response,
java.lang.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://www.deegree.org