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: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Thu, 18 Jun 2009) $
 
- Author:
 
  - Andreas Poth , last edited by: $Author: mschneider $
 
 
 
 
| 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://www.deegree.org