public class FsFileResource extends FsResource implements CopyableResource, DeletableResource, GetableResource, MoveableResource, PropFindableResource, ReplaceableResource, MultiNamespaceCustomPropertyResource
| Constructor and Description |
|---|
FsFileResource(String host,
FileSystemResourceFactory factory,
File file,
FileContentService contentService) |
| Modifier and Type | Method and Description |
|---|---|
String |
checkRedirect(Request arg0) |
protected void |
doCopy(File dest) |
List<QName> |
getAllPropertyNames() |
Long |
getContentLength() |
String |
getContentType(String preferredList) |
Long |
getMaxAgeSeconds(Auth auth) |
Object |
getProperty(QName name) |
PropertySource.PropertyMetaData |
getPropertyMetaData(QName name) |
void |
replaceContent(InputStream in,
Long length) |
void |
sendContent(OutputStream out,
Range range,
Map<String,String> params,
String contentType) |
void |
setProperty(QName name,
Object value) |
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, waitcopyTodeletemoveTogetCreateDateauthenticate, authorise, getModifiedDate, getName, getRealm, getUniqueIdpublic FsFileResource(String host, FileSystemResourceFactory factory, File file, FileContentService contentService)
host - - the requested host. E.g. www.mycompany.comfactory - file - public Long getContentLength()
getContentLength in interface GetableResourcepublic String getContentType(String preferredList)
getContentType in interface GetableResourcepublic String checkRedirect(Request arg0)
checkRedirect in interface Resourcepublic void sendContent(OutputStream out, Range range, Map<String,String> params, String contentType) throws IOException, NotFoundException
sendContent in interface GetableResourceIOExceptionNotFoundExceptionpublic Long getMaxAgeSeconds(Auth auth)
getMaxAgeSeconds in interface GetableResourceprotected void doCopy(File dest)
doCopy in class FsResourcepublic void replaceContent(InputStream in, Long length) throws BadRequestException, ConflictException, NotAuthorizedException
replaceContent in interface ReplaceableResourceBadRequestExceptionConflictExceptionNotAuthorizedExceptionpublic Object getProperty(QName name)
getProperty in interface MultiNamespaceCustomPropertyResourcepublic void setProperty(QName name, Object value) throws PropertySource.PropertySetException, NotAuthorizedException
setProperty in interface MultiNamespaceCustomPropertyResourcePropertySource.PropertySetExceptionNotAuthorizedExceptionpublic PropertySource.PropertyMetaData getPropertyMetaData(QName name)
getPropertyMetaData in interface MultiNamespaceCustomPropertyResourcepublic List<QName> getAllPropertyNames()
getAllPropertyNames in interface MultiNamespaceCustomPropertyResourceCopyright © 2021 McEvoy Software Ltd. All rights reserved.