public abstract class JcrDavSession extends Object implements DavSession
JcrDavSession
specific base implementation of the
DavSession
interface, which simply wraps a Session
object. This implementation adds a utility method that allows to
unwrap
the underlying repository session.
Session
:
Subclasses may overwrite or extend this behaviour.Modifier | Constructor and Description |
---|---|
protected |
JcrDavSession(Session session) |
Modifier and Type | Method and Description |
---|---|
void |
addLockToken(String token)
Adds a lock token to this
DavSession . |
static void |
checkImplementation(DavSession davSession) |
String[] |
getLockTokens()
Returns the lock tokens of this
DavSession . |
Session |
getRepositorySession()
Unwrap the
repository session object. |
static Session |
getRepositorySession(DavSession davSession) |
void |
removeLockToken(String token)
Removes a lock token from this
DavSession . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addReference, removeReference
protected JcrDavSession(Session session)
session
- public static void checkImplementation(DavSession davSession) throws DavException
davSession
- DavException
public static Session getRepositorySession(DavSession davSession) throws DavException
davSession
- DavException
public Session getRepositorySession()
repository session
object.DavSession
public void addLockToken(String token)
DavSession
DavSession
.addLockToken
in interface DavSession
token
- DavSession.addLockToken(String)
public String[] getLockTokens()
DavSession
DavSession
.getLockTokens
in interface DavSession
DavSession.getLockTokens()
public void removeLockToken(String token)
DavSession
DavSession
.removeLockToken
in interface DavSession
token
- DavSession.removeLockToken(String)
Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.