public abstract class BaseDavRequest extends HttpEntityEnclosingRequestBase
headergroup, params| Constructor and Description |
|---|
BaseDavRequest(URI uri) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkSuccess(HttpResponse response)
Check the response and throw when it is considered to represent a failure.
|
Document |
getResponseBodyAsDocument(HttpEntity entity)
Gets a
Document representing the response body. |
EventDiscovery |
getResponseBodyAsEventDiscovery(HttpResponse response)
Return response body as
EventDiscovery object. |
LockDiscovery |
getResponseBodyAsLockDiscovery(HttpResponse response)
Return response body as
LockDiscovery object. |
MultiStatus |
getResponseBodyAsMultiStatus(HttpResponse response)
Return response body as
MultiStatus object. |
SubscriptionDiscovery |
getResponseBodyAsSubscriptionDiscovery(HttpResponse response)
Return response body as
SubscriptionDiscovery object. |
DavException |
getResponseException(HttpResponse response)
Obtain a
DavException representing the response. |
boolean |
succeeded(HttpResponse response)
Check the provided
HttpResponse for successful execution. |
clone, expectContinue, getEntity, setEntitygetConfig, getMethod, 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, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetRequestLineaddHeader, addHeader, containsHeader, getAllHeaders, getFirstHeader, getHeaders, getLastHeader, getParams, getProtocolVersion, headerIterator, headerIterator, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setParamsabort, isAbortedpublic BaseDavRequest(URI uri)
public Document getResponseBodyAsDocument(HttpEntity entity) throws IOException
Document representing the response body.null for null entityIOException - in case of I/O or XMP pasting problemspublic MultiStatus getResponseBodyAsMultiStatus(HttpResponse response) throws DavException
MultiStatus object.IllegalStateException - when response does not represent a MultiStatusDavException - for failures in obtaining/parsing the response bodypublic LockDiscovery getResponseBodyAsLockDiscovery(HttpResponse response) throws DavException
LockDiscovery object.IllegalStateException - when response does not represent a LockDiscoveryDavException - for failures in obtaining/parsing the response bodypublic SubscriptionDiscovery getResponseBodyAsSubscriptionDiscovery(HttpResponse response) throws DavException
SubscriptionDiscovery object.IllegalStateException - when response does not represent a SubscriptionDiscoveryDavException - for failures in obtaining/parsing the response bodypublic EventDiscovery getResponseBodyAsEventDiscovery(HttpResponse response) throws DavException
EventDiscovery object.IllegalStateException - when response does not represent a EventDiscoveryDavException - for failures in obtaining/parsing the response bodypublic void checkSuccess(HttpResponse response) throws DavException
DavExceptionpublic DavException getResponseException(HttpResponse response)
DavException representing the response.IllegalStateException - when the response is considered to be successfulpublic boolean succeeded(HttpResponse response)
HttpResponse 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).Copyright © 2004–2022 The Apache Software Foundation. All rights reserved.