public class DefaultFileManager extends Object implements FileManager
FileManager| Modifier and Type | Field and Description | 
|---|---|
| protected static Map<String,Revision> | files | 
| protected boolean | reloadingConfigs | 
| Constructor and Description | 
|---|
| DefaultFileManager() | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | fileNeedsReloading(String fileName)Checks if given file changed and must be reloaded | 
| boolean | fileNeedsReloading(URL fileUrl)Checks if file represented by provided URL changed and must be reloaded | 
| Collection<? extends URL> | getAllPhysicalUrls(URL url) | 
| boolean | internal()User's implementation should return false as then it will be taken in first place | 
| protected boolean | isJarURL(URL fileUrl)Check if given URL is matching Jar pattern for different servers | 
| InputStream | loadFile(URL fileUrl)Loads opens the named file and returns the InputStream | 
| void | monitorFile(URL fileUrl)Adds file to list of monitored files | 
| URL | normalizeToFileProtocol(URL url)Convert URLs to URLs with "file" protocol | 
| void | setReloadingConfigs(boolean reloadingConfigs)Enables configs reloading when config file changed | 
| boolean | support()Indicate if given implementation supports current OS File System | 
public void setReloadingConfigs(boolean reloadingConfigs)
FileManagersetReloadingConfigs in interface FileManagerreloadingConfigs - StrutsConstants.STRUTS_CONFIGURATION_XML_RELOADpublic boolean fileNeedsReloading(URL fileUrl)
FileManagerfileNeedsReloading in interface FileManagerfileUrl - url to a filepublic boolean fileNeedsReloading(String fileName)
FileManagerfileNeedsReloading in interface FileManagerfileName - to checkpublic InputStream loadFile(URL fileUrl)
FileManagerloadFile in interface FileManagerfileUrl - - the URL of the file to openpublic void monitorFile(URL fileUrl)
FileManagermonitorFile in interface FileManagerfileUrl - URL to file to be monitoredprotected boolean isJarURL(URL fileUrl)
fileUrl - jar file URLpublic URL normalizeToFileProtocol(URL url)
FileManagernormalizeToFileProtocol in interface FileManagerurl - URL to convert to a jar urlpublic boolean support()
FileManagersupport in interface FileManagerpublic boolean internal()
FileManagerinternal in interface FileManagerpublic Collection<? extends URL> getAllPhysicalUrls(URL url) throws IOException
getAllPhysicalUrls in interface FileManagerIOExceptionCopyright © 2000–2025 Apache Software Foundation. All rights reserved.