public class HttpLock extends BaseDavRequest
| Constructor and Description |
|---|
HttpLock(java.lang.String uri,
LockInfo lockInfo) |
HttpLock(java.lang.String uri,
long timeout,
java.lang.String[] lockTokens) |
HttpLock(java.net.URI uri,
LockInfo lockInfo) |
HttpLock(java.net.URI uri,
long timeout,
java.lang.String[] lockTokens) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getLockToken(org.apache.http.HttpResponse response) |
java.lang.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, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic HttpLock(java.net.URI uri,
LockInfo lockInfo)
throws java.io.IOException
java.io.IOExceptionpublic HttpLock(java.lang.String uri,
LockInfo lockInfo)
throws java.io.IOException
java.io.IOExceptionpublic HttpLock(java.net.URI uri,
long timeout,
java.lang.String[] lockTokens)
public HttpLock(java.lang.String uri,
long timeout,
java.lang.String[] lockTokens)
public java.lang.String getMethod()
getMethod in interface org.apache.http.client.methods.HttpUriRequestgetMethod in class org.apache.http.client.methods.HttpRequestBasepublic java.lang.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 © 2010 - 2023 Adobe. All Rights Reserved