Esri Geoportal Server
1.0

com.esri.gpt.server.csw.provider.components
Class ValidationHelper

java.lang.Object
  extended by com.esri.gpt.server.csw.provider.components.ValidationHelper

public class ValidationHelper
extends Object

Provides utilities supporting request validation.


Constructor Summary
ValidationHelper()
          Default constructor
 
Method Summary
 String negotiateValue(ISupportedValues supported, String locator, String[] parsed, boolean required)
          Negotiates a requested parameter value.
 String validateValue(ISupportedValues supported, String locator, String[] parsed, boolean required)
          Validates a requested parameter value.
 String validateValue(String locator, String[] parsed, boolean required)
          Validates a requested parameter value.
 StringSet validateValues(ISupportedValues supported, String locator, String[] parsed, boolean required)
          Validates a collection of requested parameter values.
 StringSet validateValues(String locator, String[] parsed, boolean required)
          Populates a collection of requested parameter values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidationHelper

public ValidationHelper()
Default constructor

Method Detail

negotiateValue

public String negotiateValue(ISupportedValues supported,
                             String locator,
                             String[] parsed,
                             boolean required)
                      throws OwsException
Negotiates a requested parameter value.

Parameters:
supported - the supported values
locator - the OwsException locator
parsed - the list of parsed values
required - trueReturns:
the negotiated value
Throws:
OwsException - if validation fails

validateValue

public String validateValue(String locator,
                            String[] parsed,
                            boolean required)
                     throws OwsException
Validates a requested parameter value.

Parameters:
locator - the OwsException locator
parsed - the list of parsed values
required - trueReturns:
the valid value
Throws:
OwsException - if validation fails

validateValue

public String validateValue(ISupportedValues supported,
                            String locator,
                            String[] parsed,
                            boolean required)
                     throws OwsException
Validates a requested parameter value.

Parameters:
supported - the supported values
locator - the OwsException locator
parsed - the list of parsed values
required - trueReturns:
the valid value
Throws:
OwsException - if validation fails

validateValues

public StringSet validateValues(String locator,
                                String[] parsed,
                                boolean required)
                         throws OwsException
Populates a collection of requested parameter values.

Parameters:
locator - the OwsException locator
parsed - the parsed values
required - trueReturns:
the valid values
Throws:
OwsException - if validation fails

validateValues

public StringSet validateValues(ISupportedValues supported,
                                String locator,
                                String[] parsed,
                                boolean required)
                         throws OwsException
Validates a collection of requested parameter values.

Parameters:
supported - the supported values
locator - the OwsException locator
parsed - the parsed values
required - trueReturns:
the valid values
Throws:
OwsException - if validation fails

Esri Geoportal Server
1.0

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.