public class BundleManager extends Object
Modifier and Type | Field and Description |
---|---|
static String |
BUNDLE_NAME_TOKEN |
static String |
LABEL_EXTENSION |
static String[] |
LABEL_EXTENSIONS_LIST |
Constructor and Description |
---|
BundleManager() |
Modifier and Type | Method and Description |
---|---|
static ArrayList<Target> |
buildBundleIgnoreList(URL url)
Build a list of bundle files to ignore.
|
static ArrayList<Target> |
buildCollectionIgnoreList(URL url,
URL bundleUrl)
Build a list of collection files to ignore.
|
static List<Target> |
findAllBundleFiles(URL url)
Find all bundle files.
|
static List<Target> |
findAllCollectionFiles(URL url)
Find all collection files.
|
static List<Target> |
findBundleWithLatestVersion(URL url)
Find bundle(s) with the latest version.
|
static List<Target> |
findCollectionWithLatestVersion(URL url)
Find collection(s) with the latest version.
|
static List<Target> |
findCollectionWithMatchingReference(URL url,
URL bundleUrl)
Find collection(s) with matching reference.
|
static ArrayList<Target> |
findOtherBundleFiles(URL url)
Find other bundle file(s).
|
static ArrayList<Target> |
findOtherCollectionFiles(URL url)
Find other collection file(s).
|
static ArrayList<Target> |
getIgnoreList()
Returns the list of files to ignore when crawling.
|
static Target |
getLatestBundle()
Returns the target containing the latest bundle (one with the largest version).
|
static String |
getLocation()
Returns the modified location.
|
static void |
makeException(URL url,
String location)
Make an exception for bundle that is not applicable.
|
public static final String BUNDLE_NAME_TOKEN
public static final String LABEL_EXTENSION
public static final String[] LABEL_EXTENSIONS_LIST
public static String getLocation()
public static Target getLatestBundle()
public static ArrayList<Target> getIgnoreList()
public static List<Target> findAllBundleFiles(URL url)
url
- the url of where to start looking for bundle files from.public static List<Target> findAllCollectionFiles(URL url)
url
- the url of where to start looking for collection files from.public static List<Target> findBundleWithLatestVersion(URL url)
url
- the url of where to start looking for files from.public static List<Target> findCollectionWithLatestVersion(URL url)
url
- the url of where to start looking for files from.public static List<Target> findCollectionWithMatchingReference(URL url, URL bundleUrl)
url
- the url of where to start looking for files from.public static ArrayList<Target> buildBundleIgnoreList(URL url)
url
- the url of where to start looking for files from.public static ArrayList<Target> buildCollectionIgnoreList(URL url, URL bundleUrl)
url
- the url of where to start looking for files from.public static ArrayList<Target> findOtherBundleFiles(URL url)
url
- the url of where to start looking for files from.public static ArrayList<Target> findOtherCollectionFiles(URL url)
url
- the url of where to start looking for files from.Copyright © 2021 Jet Propulsion Laboratory, California Institute of Technology. All rights reserved.