public final class FileSystemResourceFactory extends Object implements ResourceFactory
| Constructor and Description |
|---|
FileSystemResourceFactory()
Creates and (optionally) initialises the factory.
|
FileSystemResourceFactory(File root,
SecurityManager securityManager) |
FileSystemResourceFactory(File root,
SecurityManager securityManager,
String contextPath) |
public FileSystemResourceFactory()
public FileSystemResourceFactory(File root, SecurityManager securityManager)
root - - the root folder of the filesystem to expose. This must
include the context path. Eg, if you've deployed to webdav-fs, root must
contain a folder called webdav-fssecurityManager - public FileSystemResourceFactory(File root, SecurityManager securityManager, String contextPath)
root - - the root folder of the filesystem to expose. called
webdav-fssecurityManager - contextPath - - this is the leading part of URL's to ignore. For
example if you're application is deployed to
http://localhost:8080/webdav-fs, the context path should be webdav-fsprotected void init(String sRoot, SecurityManager securityManager)
public File getRoot()
public final void setRoot(File root)
public Resource getResource(String host, String url)
getResource in interface ResourceFactorypublic FsResource resolveFile(String host, File file)
public Long maxAgeSeconds(FsResource resource)
public void setSecurityManager(SecurityManager securityManager)
public SecurityManager getSecurityManager()
public void setMaxAgeSeconds(Long maxAgeSeconds)
public Long getMaxAgeSeconds()
public LockManager getLockManager()
public void setLockManager(LockManager lockManager)
public PropertyManager getPropertyManager()
public void setPropertyManager(PropertyManager propertyManager)
public void setContextPath(String contextPath)
public String getContextPath()
public boolean isAllowDirectoryBrowsing()
public void setAllowDirectoryBrowsing(boolean allowDirectoryBrowsing)
public String getDefaultPage()
public void setDefaultPage(String defaultPage)
public void setDigestAllowed(boolean digestAllowed)
public void setSsoPrefix(String ssoPrefix)
public String getSsoPrefix()
public FileContentService getContentService()
public void setContentService(FileContentService contentService)
Copyright © 2021 McEvoy Software Ltd. All rights reserved.