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
:
getLockTokens()
=> Session.getLockTokens()
addLockToken(String)
=> Session.addLockToken(String)
removeLockToken(String)
=> Session.removeLockToken(String)
Modifier | Constructor and Description |
---|---|
protected |
JcrDavSession(javax.jcr.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 . |
javax.jcr.Session |
getRepositorySession()
Unwrap the
repository session object. |
static javax.jcr.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(javax.jcr.Session session)
session
- public static void checkImplementation(DavSession davSession) throws DavException
davSession
- DavException
public static javax.jcr.Session getRepositorySession(DavSession davSession) throws DavException
davSession
- DavException
public javax.jcr.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-2020 The Apache Software Foundation. All Rights Reserved.