org.deegree.protocol.wfs.describefeaturetype
Class DescribeFeatureTypeKVPAdapter

java.lang.Object
  extended by org.deegree.protocol.wfs.AbstractWFSRequestKVPAdapter
      extended by org.deegree.protocol.wfs.describefeaturetype.DescribeFeatureTypeKVPAdapter

public class DescribeFeatureTypeKVPAdapter
extends AbstractWFSRequestKVPAdapter

Adapter between KVP DescribeFeatureType requests and DescribeFeatureType objects.

Supported versions:

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

Constructor Summary
DescribeFeatureTypeKVPAdapter()
           
 
Method Summary
static String export(DescribeFeatureType request, Version version)
          Exports the given DescribeFeatureType request as a KVP-encoded string (with encoded values).
static DescribeFeatureType parse(Map<String,String> kvpParams)
          Parses a normalized KVP-map as a WFS DescribeFeatureType request.
static DescribeFeatureType parse100(Map<String,String> kvpParams)
          Parses a normalized KVP-map as a WFS 1.0.0 DescribeFeatureType request.
static DescribeFeatureType parse110(Map<String,String> kvpParams)
          Parses a normalized KVP-map as a WFS 1.1.0 DescribeFeatureType request.
static DescribeFeatureType parse200(Map<String,String> kvpParams)
          Parses a normalized KVP-map as a WFS 2.0.0 DescribeFeatureType request.
 
Methods inherited from class org.deegree.protocol.wfs.AbstractWFSRequestKVPAdapter
appendFirstKVP, appendKVP, extractNamespaceBindings110, extractNamespaceBindings200, extractTypeNames
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DescribeFeatureTypeKVPAdapter

public DescribeFeatureTypeKVPAdapter()
Method Detail

parse

public static DescribeFeatureType parse(Map<String,String> kvpParams)
                                 throws MissingParameterException,
                                        InvalidParameterValueException
Parses a normalized KVP-map as a WFS DescribeFeatureType request.

Supported versions:

Parameters:
kvpParams - normalized KVP-map; keys must be uppercase, each key only has one associated value
Returns:
parsed DescribeFeatureType request
Throws:
MissingParameterException - if the request version is unsupported
InvalidParameterValueException - if a parameter contains a syntax error

parse100

public static DescribeFeatureType parse100(Map<String,String> kvpParams)
                                    throws InvalidParameterValueException
Parses a normalized KVP-map as a WFS 1.0.0 DescribeFeatureType request.

Parameters:
kvpParams - normalized KVP-map; keys must be uppercase, each key only has one associated value
Returns:
parsed DescribeFeatureType request
Throws:
InvalidParameterValueException - if a parameter contains a syntax error

parse110

public static DescribeFeatureType parse110(Map<String,String> kvpParams)
                                    throws InvalidParameterValueException
Parses a normalized KVP-map as a WFS 1.1.0 DescribeFeatureType request.

Parameters:
kvpParams - normalized KVP-map; keys must be uppercase, each key only has one associated value
Returns:
parsed DescribeFeatureType request
Throws:
InvalidParameterValueException - if a parameter contains a syntax error

parse200

public static DescribeFeatureType parse200(Map<String,String> kvpParams)
                                    throws InvalidParameterValueException
Parses a normalized KVP-map as a WFS 2.0.0 DescribeFeatureType request.

Parameters:
kvpParams - normalized KVP-map; keys must be uppercase, each key only has one associated value
Returns:
parsed DescribeFeatureType request
Throws:
InvalidParameterValueException - if a parameter contains a syntax error

export

public static String export(DescribeFeatureType request,
                            Version version)
Exports the given DescribeFeatureType request as a KVP-encoded string (with encoded values).

Parameters:
request - request to be exported
version - protocol version of the generated KVP
Returns:
KVP encoded request


Copyright © 2011. All Rights Reserved.