org.apache.webdav.lib.methods
Class UnlockMethod

java.lang.Object
  |
  +--org.apache.commons.httpclient.HttpMethodBase
        |
        +--org.apache.webdav.lib.methods.UnlockMethod
All Implemented Interfaces:
org.apache.commons.httpclient.HttpMethod

public class UnlockMethod
extends org.apache.commons.httpclient.HttpMethodBase

UNLOCK Method.

Author:
Remy Maucherat, B.C. Holmes

Fields inherited from class org.apache.commons.httpclient.HttpMethodBase
debug, followRedirects, name, parameters, path, query, queryString, requestHeaders, responseHeaders, state, statusCode, statusText
 
Fields inherited from interface org.apache.commons.httpclient.HttpMethod
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, org.apache.commons.httpclient.State state)
          Generate additional headers needed by the request.
 void parseResponse(java.io.InputStream is)
          Parse response.
 void setHeader(java.lang.String headerName, java.lang.String headerValue)
          Set header.
 void setLockToken(java.lang.String lockToken)
           
 
Methods inherited from class org.apache.commons.httpclient.HttpMethodBase
checkNotUsed, checkUsed, followRedirects, generateHeaders, generateQuery, generateRequestLine, generateRequestLine, getHeader, getHeaders, getHeadersHashtable, getName, getPath, getStatusCode, getStatusText, hasBeenUsed, hasResponseBody, isStreamedQuery, needContentLength, needExpectation, processResponseHeaders, recycle, removeHeader, setDebug, setFollowRedirects, 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)

setHeader

public void setHeader(java.lang.String headerName,
                      java.lang.String headerValue)
Set header. handle the special case of lock-token.
Overrides:
setHeader in class org.apache.commons.httpclient.HttpMethodBase
Parameters:
headerName - Header name
headerValue - Header value

generateHeaders

public void generateHeaders(java.lang.String host,
                            org.apache.commons.httpclient.State state)
Generate additional headers needed by the request.
Overrides:
generateHeaders in class org.apache.commons.httpclient.HttpMethodBase
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 org.apache.commons.httpclient.HttpMethodBase
Parameters:
is - Input stream