Class CheckinMethod

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

public class CheckinMethod extends XMLResponseMethodBase
The CHECKIN method can be applied to a checked-out version-controlled resource to produce a new version whose content and dead properties are copied from the checked-out resource.

This implementation of a CHECKIN client method does support a a request body.

If a CHECKIN request fails, the server state preceding the request MUST be restored. The request body MUST be a DAV:checkin XML element with at most one DAV:keep-checked-out or DAV:fork-ok.

Example Request

 CHECKIN /foo.html HTTP/1.1
 Host: www.server.org
 Content-type: text/xml; charset="utf-8"
 Content-Length: xx
 

Example Response

 HTTP/1.1 201 Created
 Location: http://server.org/history/1/1.1
 Content-type: text/xml; charset="utf-8"
 
  • Constructor Details

    • CheckinMethod

      public CheckinMethod()
      Method constructor.
    • CheckinMethod

      public CheckinMethod(String path)
      Method constructor.
  • Method Details

    • 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
    • getName

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