org.apache.webdav.lib.methods

Class VersionControlMethod

Implemented Interfaces:
DepthSupport

public class VersionControlMethod
extends XMLResponseMethodBase
implements DepthSupport

Nested Class Summary

Nested classes/interfaces inherited from class org.apache.webdav.lib.methods.XMLResponseMethodBase

XMLResponseMethodBase.OptionsResponse, XMLResponseMethodBase.Response, XMLResponseMethodBase.ResponseWithinMultistatus, XMLResponseMethodBase.SingleResponse

Field Summary

Fields inherited from class org.apache.webdav.lib.methods.XMLResponseMethodBase

builder, decodeResponseHrefs, responseURLs

Fields inherited from interface org.apache.webdav.lib.methods.DepthSupport

DEPTH_0, DEPTH_1, DEPTH_INFINITY

Constructor Summary

VersionControlMethod()
Method constructor.
VersionControlMethod(String path)
Method constructor.
VersionControlMethod(String path, String sTarget)

Method Summary

protected String
generateRequestBody()
DAV requests that contain a body must override this function to generate that body.
int
getDepth()
Depth getter.
String
getName()
void
parseResponse(InputStream input, HttpState state, HttpConnection conn)
Parse response.
void
setDepth(int depth)
Depth setter.
void
setRequestHeader(String headerName, String headerValue)

Methods inherited from class org.apache.webdav.lib.methods.XMLResponseMethodBase

convertElementToProperty, generateRequestBody, getDebug, getRequestContentLength, getResponseDocument, getResponseHashtable, getResponseURLs, getResponses, parseResponse, parseXMLResponse, readResponseBody, recycle, setDebug, setDecodeResponseHrefs, setDocument, setResponseHashtable, writeRequestBody

Methods inherited from class org.apache.webdav.lib.methods.HttpRequestBodyMethodBase

getRequestContentLength, isRequestContentAlreadySet, readContinueCode, recycle, setRequestBody, setRequestBody, setRequestBody, setRequestBody, setRequestBody, writeRequestBody

Constructor Details

VersionControlMethod

public VersionControlMethod()
Method constructor.

VersionControlMethod

public VersionControlMethod(String path)
Method constructor.

VersionControlMethod

public VersionControlMethod(String path,
                            String sTarget)

Method Details

generateRequestBody

protected String generateRequestBody()
DAV requests that contain a body must override this function to generate that body.

The default behavior simply returns an empty body.

Overrides:
generateRequestBody in interface XMLResponseMethodBase

getDepth

public int getDepth()
Depth getter.
Specified by:
getDepth in interface DepthSupport
Returns:
int depth value

getName

public String getName()

parseResponse

public void parseResponse(InputStream input,
                          HttpState state,
                          HttpConnection conn)
            throws IOException,
                   HttpException
Parse response.
Overrides:
parseResponse in interface XMLResponseMethodBase
Parameters:
input - Input stream

setDepth

public void setDepth(int depth)
Depth setter.
Specified by:
setDepth in interface DepthSupport
Parameters:
depth - New depth value

setRequestHeader

public void setRequestHeader(String headerName,
                             String headerValue)