public class FsDirectoryResource extends FsResource implements com.bradmcevoy.http.MakeCollectionableResource, com.bradmcevoy.http.PutableResource, com.bradmcevoy.http.CopyableResource, com.bradmcevoy.http.DeletableResource, com.bradmcevoy.http.MoveableResource, com.bradmcevoy.http.PropFindableResource, com.bradmcevoy.http.LockingCollectionResource, com.bradmcevoy.http.GetableResource
Constructor and Description |
---|
FsDirectoryResource(String host,
FileSystemResourceFactory factory,
File dir) |
Modifier and Type | Method and Description |
---|---|
String |
checkRedirect(com.bradmcevoy.http.Request request)
Will redirect if a default page has been specified on the factory
|
com.bradmcevoy.http.Resource |
child(String name) |
com.bradmcevoy.http.LockToken |
createAndLock(String name,
com.bradmcevoy.http.LockTimeout timeout,
com.bradmcevoy.http.LockInfo lockInfo) |
com.bradmcevoy.http.CollectionResource |
createCollection(String name) |
com.bradmcevoy.http.Resource |
createNew(String name,
InputStream in,
Long length,
String contentType) |
protected void |
doCopy(File dest) |
List<? extends com.bradmcevoy.http.Resource> |
getChildren() |
Long |
getContentLength() |
String |
getContentType(String accepts) |
Long |
getMaxAgeSeconds(com.bradmcevoy.http.Auth auth) |
static String |
insertSsoPrefix(String abUrl,
String prefix) |
void |
sendContent(OutputStream out,
com.bradmcevoy.http.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, unlock
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public FsDirectoryResource(String host, FileSystemResourceFactory factory, File dir)
public com.bradmcevoy.http.CollectionResource createCollection(String name)
createCollection
in interface com.bradmcevoy.http.MakeCollectionableResource
public com.bradmcevoy.http.Resource child(String name)
child
in interface com.bradmcevoy.http.CollectionResource
public List<? extends com.bradmcevoy.http.Resource> getChildren()
getChildren
in interface com.bradmcevoy.http.CollectionResource
public String checkRedirect(com.bradmcevoy.http.Request request)
checkRedirect
in interface com.bradmcevoy.http.Resource
request
- public com.bradmcevoy.http.Resource createNew(String name, InputStream in, Long length, String contentType) throws IOException
createNew
in interface com.bradmcevoy.http.PutableResource
IOException
protected void doCopy(File dest)
doCopy
in class FsResource
public com.bradmcevoy.http.LockToken createAndLock(String name, com.bradmcevoy.http.LockTimeout timeout, com.bradmcevoy.http.LockInfo lockInfo) throws com.bradmcevoy.http.exceptions.NotAuthorizedException
createAndLock
in interface com.bradmcevoy.http.LockingCollectionResource
com.bradmcevoy.http.exceptions.NotAuthorizedException
public void sendContent(OutputStream out, com.bradmcevoy.http.Range range, Map<String,String> params, String contentType) throws IOException, com.bradmcevoy.http.exceptions.NotAuthorizedException
sendContent
in interface com.bradmcevoy.http.GetableResource
out
- range
- params
- contentType
- IOException
com.bradmcevoy.http.exceptions.NotAuthorizedException
public Long getMaxAgeSeconds(com.bradmcevoy.http.Auth auth)
getMaxAgeSeconds
in interface com.bradmcevoy.http.GetableResource
public String getContentType(String accepts)
getContentType
in interface com.bradmcevoy.http.GetableResource
public Long getContentLength()
getContentLength
in interface com.bradmcevoy.http.GetableResource
Copyright © 2017 Open Knowledge Management System S.L.. All rights reserved.