org.apache.webdav.lib.methods
Class UnlockMethod

java.lang.Object
  |
  +--org.apache.webdav.lib.methods.WebdavMethodBase
        |
        +--org.apache.webdav.lib.methods.UnlockMethod
All Implemented Interfaces:
WebdavMethod

public class UnlockMethod
extends WebdavMethodBase

UNLOCK Method.

Author:
Remy Maucherat, B.C. Holmes

Fields inherited from class org.apache.webdav.lib.methods.WebdavMethodBase
debug, headers, name, parameters, path, query, queryString, state, statusCode, statusText
 
Fields inherited from interface org.apache.webdav.lib.methods.WebdavMethod
PROTOCOL
 
Constructor Summary
UnlockMethod()
          Method constructor.
UnlockMethod(java.lang.String path)
          Method constructor.
UnlockMethod(java.lang.String path, java.lang.String lockToken)
          Method constructor.
 
Method Summary
 void generateHeaders(java.lang.String host, State state)
          Generate additional headers needed by the request.
 void parseResponse(java.io.InputStream is)
          Parse response.
 void setLockToken(java.lang.String lockToken)
           
 
Methods inherited from class org.apache.webdav.lib.methods.WebdavMethodBase
checkNotUsed, checkUsed, followRedirects, generateHeaders, generateQuery, generateRequestLine, getHeader, getHeaders, getName, getPath, getStatusCode, getStatusText, hasBeenUsed, isStreamedQuery, needContentLength, processResponseHeaders, recycle, removeHeader, setDebug, setHeader, setParameter, setPath, setQuery, setQueryString, setState, setStatusCode, setStatusText, setUsed, streamQuery, validate
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnlockMethod

public UnlockMethod()
Method constructor.

UnlockMethod

public UnlockMethod(java.lang.String path)
Method constructor.

UnlockMethod

public UnlockMethod(java.lang.String path,
                    java.lang.String lockToken)
Method constructor.
Method Detail

setLockToken

public void setLockToken(java.lang.String lockToken)

generateHeaders

public void generateHeaders(java.lang.String host,
                            State state)
Generate additional headers needed by the request.
Overrides:
generateHeaders in class WebdavMethodBase
Parameters:
host - the host
state - State token

parseResponse

public void parseResponse(java.io.InputStream is)
                   throws java.io.IOException
Parse response.
Overrides:
parseResponse in class WebdavMethodBase
Parameters:
is - Input stream