public class FsFileResource extends FsResource implements com.bradmcevoy.http.CopyableResource, com.bradmcevoy.http.DeletableResource, com.bradmcevoy.http.GetableResource, com.bradmcevoy.http.MoveableResource, com.bradmcevoy.http.PropFindableResource, com.bradmcevoy.http.PropPatchableResource
| Constructor and Description |
|---|
FsFileResource(String host,
FileSystemResourceFactory factory,
File file) |
| Modifier and Type | Method and Description |
|---|---|
String |
checkRedirect(com.bradmcevoy.http.Request arg0) |
protected void |
doCopy(File dest) |
Long |
getContentLength() |
String |
getContentType(String preferredList) |
Long |
getMaxAgeSeconds(com.bradmcevoy.http.Auth auth) |
void |
sendContent(OutputStream out,
com.bradmcevoy.http.Range range,
Map<String,String> params,
String contentType) |
void |
setProperties(com.bradmcevoy.http.webdav.PropPatchHandler.Fields fields)
Deprecated.
|
authenticate, authenticate, authorise, compareTo, copyTo, delete, getCreateDate, getCurrentLock, getFile, getModifiedDate, getName, getRealm, getUniqueId, isDigestAllowed, lock, moveTo, refreshLock, unlockpublic FsFileResource(String host, FileSystemResourceFactory factory, File file)
host - - the requested host. E.g. www.mycompany.comfactory - file - public Long getContentLength()
getContentLength in interface com.bradmcevoy.http.GetableResourcepublic String getContentType(String preferredList)
getContentType in interface com.bradmcevoy.http.GetableResourcepublic String checkRedirect(com.bradmcevoy.http.Request arg0)
checkRedirect in interface com.bradmcevoy.http.Resourcepublic void sendContent(OutputStream out, com.bradmcevoy.http.Range range, Map<String,String> params, String contentType) throws IOException
sendContent in interface com.bradmcevoy.http.GetableResourceIOExceptionpublic Long getMaxAgeSeconds(com.bradmcevoy.http.Auth auth)
getMaxAgeSeconds in interface com.bradmcevoy.http.GetableResourceprotected void doCopy(File dest)
doCopy in class FsResource@Deprecated public void setProperties(com.bradmcevoy.http.webdav.PropPatchHandler.Fields fields)
setProperties in interface com.bradmcevoy.http.PropPatchableResourceCopyright © 2018 Open Knowledge Management System S.L.. All rights reserved.