public class FileLookup extends Object
| Constructor and Description |
|---|
FileLookup() |
| Modifier and Type | Method and Description |
|---|---|
static File |
getFirstExisting(String type,
String locale,
String component,
String clientPath,
String filename,
String templateDir,
boolean enableCache)
Return the first existing file in the ordered search paths.
|
static File |
getFirstExisting(String type,
String locale,
String component,
String orgFilePath,
String clientPath,
String filename,
String templateDir,
boolean enableCache)
Returns the first existing file in the ordered search paths.
|
static String |
getFirstExistingRemote(String server,
String type,
String locale,
String filename)
Returns the first existing url found on the remote server.
|
static File[] |
getOrderedPaths(String type,
String locale,
String component,
String orgPath,
String clientPath,
String filename)
Returns all possible paths for the specified file in an ordered array.
|
public static File[] getOrderedPaths(String type, String locale, String component, String orgPath, String clientPath, String filename) throws FileLookupException
type - The base filepath to begin the search. If null, "default"
is the start of the filepath.locale - The locale for the file of interest.component - The component part of the filepath, if any.orgPath - The organization part of the filepath, if any.clientPath - The client type for that part of the filepathfilename - The filename of interestFile[] of ordered search paths.FileLookupExceptionpublic static File getFirstExisting(String type, String locale, String component, String clientPath, String filename, String templateDir, boolean enableCache) throws FileLookupException
type - An arbitrary profile-stored stringlocale - The locale for the file of interest.component - The component part of the filepath, if any.clientPath - The client type for that part of the filepathfilename - The filename of interesttemplateDir - enableCache - FileLookupExceptionpublic static File getFirstExisting(String type, String locale, String component, String orgFilePath, String clientPath, String filename, String templateDir, boolean enableCache) throws FileLookupException
type - The base filepath to begin the search.locale - The locale for the file of interest.component - The component part of the filepath, if any.clientPath - The client type for that part of the filepath.orgFilePath - The organization part of the filepath.filename - The filename of interesttemplateDir - The base template filepath to prepend.enableCache - True if the File object is to be cached.FileLookupExceptionpublic static String getFirstExistingRemote(String server, String type, String locale, String filename) throws FileLookupException
server - Server where document is locatedtype - The base filepath to begin the search.locale - The locale for the file of interest.filename - The filename of interest.FileLookupExceptionCopyright © 2010–2023 Open Identity Platform Community. All rights reserved.