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
JcrDavSessionspecific base implementation of theDavSessioninterface, which simply wraps aSessionobject. This implementation adds a utility method that allows tounwrapthe 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 protectedJcrDavSession(Session session)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddLockToken(String token)Adds a lock token to thisDavSession.static voidcheckImplementation(DavSession davSession)String[]getLockTokens()Returns the lock tokens of thisDavSession.SessiongetRepositorySession()Unwrap therepository sessionobject.static SessiongetRepositorySession(DavSession davSession)voidremoveLockToken(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 sessionobject.- Returns:
- the session object wrapped by this
DavSession
-
addLockToken
public void addLockToken(String token)
Description copied from interface:DavSessionAdds a lock token to thisDavSession.- Specified by:
addLockTokenin interfaceDavSession- Parameters:
token-- See Also:
DavSession.addLockToken(String)
-
getLockTokens
public String[] getLockTokens()
Description copied from interface:DavSessionReturns the lock tokens of thisDavSession.- Specified by:
getLockTokensin interfaceDavSession- 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- Parameters:
token-- See Also:
DavSession.removeLockToken(String)
-
-