|
|||||||||
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.PropPatchMethod
public class PropPatchMethod
PROPPATCH Method.
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 | |
---|---|
protected java.util.Hashtable |
toRemove
Hashtable of the properties to remove. |
protected java.util.Hashtable |
toSet
Hashtable of the properties to set. |
Fields inherited from class org.apache.webdav.lib.methods.XMLResponseMethodBase |
---|
builder, decodeResponseHrefs, responseURLs |
Constructor Summary | |
---|---|
PropPatchMethod()
Method constructor. |
|
PropPatchMethod(java.lang.String path)
Method constructor. |
Method Summary | |
---|---|
void |
addPropertyToRemove(java.lang.String name)
Add property to remove. |
void |
addPropertyToRemove(java.lang.String name,
java.lang.String namespace,
java.lang.String namespaceInfo)
Add property to remove. |
void |
addPropertyToSet(java.lang.String name,
java.lang.String value)
Add a new property to set. |
void |
addPropertyToSet(java.lang.String name,
java.lang.String value,
java.lang.String namespace,
java.lang.String namespaceInfo)
Add a new property to set. |
void |
addRequestHeaders(HttpState state,
HttpConnection conn)
Generate additional headers needed by the request. |
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 |
Field Detail |
---|
protected java.util.Hashtable toSet
protected java.util.Hashtable toRemove
Constructor Detail |
---|
public PropPatchMethod()
public PropPatchMethod(java.lang.String path)
Method Detail |
---|
public void addPropertyToSet(java.lang.String name, java.lang.String value)
name
- Property namevalue
- Property valuepublic void addPropertyToSet(java.lang.String name, java.lang.String value, java.lang.String namespace, java.lang.String namespaceInfo)
name
- Property namevalue
- Property valuenamespace
- Namespace abbreviationnamespaceInfo
- Namespace informationpublic void addPropertyToRemove(java.lang.String name)
name
- Property namepublic void addPropertyToRemove(java.lang.String name, java.lang.String namespace, java.lang.String namespaceInfo)
name
- Property namenamespace
- Namespace abbreviationnamespaceInfo
- Namespace informationpublic java.lang.String getName()
getName
in interface HttpMethod
getName
in class HttpMethodBase
public void addRequestHeaders(HttpState state, HttpConnection conn) throws java.io.IOException, HttpException
addRequestHeaders
in class HttpMethodBase
state
- State tokenconn
- the connection
java.io.IOException
HttpException
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 |