org.apache.webdav.lib.methods
Class UnlockMethod
public class UnlockMethod
UNLOCK Method.
convertElementToProperty , generateRequestBody , getDebug , getRequestContentLength , getResponseDocument , getResponseHashtable , getResponseURLs , getResponses , parseResponse , parseXMLResponse , readResponseBody , recycle , setDebug , setDecodeResponseHrefs , setDocument , setResponseHashtable , writeRequestBody |
ABORT_TRANSACTION
public static final int ABORT_TRANSACTION
COMMIT_TRANSACTION
public static final int COMMIT_TRANSACTION
NO_TRANSACTION
public static final int NO_TRANSACTION
UnlockMethod
public UnlockMethod()
Method constructor.
UnlockMethod
public UnlockMethod(String path)
Method constructor.
UnlockMethod
public UnlockMethod(String path,
String lockToken)
Method constructor.
UnlockMethod
public UnlockMethod(String path,
String txHandle,
int transactionStatus)
Creates an unlock method that
ends a transaction when server supports
them in a
MS like style.
The transacion handle of transaction is stored as the lock token.
To start a transaction
use
LockMethod
.
path
- any path inside Slide's scopetxHandle
- lock token specifying transaction handletransactionStatus
- status of transaction as described in setTransactionStatus(int)
addRequestHeaders
public void addRequestHeaders(HttpState state,
HttpConnection conn)
throws IOException,
HttpException
Generate additional headers needed by the request.
state
- HttpState tokenconn
- The connection being used to send the request.
getName
public String getName()
getTransactionStatus
public int getTransactionStatus()
processResponseBody
protected void processResponseBody(HttpState state,
HttpConnection conn)
setLockToken
public void setLockToken(String lockToken)
setRequestHeader
public void setRequestHeader(String headerName,
String headerValue)
Set header, handling the special case of the lock-token header so
that it calls
setLockToken(String)
instead.
headerName
- Header nameheaderValue
- Header value
setTransactionStatus
public void setTransactionStatus(int transactionStatus)
Sets the transaction status of this method when it is used to end a externally controlled
transaction.