org.apache.struts2.util.fs
Class JBossFileManager
java.lang.Object
com.opensymphony.xwork2.util.fs.DefaultFileManager
org.apache.struts2.util.fs.JBossFileManager
- All Implemented Interfaces:
- FileManager
public class JBossFileManager
- extends DefaultFileManager
FileManager implementation used with JBoss AS
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JBossFileManager
public JBossFileManager()
support
public boolean support()
- Specified by:
support in interface FileManager- Overrides:
support in class DefaultFileManager
monitorFile
public void monitorFile(URL fileUrl)
- Specified by:
monitorFile in interface FileManager- Overrides:
monitorFile in class DefaultFileManager
normalizeToFileProtocol
public URL normalizeToFileProtocol(URL url)
- Specified by:
normalizeToFileProtocol in interface FileManager- Overrides:
normalizeToFileProtocol in class DefaultFileManager
getAllPhysicalUrls
public Collection<? extends URL> getAllPhysicalUrls(URL url)
throws IOException
- Specified by:
getAllPhysicalUrls in interface FileManager- Overrides:
getAllPhysicalUrls in class DefaultFileManager
- Throws:
IOException
isJBossUrl
protected boolean isJBossUrl(URL fileUrl)
- Check if given URL is pointing to JBoss 5 VFS resource
- Parameters:
fileUrl -
- Returns:
getJBossPhysicalUrl
protected URL getJBossPhysicalUrl(URL url)
throws IOException
- Try to determine physical file location.
- Parameters:
url - JBoss VFS URL
- Returns:
- URL pointing to physical file or original URL
- Throws:
IOException - If conversion fails
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.