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 theDavSession
interface. 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 void
addLockToken(String token)
Adds a lock token to thisDavSession
.void
addReference(Object reference)
Adds a reference to thisDavSession
indicating that this session must not be discarded after completion of the current request.String[]
getLockTokens()
Returns the lock tokens of thisDavSession
.void
removeLockToken(String token)
Removes a lock token from thisDavSession
.void
removeReference(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:DavSession
Adds a reference to thisDavSession
indicating 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:DavSession
Releasing 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:DavSession
Adds a lock token to thisDavSession
.- Specified by:
addLockToken
in interfaceDavSession
- Overrides:
addLockToken
in classJcrDavSession
- See Also:
DavSession.addLockToken(String)
-
getLockTokens
public String[] getLockTokens()
Description copied from interface:DavSession
Returns the lock tokens of thisDavSession
.- Specified by:
getLockTokens
in interfaceDavSession
- Overrides:
getLockTokens
in classJcrDavSession
- Returns:
- See Also:
DavSession.getLockTokens()
-
removeLockToken
public void removeLockToken(String token)
Description copied from interface:DavSession
Removes a lock token from thisDavSession
.- Specified by:
removeLockToken
in interfaceDavSession
- Overrides:
removeLockToken
in classJcrDavSession
- See Also:
DavSession.removeLockToken(String)
-
-