Class ALcdCSWCommandDispatcherFactory

java.lang.Object
com.luciad.ogc.csw.server.ALcdCSWCommandDispatcherFactory
All Implemented Interfaces:
ILcdOGCCommandDispatcherFactory

public abstract class ALcdCSWCommandDispatcherFactory extends Object implements ILcdOGCCommandDispatcherFactory
Creates and configures an ALcdOGCCommandDispatcher for a CSW server. This implementation adds support for the following operations:
  • GetCapabilities
  • GetRecords
  • GetRecordByID
  • DescribeRecord
The dispatcher factory uses a capabilities provider to expose and implement the server capabilities.
Since:
2017.0
  • Constructor Details

    • ALcdCSWCommandDispatcherFactory

      public ALcdCSWCommandDispatcherFactory()
  • Method Details

    • createCommandDispatcher

      public ALcdOGCCommandDispatcher createCommandDispatcher(ILcdInitializationConfig aConfig) throws TLcdOGCServiceException
      Creates a CSW command dispatcher, using the given configuration information. This method also configures the dispatcher by registering the necessary request handlers.

      This method supports one configuration parameter called "csw.recordNamespaces", which is used to configure extra namespaces when encoding records to XML. An example value is the following:

      
         <init-param>
           <param-name>csw.recordNamespaces</param-name>
           <param-value>"(prefix1,http://namespace1.com),(prefix2,http://namespace2.com)</param-value>
        </init-param>
       
      Specified by:
      createCommandDispatcher in interface ILcdOGCCommandDispatcherFactory
      Parameters:
      aConfig - the initialization parameters from the servlet
      Returns:
      a CSW command dispatcher
      Throws:
      TLcdOGCServiceException - if the ALcdOGCCommandDispatcher cannot be created.
    • createCapabilitiesProvider

      public abstract ILcdCSWCapabilitiesProvider createCapabilitiesProvider(ILcdInitializationConfig aConfig) throws TLcdOGCServiceException
      Creates the class that is used to help the server expose its capabilities.
      Parameters:
      aConfig - the initialization parameters from the servlet
      Returns:
      a capabilities provider, never null
      Throws:
      TLcdOGCServiceException