Class VersionControlMethod

    • Constructor Detail

      • VersionControlMethod

        public VersionControlMethod()
        Method constructor.
      • VersionControlMethod

        public VersionControlMethod​(java.lang.String path)
        Method constructor.
      • VersionControlMethod

        public VersionControlMethod​(java.lang.String path,
                                    java.lang.String sTarget)
    • Method Detail

      • 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​(java.lang.String headerName,
                                     java.lang.String headerValue)
        Specified by:
        setRequestHeader in interface org.apache.commons.httpclient.HttpMethod
        Overrides:
        setRequestHeader in class org.apache.commons.httpclient.HttpMethodBase
      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface org.apache.commons.httpclient.HttpMethod
        Specified by:
        getName in class org.apache.commons.httpclient.HttpMethodBase
      • generateRequestBody

        protected java.lang.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​(java.io.InputStream input,
                                  org.apache.commons.httpclient.HttpState state,
                                  org.apache.commons.httpclient.HttpConnection conn)
                           throws java.io.IOException,
                                  org.apache.commons.httpclient.HttpException
        Parse response.
        Overrides:
        parseResponse in class XMLResponseMethodBase
        Parameters:
        input - Input stream
        Throws:
        java.io.IOException
        org.apache.commons.httpclient.HttpException