org.apache.jackrabbit.webdav.client.methods
Class DavMethodBase

java.lang.Object
  extended byorg.apache.commons.httpclient.HttpMethodBase
      extended byorg.apache.commons.httpclient.methods.GetMethod
          extended byorg.apache.commons.httpclient.methods.ExpectContinueMethod
              extended byorg.apache.commons.httpclient.methods.EntityEnclosingMethod
                  extended byorg.apache.jackrabbit.webdav.client.methods.DavMethodBase
All Implemented Interfaces:
org.apache.jackrabbit.webdav.DavConstants, org.apache.commons.httpclient.HttpMethod
Direct Known Subclasses:
CheckinMethod, CheckoutMethod, CopyMethod, LabelMethod, LockMethod, MergeMethod, MkColMethod, MkWorkspaceMethod, MoveMethod, OptionsMethod, OrderPatchMethod, PropFindMethod, PropPatchMethod, ReportMethod, SearchMethod, UnLockMethod, UpdateMethod, VersionControlMethod

public abstract class DavMethodBase
extends org.apache.commons.httpclient.methods.EntityEnclosingMethod
implements org.apache.jackrabbit.webdav.DavConstants

DavMethodBase...


Field Summary
 
Fields inherited from class org.apache.commons.httpclient.methods.EntityEnclosingMethod
CONTENT_LENGTH_AUTO, CONTENT_LENGTH_CHUNKED
 
Fields inherited from class org.apache.commons.httpclient.HttpMethodBase
USER_AGENT
 
Fields inherited from interface org.apache.jackrabbit.webdav.DavConstants
creationDateFormat, DEPTH_0, DEPTH_1, DEPTH_INFINITY, DEPTH_INFINITY_S, HEADER_AUTHORIZATION, HEADER_CONTENT_LANGUAGE, HEADER_CONTENT_LENGTH, HEADER_CONTENT_TYPE, HEADER_DAV, HEADER_DEPTH, HEADER_DESTINATION, HEADER_ETAG, HEADER_IF, HEADER_LAST_MODIFIED, HEADER_LOCK_TOKEN, HEADER_OVERWRITE, HEADER_TIMEOUT, INFINITE_TIMEOUT, modificationDateFormat, NAMESPACE, OPAQUE_LOCK_TOKEN_PREFIX, PROPERTY_CREATIONDATE, PROPERTY_DISPLAYNAME, PROPERTY_GETCONTENTLANGUAGE, PROPERTY_GETCONTENTLENGTH, PROPERTY_GETCONTENTTYPE, PROPERTY_GETETAG, PROPERTY_GETLASTMODIFIED, PROPERTY_LOCKDISCOVERY, PROPERTY_RESOURCETYPE, PROPERTY_SOURCE, PROPERTY_SUPPORTEDLOCK, PROPFIND_ALL_PROP, PROPFIND_BY_PROPERTY, PROPFIND_PROPERTY_NAMES, TIMEOUT_INFINITE, UNDEFINED_TIMEOUT, XML_ACTIVELOCK, XML_ALLPROP, XML_COLLECTION, XML_DEPTH, XML_DST, XML_EXCLUSIVE, XML_HREF, XML_KEEPALIVE, XML_LINK, XML_LOCKENTRY, XML_LOCKINFO, XML_LOCKSCOPE, XML_LOCKTOKEN, XML_LOCKTYPE, XML_MULTISTATUS, XML_OMIT, XML_OWNER, XML_PROP, XML_PROPERTYBEHAVIOR, XML_PROPERTYUPDATE, XML_PROPFIND, XML_PROPNAME, XML_PROPSTAT, XML_REMOVE, XML_RESPONSE, XML_RESPONSEDESCRIPTION, XML_SET, XML_SHARED, XML_SOURCE, XML_STATUS, XML_TIMEOUT, XML_WRITE
 
