Chapter 8. Lock Operations

So far, all the methods and headers defined must be supported by all WebDAV servers. This chapter introduces the optional locking functionality. Locking is part of Class 2 WebDAV support, so if the server's response to an OPTIONS request only has DAV: 1 (Class 1 support), none of the requests in this chapter can be used (Class 1 and Class 2 support were defined in Chapter 5, Section 5.1.1). If the server supports WebDAV Class 2, all the operations in this chapter are supported as well as all the operations listed in Chapters 6 and 7.

A lock is a way of temporarily restricting access to modify a resource. The lock affects all users or principals, including the user who created the lock if the lock token is omitted in modification requests. Only the lock creator may use the lock token to modify the locked resource.

This chapter covers:

  • How to create locks with the LOCK method

  • How locks are removed by either server (with timeouts) or client (with the UNLOCK method)

  • How to modify locked resources with the If: header providing lock tokens

  • How other operations affect and are affected by locks



WebDAV. Next Generation Collaborative Web Authoring
WebDAV. Next Generation Collaborative Web Authoring
ISBN: 130652083
EAN: N/A
Year: 2003
Pages: 146

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net