Package com.github.sardine.impl.methods
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
Fields Modifier and Type Field Description static StringMETHOD_NAME -
Constructor Summary
-
Method Summary
Modifier and Type Method Description StringgetMethod()voidsetDepth(String depth)The Depth header may be used with theLOCKmethod.voidsetInfinite()Desires 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 java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
METHOD_NAME
- See Also:
- Constant Field Values
-
-
Constructor Details
-
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.
-