java.lang.Object
org.codice.ddf.spatial.ogc.csw.catalog.endpoint.Validator

public class Validator extends Object
Validator provides methods to validate Requests for CSW 2.0.2
  • Constructor Details

    • Validator

      public Validator()
  • Method Details

    • validateFullyQualifiedTypes

      public void validateFullyQualifiedTypes(List<QName> types) throws CswException
      Verifies that that if types are passed, then they are fully qualified
      Parameters:
      types - List of QNames representing types
      Throws:
      CswException
    • validateOutputSchema

      public void validateOutputSchema(String schema, TransformerManager schemaTransformerManager) throws CswException
      Throws:
      CswException
    • validateVersion

      public void validateVersion(String versions) throws CswException
      Throws:
      CswException
    • validateOutputFormat

      public void validateOutputFormat(String format, TransformerManager mimeTypeTransformerManager) throws CswException
      Throws:
      CswException
    • validateSchemaLanguage

      public void validateSchemaLanguage(String schemaLanguage) throws CswException
      Throws:
      CswException
    • validateTypeNameToNamespaceMappings

      public void validateTypeNameToNamespaceMappings(String typeNames, String namespaces, Map<String,String> namespacePrefixToUriMappings) throws CswException
      Validates TypeName to namspace uri mapping in query request.
      Parameters:
      typeNames - this can be a comma separated list of types which can be prefixed with prefixes. example csw:Record
      namespaces - the namespace parameter from the request example NAMESPACE=xmlns(csw=http://www.opengis.net/cat/csw/2.0.2)
      namespacePrefixToUriMappings - map of namespace prefixes to namespace uri example key=csw value=http://www.opengis.net/cat/csw/2.0.2
      Throws:
      CswException
    • setQueryFilterTransformerProvider

      public void setQueryFilterTransformerProvider(ddf.catalog.transform.QueryFilterTransformerProvider queryFilterTransformerHelper)