Class VersionControlMethod

java.lang.Object
org.apache.commons.httpclient.HttpMethodBase
All Implemented Interfaces:
org.apache.commons.httpclient.HttpMethod, DepthSupport

public class VersionControlMethod extends XMLResponseMethodBase implements DepthSupport
  • Constructor Details

    • VersionControlMethod

      public VersionControlMethod()
      Method constructor.
    • VersionControlMethod

      public VersionControlMethod(String path)
      Method constructor.
    • VersionControlMethod

      public VersionControlMethod(String path, String sTarget)
  • Method Details

    • getDepth

      public int getDepth()
      Description copied from interface: DepthSupport
      Depth getter.
      Specified by:
      getDepth in interface DepthSupport
      Returns:
      int depth value
    • setDepth

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

      public void setRequestHeader(String headerName, String headerValue)
      Specified by:
      setRequestHeader in interface org.apache.commons.httpclient.HttpMethod
      Overrides:
      setRequestHeader in class org.apache.commons.httpclient.HttpMethodBase
    • getName

      public String getName()
      Specified by:
      getName in interface org.apache.commons.httpclient.HttpMethod
      Specified by:
      getName in class org.apache.commons.httpclient.HttpMethodBase
    • 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 class XMLResponseMethodBase
    • parseResponse

      public void parseResponse(InputStream input, org.apache.commons.httpclient.HttpState state, org.apache.commons.httpclient.HttpConnection conn) throws IOException, org.apache.commons.httpclient.HttpException
      Parse response.
      Overrides:
      parseResponse in class XMLResponseMethodBase
      Parameters:
      input - Input stream
      Throws:
      IOException
      org.apache.commons.httpclient.HttpException