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

org.deegree.ogcwebservices.csw
Class CatalogueService

java.lang.Object
  extended by org.deegree.ogcwebservices.csw.CatalogueService
All Implemented Interfaces:
OGCWebService

public class CatalogueService
extends java.lang.Object
implements OGCWebService

The Catalogue Service class provides the foundation for an OGC catalogue service. The Catalogue Service class directly includes only the serviceTypeID attribute. In most cases, this attribute will not be directly visible to catalogue clients.

The catalog service is an implementation of the OpenGIS Catalogue Service Specification 2.0.

Version:
$Revision: 27361 $, $Date: 2010-10-18 20:38:36 +0200 (Mo, 18 Okt 2010) $
Author:
Torsten Friebe , Markus Schneider , last edited by: $Author: apoth $
See Also:
OGC Specification

Method Summary
static CatalogueService create(CatalogueConfiguration config)
          Creates a new CatalogService instance.
 java.lang.Object doService(OGCWebServiceRequest request)
          Method for event based request processing.
 OGCCapabilities getCapabilities()
          Returns the OGC-capabilities of the service.
 Discovery getDiscovery()
           
 Discovery getDiscovery(java.lang.String version)
           
 Manager getManager(java.lang.String version)
           
 java.lang.String getServiceTypeId()
          Returns the service type (CSW).
 java.lang.String getVersion()
           
 void releaseManager(java.lang.String version, Manager manager)
          This method can be used to release the manager back into the pool of managers.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static final CatalogueService create(CatalogueConfiguration config)
                                     throws OGCWebServiceException
Creates a new CatalogService instance.

Parameters:
config -
Returns:
new CatalogService instance.
Throws:
OGCWebServiceException

getCapabilities

public OGCCapabilities getCapabilities()
Returns the OGC-capabilities of the service.

Specified by:
getCapabilities in interface OGCWebService
Returns:
the OGC-capabilities of the service.
To do:
analyze incoming request! return only requested sections

getServiceTypeId

public java.lang.String getServiceTypeId()
Returns the service type (CSW).

Returns:
the service type (CSW).

getVersion

public java.lang.String getVersion()
Returns:
Version

doService

public java.lang.Object doService(OGCWebServiceRequest request)
                           throws OGCWebServiceException
Method for event based request processing.

Specified by:
doService in interface OGCWebService
Parameters:
request - request object containing the request
Returns:
an Object which may be one of the following
  • DescribeRecordResult
  • GetRecordResult
  • GetRecordByIdResult
  • TransactionResult
  • EchoRequest
  • OGCCapabilities
  • Throws:
    OGCWebServiceException
    To do:
    validation of requested version against accepted versions, return type

getDiscovery

public Discovery getDiscovery()
Returns:
Returns the discovery.

getDiscovery

public Discovery getDiscovery(java.lang.String version)
                       throws OGCWebServiceException
Returns:
Returns the discovery.
Throws:
OGCWebServiceException

releaseManager

public void releaseManager(java.lang.String version,
                           Manager manager)
This method can be used to release the manager back into the pool of managers. If either version or manager is null this method returns.

Parameters:
version - this manager is created for
manager - to be released.

getManager

public Manager getManager(java.lang.String version)
                   throws OGCWebServiceException
Parameters:
version - to get a manager for.
Returns:
the manager.
Throws:
OGCWebServiceException

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