Constructor Summary
DavMethodBase(String uri)
           
 
Method Summary
 Document getResponseBodyAsDocument()
          Parse the response body into an Xml Document.
 org.apache.jackrabbit.webdav.MultiStatus getResponseBodyAsMultiStatus()
          Return the response body as MultiStatus object.
 org.apache.jackrabbit.webdav.DavException getResponseException()
           
 void setRequestBody(org.apache.jackrabbit.webdav.xml.XmlSerializable requestBody)
           
 void setRequestHeader(org.apache.jackrabbit.webdav.header.Header header)
           
 
Methods inherited from class org.apache.commons.httpclient.methods.EntityEnclosingMethod
addContentLengthRequestHeader, clearRequestBody, generateRequestBody, getFollowRedirects, getRequestBody, getRequestBodyAsString, getRequestContentLength, hasRequestContent, recycle, setFollowRedirects, setRequestBody, setRequestBody, setRequestContentLength, writeRequestBody
 
Methods inherited from class org.apache.commons.httpclient.methods.ExpectContinueMethod
addRequestHeaders, getUseExpectHeader, setUseExpectHeader
 
Methods inherited from class org.apache.commons.httpclient.methods.GetMethod
getFileData, getName, getTempDir, getTempFile, getUseDisk, readResponseBody, setFileData, setTempDir, setTempFile, setUseDisk
 
Methods inherited from class org.apache.commons.httpclient.HttpMethodBase
addAuthorizationRequestHeader, addCookieRequestHeader, addHostRequestHeader, addProxyAuthorizationRequestHeader, addProxyConnectionHeader, addRequestHeader, addRequestHeader, addResponseFooter, addUserAgentRequestHeader, checkNotUsed, checkUsed, execute, fakeResponse, generateRequestLine, getAuthenticationRealm, getContentCharSet, getDoAuthentication, getHostConfiguration, getMethodRetryHandler, getPath, getProxyAuthenticationRealm, getQueryString, getRecoverableExceptionCount, getRequestCharSet, getRequestHeader, getRequestHeaderGroup, getRequestHeaders, getResponseBody, getResponseBodyAsStream, getResponseBodyAsString, getResponseCharSet, getResponseContentLength, getResponseFooter, getResponseFooters, getResponseHeader, getResponseHeaderGroup, getResponseHeaders, getResponseStream, getResponseTrailerHeaderGroup, getStatusCode, getStatusLine, getStatusText, getURI, hasBeenUsed, isConnectionCloseForced, isHttp11, isStrictMode, processResponseBody, processResponseHeaders, processStatusLine, readResponse, readResponseHeaders, readStatusLine, releaseConnection, removeRequestHeader, responseBodyConsumed, setConnectionCloseForced, setDoAuthentication, setHostConfiguration, setHttp11, setMethodRetryHandler, setPath, setQueryString, setQueryString, setRequestHeader, setRequestHeader, setResponseStream, setStrictMode, shouldCloseConnection, validate, writeRequest, writeRequestHeaders, writeRequestLine
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DavMethodBase

public DavMethodBase(String uri)
Method Detail

setRequestHeader

public void setRequestHeader(org.apache.jackrabbit.webdav.header.Header header)
Parameters:
header -

setRequestBody

public void setRequestBody(org.apache.jackrabbit.webdav.xml.XmlSerializable requestBody)
                    throws IOException
Parameters:
requestBody -
Throws:
IOException

getResponseBodyAsMultiStatus

public org.apache.jackrabbit.webdav.MultiStatus getResponseBodyAsMultiStatus()
                                                                      throws IOException,
                                                                             org.apache.jackrabbit.webdav.DavException
Return the response body as MultiStatus object.

Returns:
Throws:
IOException - if the response body could not be parsed
org.apache.jackrabbit.webdav.DavException - if the status code is other than MultiStatus

getResponseBodyAsDocument

public Document getResponseBodyAsDocument()
                                   throws IOException
Parse the response body into an Xml Document.

Returns:
Xml document or null if the response stream is null.
Throws:
IOException - if the parsing fails.

getResponseException

public org.apache.jackrabbit.webdav.DavException getResponseException()
                                                               throws IOException
Returns:
Throws:
IOException


Copyright © 2005-2006 . All Rights Reserved.