Class CreateAccessUrlsAction

  • All Implemented Interfaces:
    gov.nasa.jpl.oodt.cas.commons.spring.SpringSetIdInjectionType

    public class CreateAccessUrlsAction
    extends gov.nasa.jpl.oodt.cas.crawl.action.CrawlerAction
    Class that creates access urls based on a given set of base urls.
    Author:
    mcayanan
    • Constructor Detail

      • CreateAccessUrlsAction

        public CreateAccessUrlsAction​(List<AccessUrl> accessUrls)
        Constructor.
        Parameters:
        accessUrls - A list of access urls.
    • Method Detail

      • performAction

        public boolean performAction​(File product,
                                     gov.nasa.jpl.oodt.cas.metadata.Metadata metadata)
                              throws gov.nasa.jpl.oodt.cas.crawl.structs.exceptions.CrawlerActionException
        Perform the action to create a set of access urls for the given product.
        Specified by:
        performAction in class gov.nasa.jpl.oodt.cas.crawl.action.CrawlerAction
        Parameters:
        product - A PDS product.
        metadata - The metadata associated with the product.
        Returns:
        true if the action was successful.
        Throws:
        gov.nasa.jpl.oodt.cas.crawl.structs.exceptions.CrawlerActionException
      • performAction

        public List<String> performAction​(File product,
                                          FileObject fileObject)
        Create access urls for the given file object.
        Parameters:
        product - The file associated with the given file object.
        fileObject - The file object.
        Returns:
        a list of access urls.
      • setRegisterFileUrls

        public void setRegisterFileUrls​(boolean registerFileUrls)