Class HttpLock
- java.lang.Object
-
- All Implemented Interfaces:
java.lang.Cloneable
,AbortableHttpRequest
,Configurable
,HttpExecutionAware
,HttpUriRequest
,HttpEntityEnclosingRequest
,HttpMessage
,HttpRequest
public class HttpLock extends BaseDavRequest
Represents an HTTP LOCK request.- Since:
- 2.13.6
- See Also:
- RFC 4918, Section 9.10
-
-
Constructor Summary
Constructors Constructor Description HttpLock(java.lang.String uri, long timeout, java.lang.String[] lockTokens)
HttpLock(java.lang.String uri, LockInfo lockInfo)
HttpLock(java.net.URI uri, long timeout, java.lang.String[] lockTokens)
HttpLock(java.net.URI uri, LockInfo lockInfo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getLockToken(HttpResponse response)
java.lang.String
getMethod()
Returns the HTTP method this request uses, such asGET
,PUT
,POST
, or other.boolean
succeeded(HttpResponse response)
Check the providedHttpResponse
for successful execution.-
Methods inherited from class org.apache.jackrabbit.webdav.client.methods.BaseDavRequest
checkSuccess, getResponseBodyAsDocument, getResponseBodyAsEventDiscovery, getResponseBodyAsLockDiscovery, getResponseBodyAsMultiStatus, getResponseBodyAsSubscriptionDiscovery, getResponseException
-
Methods inherited from class org.apache.http.client.methods.HttpEntityEnclosingRequestBase
clone, expectContinue, getEntity, setEntity
-
Methods inherited from class org.apache.http.client.methods.HttpRequestBase
getConfig, getProtocolVersion, getRequestLine, getURI, releaseConnection, setConfig, setProtocolVersion, setURI, started, toString
-
Methods inherited from class org.apache.http.client.methods.AbstractExecutionAwareRequest
abort, completed, isAborted, reset, setCancellable, setConnectionRequest, setReleaseTrigger
-
Methods inherited from class org.apache.http.message.AbstractHttpMessage
addHeader, addHeader, containsHeader, getAllHeaders, getFirstHeader, getHeaders, getLastHeader, getParams, headerIterator, headerIterator, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setParams
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.http.HttpMessage
addHeader, addHeader, containsHeader, getAllHeaders, getFirstHeader, getHeaders, getLastHeader, getParams, getProtocolVersion, headerIterator, headerIterator, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setParams
-
Methods inherited from interface org.apache.http.HttpRequest
getRequestLine
-
Methods inherited from interface org.apache.http.client.methods.HttpUriRequest
abort, isAborted
-
-
-
-
Constructor Detail
-
HttpLock
public HttpLock(java.net.URI uri, LockInfo lockInfo) throws java.io.IOException
- Throws:
java.io.IOException
-
HttpLock
public HttpLock(java.lang.String uri, LockInfo lockInfo) throws java.io.IOException
- Throws:
java.io.IOException
-
HttpLock
public HttpLock(java.net.URI uri, long timeout, java.lang.String[] lockTokens)
-
HttpLock
public HttpLock(java.lang.String uri, long timeout, java.lang.String[] lockTokens)
-
-
Method Detail
-
getMethod
public java.lang.String getMethod()
Description copied from interface:HttpUriRequest
Returns the HTTP method this request uses, such asGET
,PUT
,POST
, or other.- Specified by:
getMethod
in interfaceHttpUriRequest
- Specified by:
getMethod
in classHttpRequestBase
-
getLockToken
public java.lang.String getLockToken(HttpResponse response)
-
succeeded
public boolean succeeded(HttpResponse response)
Description copied from class:BaseDavRequest
Check the providedHttpResponse
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).- Overrides:
succeeded
in classBaseDavRequest
-
-