gov.nasa.pds.harvest.crawler.actions
Class CreateAccessUrlsAction

java.lang.Object
  extended by gov.nasa.jpl.oodt.cas.crawl.action.CrawlerAction
      extended by 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

Field Summary
 
Fields inherited from class gov.nasa.jpl.oodt.cas.crawl.action.CrawlerAction
LOG, phases
 
Constructor Summary
CreateAccessUrlsAction(List<AccessUrl> accessUrls)
          Constructor.
 
Method Summary
 List<String> performAction(File product, FileObject fileObject)
          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.
 void setRegisterFileUrls(boolean registerFileUrls)
           
 
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
 

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)


Copyright © 2010-2013 Planetary Data System. All Rights Reserved.