org.deegree.services.csw.transaction
Class TransactionKVPAdapter

java.lang.Object
  extended by org.deegree.commons.xml.XMLAdapter
      extended by org.deegree.services.csw.AbstractCSWRequestXMLAdapter
          extended by org.deegree.services.csw.transaction.TransactionKVPAdapter

public class TransactionKVPAdapter
extends AbstractCSWRequestXMLAdapter

Adapter between KVP encoded Transaction requests and Transaction objects.

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

Field Summary
 
Fields inherited from class org.deegree.services.csw.AbstractCSWRequestXMLAdapter
SOAP_10, SOAP_10_PREFIX
 
Fields inherited from class org.deegree.commons.xml.XMLAdapter
DEFAULT_URL, nsContext, rootElement, XLN_NS
 
Constructor Summary
TransactionKVPAdapter()
           
 
Method Summary
static Transaction parse(java.util.Map<java.lang.String,java.lang.String> kvpParams)
          Parses a normalized KVP-map as a CSW Transaction request.
 
Methods inherited from class org.deegree.commons.xml.XMLAdapter
evaluateXPath, getElement, getElements, getNamespaceContext, getNode, getNodeAsBoolean, getNodeAsDouble, getNodeAsFloat, getNodeAsInt, getNodeAsQName, getNodeAsString, getNodeAsURL, getNodeAsVersion, getNodes, getNodesAsQNames, getNodesAsStrings, getRequiredElement, getRequiredElements, getRequiredNode, getRequiredNodeAsBoolean, getRequiredNodeAsDouble, getRequiredNodeAsFloat, getRequiredNodeAsInteger, getRequiredNodeAsQName, getRequiredNodeAsString, getRequiredNodeAsURL, getRequiredNodeAsVersion, getRequiredNodes, getRootElement, getSchemas, getSystemId, hasSchemas, load, load, load, load, load, load, maybeWriteElement, maybeWriteElementNS, parseBoolean, parseDouble, parseFloat, parseInt, parseQName, parseSimpleLink, parseURL, resolve, setRootElement, setSystemId, toString, writeElement, writeElement, writeElement, writeElement, writeElement, writeOptionalAttribute, writeOptionalElement, writeOptionalNSAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TransactionKVPAdapter

public TransactionKVPAdapter()
Method Detail

parse

public static Transaction parse(java.util.Map<java.lang.String,java.lang.String> kvpParams)
                         throws org.deegree.commons.utils.kvp.MissingParameterException,
                                org.deegree.commons.utils.kvp.InvalidParameterValueException
Parses a normalized KVP-map as a CSW Transaction request. Regarding to CSW specification OGC 07-006r1 there is no KVP support envisioned.

Supported versions:

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


Copyright © 2011. All Rights Reserved.