deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

org.deegree.protocol.wfs
Class AbstractWFSRequestKVPAdapter

java.lang.Object
  extended by org.deegree.protocol.wfs.AbstractWFSRequestKVPAdapter
Direct Known Subclasses:
DescribeFeatureTypeKVPAdapter, GetFeatureKVPAdapter, GetFeatureWithLockKVPAdapter, GetGmlObjectKVPAdapter, LockFeatureKVPAdapter, TransactionKVPAdapter

public abstract class AbstractWFSRequestKVPAdapter
extends Object

Provides utility methods for parsing common constructs found in WFS KVP requests.

Version:
$Revision: $, $Date: $
Author:
Markus Schneider, last edited by: $Author: schneider $

Constructor Summary
AbstractWFSRequestKVPAdapter()
           
 
Method Summary
protected static void appendFirstKVP(StringBuffer sb, String key, String value)
           
protected static void appendKVP(StringBuffer sb, String key, String value)
           
protected static Map<String,String> extractNamespaceBindings(Map<String,String> kvpUC)
          Extracts the namespace bindings from the NAMESPACE parameter.
protected static QName[] extractTypeNames(Map<String,String> kvpUC, Map<String,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

AbstractWFSRequestKVPAdapter

public AbstractWFSRequestKVPAdapter()
Method Detail

extractTypeNames

protected static QName[] extractTypeNames(Map<String,String> kvpUC,
                                          Map<String,String> nsBindings)
                                   throws InvalidParameterValueException
Extracts the qualified type names from the TYPENAME parameter.

Parameters:
kvpUC - 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:
InvalidParameterValueException - if the value of the TYPENAME attribute contains a syntactical error or uses unbound prefices

extractNamespaceBindings

protected static Map<String,String> extractNamespaceBindings(Map<String,String> kvpUC)
                                                      throws 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:
InvalidParameterValueException - if the value of the NAMESPACE attribute contains a syntactical error

appendFirstKVP

protected static void appendFirstKVP(StringBuffer sb,
                                     String key,
                                     String value)

appendKVP

protected static void appendKVP(StringBuffer sb,
                                String key,
                                String value)

deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

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

]]>