Class DavSessionImpl
- java.lang.Object
-
- org.apache.jackrabbit.webdav.jcr.JcrDavSession
-
- org.apache.jackrabbit.webdav.simple.DavSessionImpl
-
- All Implemented Interfaces:
DavSession
public class DavSessionImpl extends JcrDavSession
Simple implementation of theDavSessioninterface. Stores lock tokens but does not yet store references.
-
-
Constructor Summary
Constructors Constructor Description DavSessionImpl(Session session)Creates a new DavSession based on a jcr session
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddLockToken(String token)Adds a lock token to thisDavSession.voidaddReference(Object reference)Adds a reference to thisDavSessionindicating that this session must not be discarded after completion of the current request.String[]getLockTokens()Returns the lock tokens of thisDavSession.voidremoveLockToken(String token)Removes a lock token from thisDavSession.voidremoveReference(Object reference)Releasing a reference to thisDavSession.-
Methods inherited from class org.apache.jackrabbit.webdav.jcr.JcrDavSession
checkImplementation, getRepositorySession, getRepositorySession
-
-
-
-
Constructor Detail
-
DavSessionImpl
public DavSessionImpl(Session session)
Creates a new DavSession based on a jcr session- Parameters:
session-
-
-
Method Detail
-
addReference
public void addReference(Object reference)
Description copied from interface:DavSessionAdds a reference to thisDavSessionindicating that this session must not be discarded after completion of the current request.- Parameters:
reference- to be added.- See Also:
DavSession.addReference(Object)
-
removeReference
public void removeReference(Object reference)
Description copied from interface:DavSessionReleasing a reference to thisDavSession. If no more references are present, this session may be discarded.- Parameters:
reference- to be removed.- See Also:
DavSession.removeReference(Object)
-
addLockToken
public void addLockToken(String token)
Description copied from interface:DavSessionAdds a lock token to thisDavSession.- Specified by:
addLockTokenin interfaceDavSession- Overrides:
addLockTokenin classJcrDavSession- See Also:
DavSession.addLockToken(String)
-
getLockTokens
public String[] getLockTokens()
Description copied from interface:DavSessionReturns the lock tokens of thisDavSession.- Specified by:
getLockTokensin interfaceDavSession- Overrides:
getLockTokensin classJcrDavSession- Returns:
- See Also:
DavSession.getLockTokens()
-
removeLockToken
public void removeLockToken(String token)
Description copied from interface:DavSessionRemoves a lock token from thisDavSession.- Specified by:
removeLockTokenin interfaceDavSession- Overrides:
removeLockTokenin classJcrDavSession- See Also:
DavSession.removeLockToken(String)
-
-