deegree 2.3 (2010/04/09 10:10 build-4-official)

org.deegree.security.owsrequestvalidator
Class GeneralPolicyValidator

java.lang.Object
  extended by org.deegree.security.owsrequestvalidator.GeneralPolicyValidator

public class GeneralPolicyValidator
extends Object

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

Constructor Summary
GeneralPolicyValidator(Condition generalCondition)
           
 
Method Summary
 void validateGetContentLength(int contentLength)
          validates if the passed length of a request content doesn't exceeds the defined maximum length.
 void validateHeader(Map<String,Object> headerFields, User user)
           
 void validatePostContentLength(int contentLength)
          validates if the passed length of a request content doesn't exceeds the defined maximum length.
 void validateRequestMethod(String type)
          validates if the current request type (e.g.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeneralPolicyValidator

public GeneralPolicyValidator(Condition generalCondition)
Parameters:
generalCondition -
Method Detail

validateGetContentLength

public void validateGetContentLength(int contentLength)
                              throws InvalidParameterValueException
validates if the passed length of a request content doesn't exceeds the defined maximum length. If the OperationParameter indicates that the condition is coupled to specific user rights, these rights will be read from the rights management system

Parameters:
contentLength -
Throws:
InvalidParameterValueException

validatePostContentLength

public void validatePostContentLength(int contentLength)
                               throws InvalidParameterValueException
validates if the passed length of a request content doesn't exceeds the defined maximum length. If the OperationParameter indicates that the condition is coupled to specific user rights, these rights will be read from the rights management system

Parameters:
contentLength -
Throws:
InvalidParameterValueException

validateHeader

public void validateHeader(Map<String,Object> headerFields,
                           User user)
                    throws InvalidParameterValueException,
                           UnauthorizedException
Parameters:
headerFields -
user -
Throws:
InvalidParameterValueException
UnauthorizedException

validateRequestMethod

public void validateRequestMethod(String type)
                           throws InvalidParameterValueException
validates if the current request type (e.g. POST, GET ...) is granted to be performed

Parameters:
type -
Throws:
InvalidParameterValueException

deegree 2.3 (2010/04/09 10:10 build-4-official)

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