deegree 2.5 (2011/06/29 09:44 build-8-official)

org.deegree.security.owsrequestvalidator
Class OWSValidator

java.lang.Object
  extended by org.deegree.security.owsrequestvalidator.OWSValidator
Direct Known Subclasses:
CSWValidator, WFSValidator, WMSValidator

public abstract class OWSValidator
extends java.lang.Object

Version:
$Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Do, 18 Jun 2009) $
Author:
Andreas Poth , last edited by: $Author: mschneider $

Field Summary
protected  GetCapabilitiesRequestValidator getCapabilitiesValidator
           
protected  GetCapabilitiesResponseValidator getCapabilitiesValidatorR
           
protected  Policy policy
           
 
Constructor Summary
OWSValidator(Policy policy, java.lang.String proxyURL)
           
 
Method Summary
 Condition getGeneralCondtion()
          returns the general condition assigned to the encapsulated policy
 Policy getPolicy()
          returns the policy underlying a OWSValidator
abstract  void validateRequest(OGCWebServiceRequest request, User user)
          validates if the passed request itself and its content is valid against the conditions defined in the policies assigned to a OWSPolicyValidator
abstract  byte[] validateResponse(OGCWebServiceRequest request, byte[] response, java.lang.String mime, User user)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

policy

protected Policy policy

getCapabilitiesValidator

protected GetCapabilitiesRequestValidator getCapabilitiesValidator

getCapabilitiesValidatorR

protected GetCapabilitiesResponseValidator getCapabilitiesValidatorR
Constructor Detail

OWSValidator

public OWSValidator(Policy policy,
                    java.lang.String proxyURL)
Parameters:
policy -
proxyURL -
Method Detail

validateRequest

public abstract void validateRequest(OGCWebServiceRequest request,
                                     User user)
                              throws InvalidParameterValueException,
                                     UnauthorizedException
validates if the passed request itself and its content is valid against the conditions defined in the policies assigned to a OWSPolicyValidator

Parameters:
request -
user -
Throws:
InvalidParameterValueException
UnauthorizedException

validateResponse

public abstract byte[] validateResponse(OGCWebServiceRequest request,
                                        byte[] response,
                                        java.lang.String mime,
                                        User user)
                                 throws InvalidParameterValueException,
                                        UnauthorizedException
Parameters:
request -
response -
mime -
user -
Returns:
the new response array
Throws:
InvalidParameterValueException
UnauthorizedException

getGeneralCondtion

public Condition getGeneralCondtion()
returns the general condition assigned to the encapsulated policy

Returns:
the general condition assigned to the encapsulated policy

getPolicy

public Policy getPolicy()
returns the policy underlying a OWSValidator

Returns:
the policy underlying a OWSValidator

deegree 2.5 (2011/06/29 09:44 build-8-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org