public class FsDirectoryResource extends FsResource implements MakeCollectionableResource, PutableResource, CopyableResource, DeletableResource, MoveableResource, PropFindableResource, LockingCollectionResource, GetableResource
| Constructor and Description |
|---|
FsDirectoryResource(String host,
FileSystemResourceFactory factory,
File dir,
FileContentService contentService) |
| Modifier and Type | Method and Description |
|---|---|
String |
checkRedirect(Request request)
Will redirect if a default page has been specified on the factory
|
Resource |
child(String name) |
LockToken |
createAndLock(String name,
LockTimeout timeout,
LockInfo lockInfo) |
CollectionResource |
createCollection(String name) |
Resource |
createNew(String name,
InputStream in,
Long length,
String contentType) |
protected void |
doCopy(File dest) |
List<? extends Resource> |
getChildren() |
Long |
getContentLength() |
String |
getContentType(String accepts) |
Long |
getMaxAgeSeconds(Auth auth) |
static String |
insertSsoPrefix(String abUrl,
String prefix) |
void |
sendContent(OutputStream out,
Range range,
Map<String,String> params,
String contentType)
Will generate a listing of the contents of this directory, unless the
factory's allowDirectoryBrowsing has been set to false.
|
authenticate, authenticate, authorise, compareTo, copyTo, delete, getCreateDate, getCurrentLock, getFile, getModifiedDate, getName, getRealm, getUniqueId, isDigestAllowed, lock, moveTo, refreshLock, unlockclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcopyTodeletemoveTogetCreateDategetCurrentLock, lock, refreshLock, unlockauthenticate, authorise, getModifiedDate, getName, getRealm, getUniqueIdpublic FsDirectoryResource(String host, FileSystemResourceFactory factory, File dir, FileContentService contentService)
public CollectionResource createCollection(String name)
createCollection in interface MakeCollectionableResourcepublic Resource child(String name)
child in interface CollectionResourcepublic List<? extends Resource> getChildren()
getChildren in interface CollectionResourcepublic String checkRedirect(Request request)
checkRedirect in interface Resourcerequest - public Resource createNew(String name, InputStream in, Long length, String contentType) throws IOException
createNew in interface PutableResourceIOExceptionprotected void doCopy(File dest) throws NotAuthorizedException
doCopy in class FsResourceNotAuthorizedExceptionpublic LockToken createAndLock(String name, LockTimeout timeout, LockInfo lockInfo) throws NotAuthorizedException
createAndLock in interface LockingCollectionResourceNotAuthorizedExceptionpublic void sendContent(OutputStream out, Range range, Map<String,String> params, String contentType) throws IOException, NotAuthorizedException
sendContent in interface GetableResourceout - range - params - contentType - IOExceptionNotAuthorizedExceptionpublic Long getMaxAgeSeconds(Auth auth)
getMaxAgeSeconds in interface GetableResourcepublic String getContentType(String accepts)
getContentType in interface GetableResourcepublic Long getContentLength()
getContentLength in interface GetableResourceCopyright © 2021 McEvoy Software Ltd. All rights reserved.