Package io.milton.http.fs
Class FsResource
java.lang.Object
io.milton.http.fs.FsResource
- All Implemented Interfaces:
CopyableResource,DigestResource,LockableResource,MoveableResource,Resource
- Direct Known Subclasses:
FsDirectoryResource,FsFileResource
public abstract class FsResource
extends Object
implements Resource, MoveableResource, CopyableResource, LockableResource, DigestResource
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthenticate(DigestResponse digestRequest) authenticate(String user, String password) booleanauthorise(Request request, Request.Method method, Auth auth) intvoidcopyTo(CollectionResource newParent, String newName) voiddelete()protected abstract voidgetFile()getName()getRealm()booleanlock(LockTimeout timeout, LockInfo lockInfo) voidmoveTo(CollectionResource newParent, String newName) refreshLock(String token, LockTimeout timeout) voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.milton.resource.Resource
checkRedirect
-
Constructor Details
-
FsResource
-
-
Method Details
-
doCopy
- Throws:
NotAuthorizedException
-
getFile
-
getUniqueId
- Specified by:
getUniqueIdin interfaceResource
-
getName
-
authenticate
- Specified by:
authenticatein interfaceResource
-
authenticate
- Specified by:
authenticatein interfaceDigestResource
-
isDigestAllowed
public boolean isDigestAllowed()- Specified by:
isDigestAllowedin interfaceDigestResource
-
authorise
-
getRealm
-
getModifiedDate
- Specified by:
getModifiedDatein interfaceResource
-
getCreateDate
-
compareTo
-
moveTo
- Specified by:
moveToin interfaceMoveableResource
-
copyTo
- Specified by:
copyToin interfaceCopyableResource- Throws:
NotAuthorizedException
-
delete
public void delete() -
lock
- Specified by:
lockin interfaceLockableResource- Throws:
NotAuthorizedException
-
refreshLock
- Specified by:
refreshLockin interfaceLockableResource- Throws:
NotAuthorizedException
-
unlock
- Specified by:
unlockin interfaceLockableResource- Throws:
NotAuthorizedException
-
getCurrentLock
- Specified by:
getCurrentLockin interfaceLockableResource
-