Class SyncMethod
- 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
-
- org.apache.jackrabbit.webdav.client.methods.BaseDavRequest
-
- org.apache.openmeetings.service.calendar.caldav.methods.SyncMethod
-
- 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 SyncMethod extends org.apache.jackrabbit.webdav.client.methods.BaseDavRequestClass to work with WebDAV-Sync Method defined in RFC 6578.
-
-
Constructor Summary
Constructors Constructor Description SyncMethod(String uri, SyncReportInfo reportInfo)SyncMethod(URI uri, SyncReportInfo reportInfo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetMethod()Implements the Report Method.org.apache.jackrabbit.webdav.MultiStatusgetResponseBodyAsMultiStatus(org.apache.http.HttpResponse response)Adapted from DavMethodBase to handle MultiStatus responses.StringgetResponseSynctoken(org.apache.http.HttpResponse response)protected voidprocessResponseBody(org.apache.http.HttpResponse response)Process the sync-token, from the response.voidreset()voidsetDepth(int depth)Set the Depth Header of the Sync Report.booleansucceeded(org.apache.http.HttpResponse response)-
Methods inherited from class org.apache.jackrabbit.webdav.client.methods.BaseDavRequest
checkSuccess, getResponseBodyAsDocument, getResponseBodyAsEventDiscovery, getResponseBodyAsLockDiscovery, 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, 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, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Constructor Detail
-
SyncMethod
public SyncMethod(URI uri, SyncReportInfo reportInfo) throws IOException
- Throws:
IOException
-
SyncMethod
public SyncMethod(String uri, SyncReportInfo reportInfo) throws IOException
- Throws:
IOException
-
-
Method Detail
-
setDepth
public void setDepth(int depth)
Set the Depth Header of the Sync Report.- Parameters:
depth- Depth of the Request
-
getMethod
public String getMethod()
Implements the Report Method.- Specified by:
getMethodin interfaceorg.apache.http.client.methods.HttpUriRequest- Specified by:
getMethodin classorg.apache.http.client.methods.HttpRequestBase
-
succeeded
public boolean succeeded(org.apache.http.HttpResponse response)
- Overrides:
succeededin classorg.apache.jackrabbit.webdav.client.methods.BaseDavRequest- Returns:
- Return true only when when Response is Multistatus.
- See Also:
BaseDavRequest.succeeded(HttpResponse)
-
getResponseSynctoken
public String getResponseSynctoken(org.apache.http.HttpResponse response)
-
getResponseBodyAsMultiStatus
public org.apache.jackrabbit.webdav.MultiStatus getResponseBodyAsMultiStatus(org.apache.http.HttpResponse response) throws org.apache.jackrabbit.webdav.DavExceptionAdapted from DavMethodBase to handle MultiStatus responses.- Overrides:
getResponseBodyAsMultiStatusin classorg.apache.jackrabbit.webdav.client.methods.BaseDavRequest- Parameters:
response-HttpResponseto be converted toMultiStatus- Returns:
- MultiStatus response
- Throws:
org.apache.jackrabbit.webdav.DavException- if the response body could not be parsed
-
processResponseBody
protected void processResponseBody(org.apache.http.HttpResponse response)
Process the sync-token, from the response.
-
reset
public void reset()
- Overrides:
resetin classorg.apache.http.client.methods.AbstractExecutionAwareRequest
-
-