org.apache.jackrabbit.webdav
Interface DavSession


public interface DavSession

DavSession wraps a repository session object, that is obtained on login to the underlaying repository.


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 the underlaying Session object is needed for actions spanning over multiple requests.
 String[] getLockTokens()
          Returns the lock tokens of this DavSession.
 Session getRepositorySession()
          Unwrap the repository session object.
 void removeLockToken(String token)
          Removes a lock token from this DavSession.
 void removeReference(Object reference)
          Releasing a reference to this DavSession.
 

Method Detail

addReference

public void addReference(Object reference)
Adds a reference to this DavSession indicating that the underlaying Session object is needed for actions spanning over multiple requests.

Parameters:
reference - to be added.

removeReference

public void removeReference(Object reference)
Releasing a reference to this DavSession. If no more references are present, the underlaying Session may be discarded (e.g by calling Session.logout().

Parameters:
reference - to be removed.

getRepositorySession

public Session getRepositorySession()
Unwrap the repository session object.

Returns:
the session object wrapped by this DavSession

addLockToken

public void addLockToken(String token)
Adds a lock token to this DavSession.

Parameters:
token -

getLockTokens

public String[] getLockTokens()
Returns the lock tokens of this DavSession.

Returns:

removeLockToken

public void removeLockToken(String token)
Removes a lock token from this DavSession.

Parameters:
token -


Copyright © 2005 . All Rights Reserved.