|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.httpclient.HttpMethodBase
org.apache.webdav.lib.methods.HttpRequestBodyMethodBase
org.apache.webdav.lib.methods.XMLResponseMethodBase
org.apache.webdav.lib.methods.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.
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 |
Constructor Summary | |
---|---|
UpdateMethod()
Method constructor. |
|
UpdateMethod(java.lang.String path)
Method constructor. |
|
UpdateMethod(java.lang.String path,
java.lang.String target)
Method constructor. |
Method Summary | |
---|---|
protected java.lang.String |
generateRequestBody()
DAV requests that contain a body must override this function to generate that body. |
java.lang.String |
getName()
|
void |
parseResponse(java.io.InputStream input,
HttpState state,
HttpConnection conn)
Parse response. |
Methods inherited from class org.apache.webdav.lib.methods.XMLResponseMethodBase |
---|
convertElementToProperty, getDebug, getRequestContentLength, getResponseDocument, getResponseHashtable, getResponses, getResponseURLs, parseXMLResponse, readResponseBody, recycle, setDebug, setDecodeResponseHrefs, setDocument, setResponseHashtable, writeRequestBody |
Methods inherited from class org.apache.webdav.lib.methods.HttpRequestBodyMethodBase |
---|
isRequestContentAlreadySet, readContinueCode, setRequestBody, setRequestBody, setRequestBody, setRequestBody, setRequestBody |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UpdateMethod()
public UpdateMethod(java.lang.String path)
public UpdateMethod(java.lang.String path, java.lang.String target)
path
- target
- Method Detail |
---|
public java.lang.String getName()
getName
in interface HttpMethod
getName
in class HttpMethodBase
protected java.lang.String generateRequestBody()
The default behavior simply returns an empty body.
generateRequestBody
in class XMLResponseMethodBase
public void parseResponse(java.io.InputStream input, HttpState state, HttpConnection conn) throws java.io.IOException, HttpException
parseResponse
in class XMLResponseMethodBase
input
- Input stream
java.io.IOException
HttpException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |