Package org.apache.struts2.util.fs
Class JBossFileManager
java.lang.Object
org.apache.struts2.util.fs.DefaultFileManager
org.apache.struts2.util.fs.JBossFileManager
- All Implemented Interfaces:
- FileManager
FileManager implementation used with JBoss AS
- 
Field SummaryFields inherited from class org.apache.struts2.util.fs.DefaultFileManagerfiles, reloadingConfigs
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionCollection<? extends URL>getAllPhysicalUrls(URL url) protected URLgetJBossPhysicalUrl(URL url) Try to determine physical file location.protected booleanisJBossUrl(URL fileUrl) Check if given URL is pointing to JBoss 5 VFS resourcevoidmonitorFile(URL fileUrl) Adds file to list of monitored filesConvert URLs to URLs with "file" protocolbooleansupport()Indicate if given implementation supports current OS File SystemMethods inherited from class org.apache.struts2.util.fs.DefaultFileManagerfileNeedsReloading, fileNeedsReloading, internal, isJarURL, loadFile, setReloadingConfigs
- 
Constructor Details- 
JBossFileManagerpublic JBossFileManager()
 
- 
- 
Method Details- 
supportpublic boolean support()Description copied from interface:FileManagerIndicate if given implementation supports current OS File System- Specified by:
- supportin interface- FileManager
- Overrides:
- supportin class- DefaultFileManager
- Returns:
- true if supports current OS File System
 
- 
monitorFileDescription copied from interface:FileManagerAdds file to list of monitored files- Specified by:
- monitorFilein interface- FileManager
- Overrides:
- monitorFilein class- DefaultFileManager
- Parameters:
- fileUrl-- URLto file to be monitored
 
- 
normalizeToFileProtocolDescription copied from interface:FileManagerConvert URLs to URLs with "file" protocol- Specified by:
- normalizeToFileProtocolin interface- FileManager
- Overrides:
- normalizeToFileProtocolin class- DefaultFileManager
- Parameters:
- url- URL to convert to a jar url
- Returns:
- a URL to a file, or null if the URL external form cannot be parsed
 
- 
getAllPhysicalUrls- Specified by:
- getAllPhysicalUrlsin interface- FileManager
- Overrides:
- getAllPhysicalUrlsin class- DefaultFileManager
- Throws:
- IOException
 
- 
isJBossUrlCheck if given URL is pointing to JBoss 5 VFS resource- Parameters:
- fileUrl- file URL to check
- Returns:
- if given URL is pointing to JBoss 5 VFS resource
 
- 
getJBossPhysicalUrlTry to determine physical file location.- Parameters:
- url- JBoss VFS URL
- Returns:
- URL pointing to physical file or original URL
- Throws:
- IOException- If conversion fails
 
 
-