gov.nasa.pds.harvest.crawler.actions
Class CreateAccessUrlsAction
java.lang.Object
gov.nasa.jpl.oodt.cas.crawl.action.CrawlerAction
gov.nasa.pds.harvest.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
Fields inherited from class gov.nasa.jpl.oodt.cas.crawl.action.CrawlerAction |
LOG, phases |
Method Summary |
List<String> |
performAction(File product,
FileObject fileObject,
gov.nasa.jpl.oodt.cas.metadata.Metadata metadata)
Create access urls for the given file object. |
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. |
Methods inherited from class gov.nasa.jpl.oodt.cas.crawl.action.CrawlerAction |
getDescription, getId, getPhases, setDescription, setId, setPhases |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CreateAccessUrlsAction
public CreateAccessUrlsAction(List<String> baseUrls)
- Constructor.
- Parameters:
baseUrls
- A list of base urls.
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,
gov.nasa.jpl.oodt.cas.metadata.Metadata metadata)
- Create access urls for the given file object.
- Parameters:
product
- The file associated with the given file object.fileObject
- The file object.metadata
- The metadata associated with the product.
- Returns:
- a list of access urls.
Copyright © 2010-2011 Planetary Data System. All Rights Reserved.