issrg.utils.webdav
Class LOCK
java.lang.Object
issrg.utils.webdav.HTTPMessage
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
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)
|
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 |
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 HTTPMessageserver
- inherited from HTTPMessageport
- inherited from HTTPMessageURI
- inherited from HTTPMessage, in this case should specify the
location of the resource/collection you want to lock.timeout
- for the lock specified in secondslockOwner
- the name of the lock owner, could be an email address
getLockToken
public java.lang.String getLockToken()
- Returns:
- the lock token in the server response message