Class HttpLock
java.lang.Object
org.apache.http.message.AbstractHttpMessage
org.apache.http.client.methods.AbstractExecutionAwareRequest
org.apache.http.client.methods.HttpRequestBase
org.apache.http.client.methods.HttpEntityEnclosingRequestBase
com.github.sardine.impl.methods.HttpLock
- All Implemented Interfaces:
Cloneable, org.apache.http.client.methods.AbortableHttpRequest, org.apache.http.client.methods.Configurable, org.apache.http.client.methods.HttpExecutionAware, org.apache.http.client.methods.HttpUriRequest, org.apache.http.HttpEntityEnclosingRequest, org.apache.http.HttpMessage, org.apache.http.HttpRequest
public class HttpLock
extends org.apache.http.client.methods.HttpEntityEnclosingRequestBase
-
Field Summary
FieldsFields inherited from class org.apache.http.message.AbstractHttpMessage
headergroup, params -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidThe Depth header may be used with theLOCKmethod.voidDesires an infinite length lock.voidsetTimeout(int seconds) Clients may include Timeout headers in their LOCK requests.Methods inherited from class org.apache.http.client.methods.HttpEntityEnclosingRequestBase
clone, expectContinue, getEntity, setEntityMethods inherited from class org.apache.http.client.methods.HttpRequestBase
getConfig, getProtocolVersion, getRequestLine, getURI, releaseConnection, setConfig, setProtocolVersion, setURI, started, toStringMethods inherited from class org.apache.http.client.methods.AbstractExecutionAwareRequest
abort, completed, isAborted, reset, setCancellable, setConnectionRequest, setReleaseTriggerMethods inherited from class org.apache.http.message.AbstractHttpMessage
addHeader, addHeader, containsHeader, getAllHeaders, getFirstHeader, getHeaders, getLastHeader, getParams, headerIterator, headerIterator, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setParamsMethods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.http.HttpMessage
addHeader, addHeader, containsHeader, getAllHeaders, getFirstHeader, getHeaders, getLastHeader, getParams, getProtocolVersion, headerIterator, headerIterator, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setParamsMethods inherited from interface org.apache.http.HttpRequest
getRequestLineMethods inherited from interface org.apache.http.client.methods.HttpUriRequest
abort, isAborted
-
Field Details
-
METHOD_NAME
- See Also:
-
-
Constructor Details
-
HttpLock
-
HttpLock
-
-
Method Details
-
getMethod
- Specified by:
getMethodin interfaceorg.apache.http.client.methods.HttpUriRequest- Specified by:
getMethodin classorg.apache.http.client.methods.HttpRequestBase
-
setDepth
The Depth header may be used with the
LOCKmethod. Values other than0orinfinitymust not be used with the Depth header on aLOCKmethod. All resources that support theLOCKmethod must support the Depth header.If no Depth header is submitted on a
LOCKrequest then the request must act as if aDepth:infinityhad been submitted.- Parameters:
depth-"0"or"infinity".
-
setTimeout
public void setTimeout(int seconds) Clients may include Timeout headers in their LOCK requests. However, the server is not required to honor or even consider these requests. -
setInfinite
public void setInfinite()Desires an infinite length lock.
-