Package org.apache.jackrabbit.webdav.jcr
Class JcrDavSession
- java.lang.Object
-
- org.apache.jackrabbit.webdav.jcr.JcrDavSession
-
- All Implemented Interfaces:
DavSession
- Direct Known Subclasses:
DavSessionImpl
public abstract class JcrDavSession extends Object implements DavSession
JcrDavSession
specific base implementation of theDavSession
interface, which simply wraps aSession
object. This implementation adds a utility method that allows tounwrap
the underlying repository session.
Note, that in this basic implementation the following methods are simply forwarded to the corresponding call onSession
: Subclasses may overwrite or extend this behaviour.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
JcrDavSession(Session session)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addLockToken(String token)
Adds a lock token to thisDavSession
.static void
checkImplementation(DavSession davSession)
String[]
getLockTokens()
Returns the lock tokens of thisDavSession
.Session
getRepositorySession()
Unwrap therepository session
object.static Session
getRepositorySession(DavSession davSession)
void
removeLockToken(String token)
Removes a lock token from thisDavSession
.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.jackrabbit.webdav.DavSession
addReference, removeReference
-
-
-
-
Constructor Detail
-
JcrDavSession
protected JcrDavSession(Session session)
- Parameters:
session
-
-
-
Method Detail
-
checkImplementation
public static void checkImplementation(DavSession davSession) throws DavException
- Parameters:
davSession
-- Throws:
DavException
-
getRepositorySession
public static Session getRepositorySession(DavSession davSession) throws DavException
- Parameters:
davSession
-- Returns:
- Throws:
DavException
-
getRepositorySession
public Session getRepositorySession()
Unwrap therepository session
object.- Returns:
- the session object wrapped by this
DavSession
-
addLockToken
public void addLockToken(String token)
Description copied from interface:DavSession
Adds a lock token to thisDavSession
.- Specified by:
addLockToken
in interfaceDavSession
- Parameters:
token
-- 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
- 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
- Parameters:
token
-- See Also:
DavSession.removeLockToken(String)
-
-