Class SimpleEndpointDescription

    • Constructor Detail

      • SimpleEndpointDescription

        public SimpleEndpointDescription​(int version,
                                         List<URI> capabilities,
                                         List<DataView> supportedDataViews,
                                         List<Layer> supportedLayers,
                                         List<ResourceInfo> resources,
                                         boolean pidCaseSensitive)
        Constructor.
        Parameters:
        version - version of this endpoint description
        capabilities - a list of capabilities supported by this endpoint
        supportedDataViews - a list of data views that are supported by this endpoint
        supportedLayers - a list of layers supported for Advanced Search by this endpoint or null
        resources - a static list of resource info records
        pidCaseSensitive - true if comparison of persistent identifiers should be performed case-sensitive, false otherwise
    • Method Detail

      • destroy

        public void destroy()
        Description copied from interface: EndpointDescription
        Destroy the resource info inventory. Use this method for any cleanup the resource info inventory needs to perform upon termination, i.e. closing of persistent database connections, etc.
      • getResourceList

        public List<ResourceInfo> getResourceList​(String pid)
                                           throws SRUException
        Description copied from interface: EndpointDescription
        Get a list of all resources sub-ordinate to a resource identified by a given persistent identifier.

        The implementation of this method must be thread-safe.

        Parameters:
        pid - the persistent identifier of the superior resource
        Returns:
        a list of all sub-ordinate ResourceInfo or null if not applicable
        Throws:
        SRUException - if an error occurred