Class LockResult

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

public class LockResult extends Object
  • Constructor Details

    • LockResult

      public LockResult(String token, long timeout)
      Initializes new instance.
      Parameters:
      token - Lock token associated with a lock.
      timeout - Timeout value in milliseconds. -1 means never.
  • Method Details

    • getToken

      public String getToken()
      Retrieves lock token associated with a lock.
      Returns:
      Lock token.
    • setToken

      public void setToken(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.