Class CreateAccessUrlsAction
- java.lang.Object
-
- gov.nasa.jpl.oodt.cas.crawl.action.CrawlerAction
-
- gov.nasa.pds.harvest.search.crawler.actions.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 Summary
Constructors Constructor Description CreateAccessUrlsAction(List<AccessUrl> accessUrls)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
performAction(File product, gov.nasa.jpl.oodt.cas.metadata.Metadata metadata)
Perform the action to create a set of access urls for the given product.List<String>
performAction(File product, FileObject fileObject)
Create access urls for the given file object.void
setRegisterFileUrls(boolean registerFileUrls)
-
-
-
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 classgov.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)
-
-