deegree 2.5 (2011/06/29 09:44 build-8-official)

org.deegree.ogcwebservices.csw
Class AbstractCSWRequest

java.lang.Object
  extended by org.deegree.ogcwebservices.AbstractOGCWebServiceRequest
      extended by org.deegree.ogcwebservices.csw.AbstractCSWRequest
All Implemented Interfaces:
java.io.Serializable, OGCWebServiceRequest
Direct Known Subclasses:
DescribeRecord, GetDomain, GetRecordById, GetRecords, GetRepositoryItem

public class AbstractCSWRequest
extends AbstractOGCWebServiceRequest

Abstract base class for requests to catalogue services (CSW).

Since:
2.0
Version:
2.0, $Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Do, 18 Jun 2009) $
Author:
Andreas Poth , Markus Schneider , last edited by: $Author: mschneider $
See Also:
Serialized Form

Constructor Summary
AbstractCSWRequest(java.lang.String version, java.lang.String id, java.util.Map<java.lang.String,java.lang.String> vendorSpecificParameter)
           
 
Method Summary
protected static java.util.Map<java.lang.String,java.net.URI> getNSMappings(java.lang.String nsString)
          Extracts the namespace-mappings from the given parameter as specified for the NAMESPACE-parameter in the KVP-encoding.
 java.lang.String getServiceName()
          returns 'CSW' as service name
 
Methods inherited from class org.deegree.ogcwebservices.AbstractOGCWebServiceRequest
getId, getParam, getParamAsInt, getParamValues, getRequestParameter, getRequiredParam, getVendorSpecificParameter, getVendorSpecificParameters, getVersion, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractCSWRequest

public AbstractCSWRequest(java.lang.String version,
                          java.lang.String id,
                          java.util.Map<java.lang.String,java.lang.String> vendorSpecificParameter)
Parameters:
version -
id -
vendorSpecificParameter -
Method Detail

getServiceName

public java.lang.String getServiceName()
returns 'CSW' as service name

Returns:
the name of the service that is targeted by the request

getNSMappings

protected static java.util.Map<java.lang.String,java.net.URI> getNSMappings(java.lang.String nsString)
                                                                     throws InvalidParameterValueException
Extracts the namespace-mappings from the given parameter as specified for the NAMESPACE-parameter in the KVP-encoding.

Please note that the expected syntax of the CSW NAMESPACE parameter differs from the NAMESPACE parameter used in the WFS specification.

Parameters:
nsString - contains a list of [prefix:]uri-entries, the entries of the list are separated by the ','-character
Returns:
keys are Strings (prefixes), values are URIs
Throws:
InvalidParameterValueException

deegree 2.5 (2011/06/29 09:44 build-8-official)

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