issrg.utils.webdav
Class LOCK

java.lang.Object
  extended by issrg.utils.webdav.HTTPMessage
      extended by issrg.utils.webdav.LOCK

public class LOCK
extends HTTPMessage

The WebDAV LOCK method requests a resource be locked, returns a lock token on success used to unlock the resource, or let the client specify a time-out value in seconds.

Version:
19/03/2007
Author:
Sean Antony

Field Summary
 
Fields inherited from class issrg.utils.webdav.HTTPMessage
CRLF, EMPTY, FS, host, HTTPVersion, LF, method, padSP, port, socket, SP, URI
 
Constructor Summary
LOCK(WebDAVSocket socket, java.lang.String server, int port, java.lang.String URI, int timeout, java.lang.String lockOwner)
           
 
Method Summary
 java.lang.String getLockToken()
           
 
Methods inherited from class issrg.utils.webdav.HTTPMessage
getRequestMessage, getRequestMessageByte, getResponseCode, getResponseContentLength, getResponseEntity, getResponseEntityByte, getResponseMessage, getResponseMessageByte, getResponseParagraph, getResponseTitle, isResponseSuccessful, transceive
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LOCK

public LOCK(WebDAVSocket socket,
            java.lang.String server,
            int port,
            java.lang.String URI,
            int timeout,
            java.lang.String lockOwner)
Parameters:
socket - inherited from HTTPMessage
server - inherited from HTTPMessage
port - inherited from HTTPMessage
URI - inherited from HTTPMessage, in this case should specify the location of the resource/collection you want to lock.
timeout - for the lock specified in seconds
lockOwner - the name of the lock owner, could be an email address
Method Detail

getLockToken

public java.lang.String getLockToken()
Returns:
the lock token in the server response message