com.ithit.webdav.server
Class LockResult

java.lang.Object
  extended by com.ithit.webdav.server.LockResult

public class LockResult
extends java.lang.Object

Result of Lock.lock(boolean, boolean, long, java.lang.String) operation.


Constructor Summary
LockResult(java.lang.String token, long timeout)
          Initializes new instance.
 
Method Summary
 long getTimeout()
          Retrieves timeout.
 java.lang.String getToken()
          Retrieves lock token associated with a lock.
 void setTimeout(long timeout)
          Sets timeout.
 void setToken(java.lang.String token)
          Sets lock token associated with a lock.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LockResult

public LockResult(java.lang.String token,
                  long timeout)
Initializes new instance.

Parameters:
token - lock token associated with a lock.
timeout - timeout value in milliseconds. -1 means never.
Method Detail

getToken

public java.lang.String getToken()
Retrieves lock token associated with a lock.

Returns:
lock token.

setToken

public void setToken(java.lang.String token)
Sets lock token associated with a lock.

Parameters:
token - lock token.

getTimeout

public long getTimeout()
Retrieves timeout.

Returns:
timeout value in milliseconds.

setTimeout

public void setTimeout(long timeout)
Sets timeout.

Parameters:
timeout - timeout value in milliseconds.


Copyright © 2009 ITHit. All Rights Reserved.