Package com.luciad.ogc.csw.server
Class ALcdCSWCapabilitiesProvider
java.lang.Object
com.luciad.ogc.csw.server.ALcdCSWCapabilitiesProvider
- All Implemented Interfaces:
ILcdCSWCapabilitiesProvider
public abstract class ALcdCSWCapabilitiesProvider
extends Object
implements ILcdCSWCapabilitiesProvider
Adds default values to ILcdCSWCapabilitiesProvider.
More specifically it adds:
- all supported versions (2.0.2 and 3.0)
- all supported properties for CSW and ISO records
- all supported filter capabilities, based on
TLcdOGCFilterEvaluator.getFilterCapabilities()
- default OpenSearch templates for all output record types
- Since:
- 2017.0
-
Constructor Summary
ConstructorDescriptionConfigures a default CSW server, supporting Dublin Core records and versions 2.0.2 and 3.0.0.ALcdCSWCapabilitiesProvider
(List<ILcdCSWProfile> aProfiles) Configures a CSW server with the given profiles. -
Method Summary
Modifier and TypeMethodDescriptiongetExtendedCapabilities
(ILcdRequest aRequest) Returns extended operations metadata capabilities, if any.getFilterCapabilities
(ILcdRequest aRequest) Returns the OGC filter capabilities supported by this handler.getInputRecordProperties
(ILcdRequest aRequest, TLcdCSWRecordType aInputFormat) Returns the names of the properties (e.g.getInputRecordTypes
(ILcdRequest aRequest) Returns a description of all data records that can be queried.getOpenSearchTemplates
(ILcdRequest aRequest) Creates a list of templates for OpenSearch queries.getOutputRecordProperties
(ILcdRequest aRequest, TLcdCSWRecordType aOutputFormat) Returns the names of the properties (e.g.getOutputRecordTypes
(ILcdRequest aRequest) Returns a description of all the output formats (e.g.Returns the CSW versions that will be advertised by the server.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.luciad.ogc.csw.server.ILcdCSWCapabilitiesProvider
createServiceIdentification, createServiceProvider, getQueryHandler
-
Constructor Details
-
ALcdCSWCapabilitiesProvider
public ALcdCSWCapabilitiesProvider()Configures a default CSW server, supporting Dublin Core records and versions 2.0.2 and 3.0.0. More specifically, it adds:- all supported versions (2.0.2 and 3.0)
- all supported properties for CSW (Dublin Core) records
- all supported filter capabilities, based on
TLcdOGCFilterEvaluator.getFilterCapabilities()
- default OpenSearch templates for all output record types
-
ALcdCSWCapabilitiesProvider
Configures a CSW server with the given profiles.- Parameters:
aProfiles
- the profiles to support- Since:
- 2017.1
-
-
Method Details
-
getSupportedVersions
Returns the CSW versions that will be advertised by the server. The first version of the returned list is the default one. This implementation returns the versions supported by default.- Specified by:
getSupportedVersions
in interfaceILcdCSWCapabilitiesProvider
- Returns:
- the default and fallback versions of the supported catalogue standard
-
getOpenSearchTemplates
Creates a list of templates for OpenSearch queries. This list is used to construct the OpenSearch description document exposed in the capabilities.By default this method returns a template for each supported
output format
, containing all supported parameters.Override this method to customize the various templates of the OpenSearch request.
- Specified by:
getOpenSearchTemplates
in interfaceILcdCSWCapabilitiesProvider
- Parameters:
aRequest
- the request triggering the call- Returns:
- A list of OpenSearch templates
-
getFilterCapabilities
Returns the OGC filter capabilities supported by this handler.- Specified by:
getFilterCapabilities
in interfaceILcdCSWCapabilitiesProvider
- Parameters:
aRequest
- the request triggering the call- Returns:
- the filter capabilities
- Since:
- 2017.1
-
getOutputRecordTypes
Returns a description of all the output formats (e.g. CSW Dublin Core, ISO Metadata, ATOM Feeds, ...) the query handler can use to construct the result of a given query. For 2.0.2 compliancy, this list should at least containTLcdCSWRecordType.CSW_202
. For 3.0.0 compliancy, this list should at least containTLcdCSWRecordType.CSW_300
andTLcdCSWRecordType.ATOM
.This implementation returns descriptors for CSW Dublin Core, ISO Metadata, and ATOM Feeds.
- Specified by:
getOutputRecordTypes
in interfaceILcdCSWCapabilitiesProvider
- Parameters:
aRequest
- the request triggering the call- Returns:
- the descriptors for all the output types the query handler can use to construct the result to a given query.
- Since:
- 2017.1
-
getInputRecordTypes
Returns a description of all data records that can be queried. For 2.0.2 compliancy, this list should at least containTLcdCSWRecordType.CSW_202
. For 3.0.0 compliancy, this list should at least containTLcdCSWRecordType.CSW_300
. SeeTLcdCSWQuery.getTypeNames()
for how to specify the input record type in a query. SeeILcdCSWCapabilitiesProvider.getInputRecordProperties(com.luciad.ogc.common.ILcdRequest, com.luciad.ogc.csw.record.TLcdCSWRecordType)
for the specific properties that are supported.This implementation returns descriptors for CSW Dublin Core and ISO Metadata.
- Specified by:
getInputRecordTypes
in interfaceILcdCSWCapabilitiesProvider
- Parameters:
aRequest
- the request triggering the call- Returns:
- the descriptors for all data records that can be queried.
- Since:
- 2017.1
-
getInputRecordProperties
Returns the names of the properties (e.g. dc:title, apiso:Creator, ...) this query handler can handle in record query filters. This information is used by the server when advertising capabilities. The key of the map is the name of the constraint to advertise (e.g. CoreQueryables).- Specified by:
getInputRecordProperties
in interfaceILcdCSWCapabilitiesProvider
- Parameters:
aRequest
- the request triggering the callaInputFormat
- the input format for which to return the properties- Returns:
- the queryable properties supported by this handler
- Since:
- 2017.1
-
getOutputRecordProperties
Returns the names of the properties (e.g. dc:title, apiso:Creator, ...) this query handler can include for the given record format when constructing a query result. This information is used by the server to validate queries. SeeTLcdCSWQuery.getElements()
for how to specify output properties in record queries.- Specified by:
getOutputRecordProperties
in interfaceILcdCSWCapabilitiesProvider
- Parameters:
aRequest
- the request triggering the callaOutputFormat
- the output format for which to return the properties- Returns:
- the returnable properties supported by this handler
- Since:
- 2017.1
-
getExtendedCapabilities
Description copied from interface:ILcdCSWCapabilitiesProvider
Returns extended operations metadata capabilities, if any. Individual software vendors and servers can use this element to provide metadata about any additional server abilities.- Specified by:
getExtendedCapabilities
in interfaceILcdCSWCapabilitiesProvider
- Returns:
- an Object describing additional server abilities, or null
- See Also:
-