public class HttpLock extends BaseDavRequest
| Constructor and Description |
|---|
HttpLock(String uri,
LockInfo lockInfo) |
HttpLock(String uri,
long timeout,
String[] lockTokens) |
HttpLock(URI uri,
LockInfo lockInfo) |
HttpLock(URI uri,
long timeout,
String[] lockTokens) |
| Modifier and Type | Method and Description |
|---|---|
String |
getLockToken(org.apache.http.HttpResponse response) |
String |
getMethod() |
boolean |
succeeded(org.apache.http.HttpResponse response)
Check the provided
HttpResponse for successful execution. |
checkSuccess, getResponseBodyAsDocument, getResponseBodyAsEventDiscovery, getResponseBodyAsLockDiscovery, getResponseBodyAsMultiStatus, getResponseBodyAsSubscriptionDiscovery, getResponseExceptionclone, expectContinue, getEntity, setEntitygetConfig, getProtocolVersion, getRequestLine, getURI, releaseConnection, setConfig, setProtocolVersion, setURI, started, toStringabort, completed, isAborted, reset, setCancellable, setConnectionRequest, setReleaseTriggeraddHeader, addHeader, containsHeader, getAllHeaders, getFirstHeader, getHeaders, getLastHeader, getParams, headerIterator, headerIterator, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setParamsequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic HttpLock(URI uri, LockInfo lockInfo) throws IOException
IOExceptionpublic HttpLock(String uri, LockInfo lockInfo) throws IOException
IOExceptionpublic String getMethod()
getMethod in interface org.apache.http.client.methods.HttpUriRequestgetMethod in class org.apache.http.client.methods.HttpRequestBasepublic String getLockToken(org.apache.http.HttpResponse response)
public boolean succeeded(org.apache.http.HttpResponse response)
BaseDavRequestHttpResponse for successful execution. The default implementation treats all
2xx status codes (RFC 7231, Section 6.3).
Implementations can further restrict the accepted range of responses (or even check the response body).succeeded in class BaseDavRequestCopyright © 2004–2021 The Apache Software Foundation. All rights reserved.