org.deegree.services.csw
Class AbstractCSWKVPAdapter

java.lang.Object
  extended by org.deegree.services.csw.AbstractCSWKVPAdapter
Direct Known Subclasses:
DescribeRecordKVPAdapter, GetRecordsKVPAdapter

public abstract class AbstractCSWKVPAdapter
extends java.lang.Object

abstract class for parsing a CSW kvp request it provides utilities

Version:
$Revision: $, $Date: $
Author:
Steffen Thomas, last edited by: $Author: thomas $

Constructor Summary
AbstractCSWKVPAdapter()
           
 
Method Summary
protected static java.util.Map<java.lang.String,java.lang.String> extractNamespaceBindings(java.util.Map<java.lang.String,java.lang.String> kvpUC)
          Extracts the namespace bindings from the NAMESPACE parameter.
protected static javax.xml.namespace.QName[] extractTypeNames(java.util.Map<java.lang.String,java.lang.String> kvpParam, java.util.Map<java.lang.String,java.lang.String> nsBindings)
          Extracts the qualified type names from the TYPENAME parameter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractCSWKVPAdapter

public AbstractCSWKVPAdapter()
Method Detail

extractTypeNames

protected static javax.xml.namespace.QName[] extractTypeNames(java.util.Map<java.lang.String,java.lang.String> kvpParam,
                                                              java.util.Map<java.lang.String,java.lang.String> nsBindings)
                                                       throws org.deegree.commons.utils.kvp.InvalidParameterValueException
Extracts the qualified type names from the TYPENAME parameter.

Parameters:
kvpParam - the parameters of the request, normalized
nsBindings - namespace bindings, may be null
Returns:
qualified type names or null if no TYPENAME parameter is present
Throws:
org.deegree.commons.utils.kvp.InvalidParameterValueException - if the value of the TYPENAME attribute contains a syntactical error or uses unbound prefices

extractNamespaceBindings

protected static java.util.Map<java.lang.String,java.lang.String> extractNamespaceBindings(java.util.Map<java.lang.String,java.lang.String> kvpUC)
                                                                                    throws org.deegree.commons.utils.kvp.InvalidParameterValueException
Extracts the namespace bindings from the NAMESPACE parameter.

Example:

The default namespace may also be bound (two variants are supported):

Parameters:
kvpUC - the parameters of the request, normalized
Returns:
mapping between prefices and namespaces (key: prefix, value: namespace), empty string as a key ('') is the binding of the default namespace, null is returned if no NAMESPACE parameter is present
Throws:
org.deegree.commons.utils.kvp.InvalidParameterValueException - if the value of the NAMESPACE attribute contains a syntactical error


Copyright © 2011. All Rights Reserved.