Class SRWCatalogServiceDriver

All Implemented Interfaces:
ICatalogServiceDriver, IDiscoveryServiceDriver

public class SRWCatalogServiceDriver extends AbstractCatalogServiceDriver
This class implements the CSW protocol.
Author:
Jorge Piera Llodra (piera_jor@gva.es)
  • Constructor Details

    • SRWCatalogServiceDriver

      public SRWCatalogServiceDriver()
  • Method Details

    • getCapabilities

      public DiscoveryServiceCapabilities getCapabilities(URI uri)
      Description copied from interface: IDiscoveryServiceDriver
      It try to discover the server capabilities.
      Parameters:
      uri - Server URI
      Returns:
      Node with the server answer.
    • getRecords

      public GetRecordsReply getRecords(URI uri, CatalogQuery query, int firstRecord)
      Description copied from interface: ICatalogServiceDriver
      It send a request with a query to retrieve the server records
      Parameters:
      uri - Server URI
      query - It contains the values to do the query (title="XXX",abstract="YYY",...)
      firstRecord - Number of the first record to retrieve
      Returns:
      RecordsAnswer Contains the records and additional info
    • getRecordXPath

      public String getRecordXPath()
      Returns:
      Returns the recordXPath.
    • setRecordXPath

      public void setRecordXPath(String recordXPath)
      Parameters:
      recordXPath - The recordXPath to set.
    • getResultSetTTL

      public String getResultSetTTL()
      Returns:
      Returns the resultSetTTL.
    • setResultSetTTL

      public void setResultSetTTL(String resultSetTTL)
      Parameters:
      resultSetTTL - The resultSetTTL to set.
    • getVersion

      public String getVersion()
      Returns:
      Returns the version.
    • setVersion

      public void setVersion(String version)
      Parameters:
      version - The version to set.
    • isProtocolSupported

      public boolean isProtocolSupported(URI uri)
      Description copied from interface: IDiscoveryServiceDriver
      It have to prove if the specified protocol is supported.
      Specified by:
      isProtocolSupported in interface IDiscoveryServiceDriver
      Overrides:
      isProtocolSupported in class AbstractDiscoveryServiceDriver
      Parameters:
      uri - Server URI
      Returns:
      true if is supported, false if it isn't supported
    • getServiceName

      public String getServiceName()
      Returns:
      the service name that will be showed in the user interface
    • getDefaultPort

      public int getDefaultPort()
      Specified by:
      getDefaultPort in interface IDiscoveryServiceDriver
      Overrides:
      getDefaultPort in class AbstractDiscoveryServiceDriver
      Returns:
      the dafault port for an specific service
    • getDefaultSchema

      public String getDefaultSchema()
      Specified by:
      getDefaultSchema in interface IDiscoveryServiceDriver
      Overrides:
      getDefaultSchema in class AbstractDiscoveryServiceDriver
      Returns:
      the dafault schema for an specific service