org.apache.jackrabbit.webdav.jcr
Class JcrDavSession

java.lang.Object
  extended by 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 the DavSession interface, which simply wraps a Session object. This implementation adds a utility method that allows to unwrap the underlying repository session.
Note, that in this basic implementation the following methods are simply forwarded to the corresponding call on Session:

Subclasses may overwrite or extend this behaviour.


Constructor Summary
protected JcrDavSession(javax.jcr.Session session)
           
 
Method Summary
 void addLockToken(String token)
           
 String[] getLockTokens()
           
 javax.jcr.Session getRepositorySession()
          Unwrap the repository session object.
static javax.jcr.Session getRepositorySession(DavSession davSession)
           
static void checkImplementation(DavSession davSession)
           
 void removeLockToken(String token)
           
 
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(javax.jcr.Session session)
Parameters:
session -
Method Detail

checkImplementation

public static void checkImplementation(DavSession davSession)
                                throws DavException
Parameters:
davSession -
Throws:
DavException

getRepositorySession

public static javax.jcr.Session getRepositorySession(DavSession davSession)
                                              throws DavException
Parameters:
davSession -
Returns:
Throws:
DavException

getRepositorySession

public javax.jcr.Session getRepositorySession()
Unwrap the repository session object.

Returns:
the session object wrapped by this DavSession

addLockToken

public void addLockToken(String token)
Specified by:
addLockToken in interface DavSession
Parameters:
token -
See Also:
DavSession.addLockToken(String)

getLockTokens

public String[] getLockTokens()
Specified by:
getLockTokens in interface DavSession
Returns:
See Also:
DavSession.getLockTokens()

removeLockToken

public void removeLockToken(String token)
Specified by:
removeLockToken in interface DavSession
Parameters:
token -
See Also:
DavSession.removeLockToken(String)


Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.