org.deegree.services.csw.profile
Class CommonCSWProfile

java.lang.Object
  extended by org.deegree.services.csw.profile.CommonCSWProfile
All Implemented Interfaces:
ServiceProfile

public class CommonCSWProfile
extends Object
implements ServiceProfile

TODO add class documentation here

Version:
$Revision: $, $Date: $
Author:
Lyn Goltz, last edited by: $Author: lyn $

Field Summary
protected static ImplementationMetadata<CSWConstants.CSWRequestType> IMPLEMENTATION_METADATA
           
 
Constructor Summary
CommonCSWProfile()
           
 
Method Summary
 Version checkVersion(Version version)
          Checks is the version is supported and must be handled as another version.
 String getAcceptFormat(GetCapabilities getCapabilitiesRequest)
           
 CapabilitiesHandler getCapabilitiesHandler(XMLStreamWriter writer, DeegreeServicesMetadataType mainControllerConf, DeegreeServiceControllerType mainConf, Set<CSWConstants.Sections> sections, ServiceIdentificationType identification, Version version, boolean isTransactionEnabled, boolean isEnabledInspireExtension, ServiceProviderType provider, URL extendedCapabilities)
          TODO
 QName[] getDefaultTypeNames()
           
 String getGetRecordByIdSchemaLocation(Version version)
           
 ImplementationMetadata<CSWConstants.CSWRequestType> getImplementationMetadata()
           
 URL getSchema(QName typeName)
           
 List<URL> getSchemaReferences(QName typeName)
           
 String[] getSupportedServiceNames()
           
 List<String> getSupportedVersions()
           
 boolean isStrict()
           
 boolean returnAsDC(URI outputSchema)
          Determine if the given outputSchema should be handled as DublinCore.
 boolean supportsOperation(CSWConstants.CSWRequestType type)
          Checks if the given CSWConstants.CSWRequestType is supported by this service
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IMPLEMENTATION_METADATA

protected static final ImplementationMetadata<CSWConstants.CSWRequestType> IMPLEMENTATION_METADATA
Constructor Detail

CommonCSWProfile

public CommonCSWProfile()
Method Detail

getSupportedVersions

public List<String> getSupportedVersions()
Specified by:
getSupportedVersions in interface ServiceProfile
Returns:
all versions supported of the service

getImplementationMetadata

public ImplementationMetadata<CSWConstants.CSWRequestType> getImplementationMetadata()
Specified by:
getImplementationMetadata in interface ServiceProfile
Returns:
the ImplementationMetadata instance of the service

getSupportedServiceNames

public String[] getSupportedServiceNames()
Specified by:
getSupportedServiceNames in interface ServiceProfile
Returns:
all service names supported of the service

getAcceptFormat

public String getAcceptFormat(GetCapabilities getCapabilitiesRequest)
                       throws OWSException
Specified by:
getAcceptFormat in interface ServiceProfile
Returns:
the format accepted of the service dependent of the GetCapabilities request, never null. If the format os not accepted a OWSException is thrown.
Throws:
OWSException - if the format is not accepted

getCapabilitiesHandler

public CapabilitiesHandler getCapabilitiesHandler(XMLStreamWriter writer,
                                                  DeegreeServicesMetadataType mainControllerConf,
                                                  DeegreeServiceControllerType mainConf,
                                                  Set<CSWConstants.Sections> sections,
                                                  ServiceIdentificationType identification,
                                                  Version version,
                                                  boolean isTransactionEnabled,
                                                  boolean isEnabledInspireExtension,
                                                  ServiceProviderType provider,
                                                  URL extendedCapabilities)
Description copied from interface: ServiceProfile
TODO

Specified by:
getCapabilitiesHandler in interface ServiceProfile
Returns:
an instance of a GetCapabilitiesHandler to hanlde the a GetCapabilities request

getDefaultTypeNames

public QName[] getDefaultTypeNames()
Specified by:
getDefaultTypeNames in interface ServiceProfile
Returns:
the defaultTypeNames supported for a DescribeRecord request

getSchema

public URL getSchema(QName typeName)
Specified by:
getSchema in interface ServiceProfile
Returns:
the URL of the schema assigned to the type name, null if no schema can be found

getSchemaReferences

public List<URL> getSchemaReferences(QName typeName)
Specified by:
getSchemaReferences in interface ServiceProfile
Parameters:
typeName - a list of schema references assigned to the type name, null if no schema reference can be found
Returns:

checkVersion

public Version checkVersion(Version version)
Description copied from interface: ServiceProfile
Checks is the version is supported and must be handled as another version. This can be required if two version should be handled equal.

Specified by:
checkVersion in interface ServiceProfile
Parameters:
version - the version to check
Returns:
the version to use instead (often the same as the given one)

supportsOperation

public boolean supportsOperation(CSWConstants.CSWRequestType type)
Description copied from interface: ServiceProfile
Checks if the given CSWConstants.CSWRequestType is supported by this service

Specified by:
supportsOperation in interface ServiceProfile
Returns:
true, if the request is supported, false otherwise

getGetRecordByIdSchemaLocation

public String getGetRecordByIdSchemaLocation(Version version)
Specified by:
getGetRecordByIdSchemaLocation in interface ServiceProfile
Returns:
the schemalocation for the a GetRecordById request

isStrict

public boolean isStrict()
Specified by:
isStrict in interface ServiceProfile
Returns:
true if the service handles unknown ids requestes by a GetRecordById strict, false otherwise

returnAsDC

public boolean returnAsDC(URI outputSchema)
                   throws MetadataStoreException
Description copied from interface: ServiceProfile
Determine if the given outputSchema should be handled as DublinCore.

Specified by:
returnAsDC in interface ServiceProfile
Parameters:
outputSchema - the outputsschema, can be null
Returns:
true, if dublinCore should be forced, false otherwise
Throws:
MetadataStoreException


Copyright © 2011. All Rights Reserved.