org.apache.webdav.lib.methods
Class UnlockMethod

java.lang.Object
  extended byorg.apache.commons.httpclient.HttpMethodBase
      extended byorg.apache.webdav.lib.methods.UnlockMethod
All Implemented Interfaces:
HttpMethod

public class UnlockMethod
extends HttpMethodBase

UNLOCK Method.

Author:
Remy Maucherat, B.C. Holmes

Field Summary
 
Fields inherited from class org.apache.commons.httpclient.HttpMethodBase
USER_AGENT
 
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 addRequestHeaders(HttpState state, HttpConnection conn)
          Generate additional headers needed by the request.
 java.lang.String getName()
           
protected  void processResponseBody(HttpState state, HttpConnection conn)
           
 void setLockToken(java.lang.String lockToken)
           
 void setRequestHeader(java.lang.String headerName, java.lang.String headerValue)
          Set header, handling the special case of the lock-token header so that it calls setLockToken(java.lang.String) instead.
 
Methods inherited from class org.apache.commons.httpclient.HttpMethodBase
addAuthorizationRequestHeader, addContentLengthRequestHeader, addCookieRequestHeader, addHostRequestHeader, addProxyAuthorizationRequestHeader, addProxyConnectionHeader, addRequestHeader, addRequestHeader, addResponseFooter, addUserAgentRequestHeader, checkNotUsed, checkUsed, execute, fakeResponse, generateRequestLine, getAuthenticationRealm, getContentCharSet, getDoAuthentication, getFollowRedirects, getHostConfiguration, getMethodRetryHandler, getPath, getProxyAuthenticationRealm, getQueryString, getRecoverableExceptionCount, getRequestCharSet, getRequestContentLength, getRequestHeader, getRequestHeaderGroup, getRequestHeaders, getResponseBody, getResponseBodyAsStream, getResponseBodyAsString, getResponseCharSet, getResponseContentLength, getResponseFooter, getResponseFooters, getResponseHeader, getResponseHeaderGroup, getResponseHeaders, getResponseStream, getResponseTrailerHeaderGroup, getStatusCode, getStatusLine, getStatusText, getURI, hasBeenUsed, isConnectionCloseForced, isHttp11, isStrictMode, processResponseHeaders, processStatusLine, readResponse, readResponseBody, readResponseHeaders, readStatusLine, recycle, releaseConnection, removeRequestHeader, responseBodyConsumed, setConnectionCloseForced, setDoAuthentication, setFollowRedirects, setHostConfiguration, setHttp11, setMethodRetryHandler, setPath, setQueryString, setQueryString, setRequestHeader, setResponseStream, setStrictMode, shouldCloseConnection, validate, writeRequest, writeRequestBody, writeRequestHeaders, writeRequestLine
 
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)

getName

public java.lang.String getName()

setRequestHeader

public void setRequestHeader(java.lang.String headerName,
                             java.lang.String headerValue)
Set header, handling the special case of the lock-token header so that it calls setLockToken(java.lang.String) instead.

Parameters:
headerName - Header name
headerValue - Header value

addRequestHeaders

public void addRequestHeaders(HttpState state,
                              HttpConnection conn)
                       throws java.io.IOException,
                              HttpException
Generate additional headers needed by the request.

Parameters:
state - HttpState token
conn - The connection being used to send the request.
Throws:
java.io.IOException
HttpException

processResponseBody

protected void processResponseBody(HttpState state,
                                   HttpConnection conn)