org.deegree.protocol.wfs
Class AbstractWFSRequestKVPAdapter

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

public abstract class AbstractWFSRequestKVPAdapter
extends Object

Provides utility methods for parsing common constructs found in KVP-encoded WFS 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> extractNamespaceBindings110(Map<String,String> kvpUC)
          Extracts the namespace bindings from a WFS 1.1.0 NAMESPACE parameter.
protected static Map<String,String> extractNamespaceBindings200(String param)
          Extracts the namespace bindings from a WFS 2.0.0 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

extractNamespaceBindings110

protected static Map<String,String> extractNamespaceBindings110(Map<String,String> kvpUC)
                                                         throws InvalidParameterValueException
Extracts the namespace bindings from a WFS 1.1.0 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

extractNamespaceBindings200

protected static Map<String,String> extractNamespaceBindings200(String param)
                                                         throws InvalidParameterValueException
Extracts the namespace bindings from a WFS 2.0.0 NAMESPACE parameter.

Example:

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

Parameters:
param - 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, or null if no NAMESPACE parameter 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)


Copyright © 2011. All Rights Reserved.