org.apache.jackrabbit.webdav.simple
Class DavSessionImpl

java.lang.Object
  extended by org.apache.jackrabbit.webdav.jcr.JcrDavSession
      extended by org.apache.jackrabbit.webdav.simple.DavSessionImpl
All Implemented Interfaces:
DavSession

public class DavSessionImpl
extends JcrDavSession

Simple implementation of the DavSession interface. Stores lock tokens but does not yet store references.


Constructor Summary
DavSessionImpl(Session session)
          Creates a new DavSession based on a jcr session
 
Method Summary
 void addLockToken(String token)
          Adds a lock token to this DavSession.
 void addReference(Object reference)
          Adds a reference to this DavSession indicating that this session must not be discarded after completion of the current request.
 String[] getLockTokens()
          Returns the lock tokens of this DavSession.
 void removeLockToken(String token)
          Removes a lock token from this DavSession.
 void removeReference(Object reference)
          Releasing a reference to this DavSession.
 
Methods inherited from class org.apache.jackrabbit.webdav.jcr.JcrDavSession
checkImplementation, getRepositorySession, getRepositorySession
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DavSessionImpl

public DavSessionImpl(Session session)
Creates a new DavSession based on a jcr session

Parameters:
session -
Method Detail

addReference

public void addReference(Object reference)
Description copied from interface: DavSession
Adds a reference to this DavSession indicating that this session must not be discarded after completion of the current request.

Parameters:
reference - to be added.
See Also:
DavSession.addReference(Object)

removeReference

public void removeReference(Object reference)
Description copied from interface: DavSession
Releasing a reference to this DavSession. If no more references are present, this session may be discarded.

Parameters:
reference - to be removed.
See Also:
DavSession.removeReference(Object)

addLockToken

public void addLockToken(String token)
Description copied from interface: DavSession
Adds a lock token to this DavSession.

Specified by:
addLockToken in interface DavSession
Overrides:
addLockToken in class JcrDavSession
See Also:
DavSession.addLockToken(String)

getLockTokens

public String[] getLockTokens()
Description copied from interface: DavSession
Returns the lock tokens of this DavSession.

Specified by:
getLockTokens in interface DavSession
Overrides:
getLockTokens in class JcrDavSession
Returns:
See Also:
DavSession.getLockTokens()

removeLockToken

public void removeLockToken(String token)
Description copied from interface: DavSession
Removes a lock token from this DavSession.

Specified by:
removeLockToken in interface DavSession
Overrides:
removeLockToken in class JcrDavSession
See Also:
DavSession.removeLockToken(String)


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