public interface DavMethod
extends org.apache.commons.httpclient.HttpMethod
DavMethod
...Modifier and Type | Method and Description |
---|---|
void |
addRequestHeader(Header header)
Adds the specified
request header , NOT overwriting any
previous value. |
void |
checkSuccess() |
Document |
getResponseBodyAsDocument()
Parse the response body into an Xml
Document . |
MultiStatus |
getResponseBodyAsMultiStatus()
Return the response body as
MultiStatus object. |
DavException |
getResponseException()
Builds a DavException for the status line and the DAV:error element that
may be present in the response body.
|
void |
setRequestHeader(Header header)
Set the specified request header, overwriting any previous value.
|
boolean |
succeeded() |
abort, addRequestHeader, addRequestHeader, addResponseFooter, execute, getDoAuthentication, getFollowRedirects, getHostAuthState, getHostConfiguration, getName, getParams, getPath, getProxyAuthState, getQueryString, getRequestHeader, getRequestHeaders, getRequestHeaders, getResponseBody, getResponseBodyAsStream, getResponseBodyAsString, getResponseFooter, getResponseFooters, getResponseHeader, getResponseHeaders, getResponseHeaders, getStatusCode, getStatusLine, getStatusText, getURI, hasBeenUsed, isRequestSent, isStrictMode, recycle, releaseConnection, removeRequestHeader, removeRequestHeader, setDoAuthentication, setFollowRedirects, setParams, setPath, setQueryString, setQueryString, setRequestHeader, setRequestHeader, setStrictMode, setURI, validate
void addRequestHeader(Header header)
request header
, NOT overwriting any
previous value. Note that header-name matching is case insensitive.header
- HttpMethod.addRequestHeader(String, String)
void setRequestHeader(Header header)
header
- HttpMethod.setRequestHeader(String, String)
Document getResponseBodyAsDocument() throws IOException
Document
.null
if the response stream is
null
.IOException
- If an I/O (transport) problem occurs while obtaining
the response body of if the XML parsing fails.HttpMethod.getResponseBody()
,
HttpMethod.getResponseBodyAsStream()
,
HttpMethod.getResponseBodyAsString()
MultiStatus getResponseBodyAsMultiStatus() throws IOException, DavException
MultiStatus
object.IOException
- if the response body could not be parsedDavException
- if the status code is other than MultiStatus or if
obtaining the response XML document failsgetResponseBodyAsDocument()
DavException getResponseException() throws IOException
null
will be returned.null
if this method did not result
in an error.IOException
void checkSuccess() throws DavException, IOException
DavException
IOException
boolean succeeded()
Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.