org.apache.webdav.lib.methods
Class UpdateMethod
public class UpdateMethod
The Update method updates a version-controlled resource to a new version.
Two parameters are required, the path of the resource, and a URI identifying
the version from the history to which to update.
protected String | generateRequestBody()- DAV requests that contain a body must override this function to
generate that body.
|
String | getName()
|
void | parseResponse(InputStream input, HttpState state, HttpConnection conn)- Parse response.
|
convertElementToProperty, generateRequestBody, getDebug, getRequestContentLength, getResponseDocument, getResponseHashtable, getResponseURLs, getResponses, parseResponse, parseXMLResponse, readResponseBody, recycle, setDebug, setDecodeResponseHrefs, setDocument, setResponseHashtable, writeRequestBody |
UpdateMethod
public UpdateMethod()
Method constructor.
UpdateMethod
public UpdateMethod(String path)
Method constructor.
UpdateMethod
public UpdateMethod(String path,
String target) Method constructor.
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.
- generateRequestBody in interface XMLResponseMethodBase
getName
public String getName()
parseResponse
public void parseResponse(InputStream input,
HttpState state,
HttpConnection conn)
throws IOException,
HttpException Parse response.
- parseResponse in interface XMLResponseMethodBase