org.deegree.security.owsrequestvalidator.wms
Class AbstractWMSRequestValidator
java.lang.Object
  
org.deegree.security.owsrequestvalidator.RequestValidator
      
org.deegree.security.owsrequestvalidator.wms.AbstractWMSRequestValidator
- Direct Known Subclasses: 
 - GetLegendGraphicRequestValidator, GetMapRequestValidator
 
abstract class AbstractWMSRequestValidator
- extends RequestValidator
 
- Version:
 
  - $Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Thu, 18 Jun 2009) $
 
- Author:
 
  - Andreas Poth , last edited by: $Author: mschneider $
 
 
 
 
| 
Method Summary | 
protected  void | 
validateFormat(Condition condition,
                             String format)
 
          checks if the passed format is valid against the formats defined in the policy. | 
protected  void | 
validateMaxHeight(Condition condition,
                                   int height)
 
          checks if the passed height is > 0 and if it's valid against the maxHeight defined in the
 policy. | 
protected  void | 
validateMaxWidth(Condition condition,
                                 int width)
 
          checks if the passed width is > 0 and if it's valid against the maxWidth defined in the
 policy. | 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
AbstractWMSRequestValidator
public AbstractWMSRequestValidator(Policy policy)
- Parameters:
 policy - 
validateFormat
protected void validateFormat(Condition condition,
                              String format)
                       throws InvalidParameterValueException
- checks if the passed format is valid against the formats defined in the policy. If
 user != null the valid
 formats will be read from the user/rights repository
- Parameters:
 condition - condition containing the definition of the valid formatformat - 
- Throws:
 InvalidParameterValueException
 
 
validateMaxWidth
protected void validateMaxWidth(Condition condition,
                                int width)
                         throws InvalidParameterValueException
- checks if the passed width is > 0 and if it's valid against the maxWidth defined in the
 policy. If user != null the valid
 width will be read from the user/rights repository
- Parameters:
 condition - condition containing the definition of the valid widthwidth - 
- Throws:
 InvalidParameterValueException
 
 
validateMaxHeight
protected void validateMaxHeight(Condition condition,
                                 int height)
                          throws InvalidParameterValueException
- checks if the passed height is > 0 and if it's valid against the maxHeight defined in the
 policy. If user != null the valid
 height will be read from the user/rights repository
- Parameters:
 condition - condition containing the definition of the valid heightheight - 
- Throws:
 InvalidParameterValueException
 
 
                an open source project founded by lat/lon, Bonn, Germany.
                    For more information visit: http://www.deegree.org