Qore xml Module 2.1.0
Loading...
Searching...
No Matches
WebDavHandler::InMemoryWebDavLockHandler Class Reference

In-memory implementation of WebDAV lock handler. More...

#include <InMemoryWebDavLockHandler.qc.dox.h>

Inheritance diagram for WebDavHandler::InMemoryWebDavLockHandler:
WebDavHandler::AbstractWebDavLockHandler

Public Member Methods

bool refresh (string token, int timeout)
 Refresh an existing lock's timeout.
 
soft< hash< WebDavLockInfo > > getLock (string token)
 Get lock information for a specific token.
 
list< hash< WebDavLockInfo > > getLocks (string resource)
 Get all locks on a resource.
 
void cleanExpired ()
 Clean up expired locks.
 
void cleanExpiredInternal ()
 Internal method to clean expired locks (must hold write lock)
 
string normalizeResource (string resource)
 Normalize resource path.
 
list< string > remove_from_list (list< string > l, string item)
 Helper to remove an element from a list.
 
- Public Member Methods inherited from WebDavHandler::AbstractWebDavLockHandler
abstract string lock (string resource, hash< WebDavLockInfo > lock_info)
 Acquire a lock on a resource.
 
abstract bool unlock (string resource, string token)
 Release a lock.
 
abstract bool refresh (string token, int timeout)
 Refresh an existing lock's timeout.
 
abstract soft< hash< WebDavLockInfo > > getLock (string token)
 Get lock information for a specific token.
 
abstract list< hash< WebDavLockInfo > > getLocks (string resource)
 Get all locks on a resource.
 
abstract soft< string > isLocked (string resource, soft< string > exclude_token)
 Check if a resource is locked.
 
abstract void cleanExpired ()
 Clean up expired locks.
 
string generateLockToken ()
 Clean up expired locks.
 

Detailed Description

In-memory implementation of WebDAV lock handler.

This class provides an in-memory implementation of WebDAV lock management. Locks are lost when the server restarts.


The documentation for this class was generated from the following file: