org.apache.webdav.lib.methods
Class PropPatchMethod
public class PropPatchMethod
PROPPATCH Method.
protected Hashtable | toRemove - Hashtable of the properties to remove.
|
protected Hashtable | toSet - Hashtable of the properties to set.
|
void | addPropertyToRemove(String name) - Add property to remove.
|
void | addPropertyToRemove(String name, String namespace, String namespaceInfo) - Add property to remove.
|
void | addPropertyToSet(String name, String value) - Add a new property to set.
|
void | addPropertyToSet(String name, String value, String namespace, String namespaceInfo) - Add a new property to set.
|
void | addRequestHeaders(HttpState state, HttpConnection conn) - Generate additional headers needed by the request.
|
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 |
toRemove
protected Hashtable toRemove
Hashtable of the properties to remove.
toSet
protected Hashtable toSet
Hashtable of the properties to set.
PropPatchMethod
public PropPatchMethod()
Method constructor.
PropPatchMethod
public PropPatchMethod(String path)
Method constructor.
addPropertyToRemove
public void addPropertyToRemove(String name)
Add property to remove.
addPropertyToRemove
public void addPropertyToRemove(String name,
String namespace,
String namespaceInfo)
Add property to remove.
name
- Property namenamespace
- Namespace abbreviationnamespaceInfo
- Namespace information
addPropertyToSet
public void addPropertyToSet(String name,
String value)
Add a new property to set.
name
- Property namevalue
- Property value
addPropertyToSet
public void addPropertyToSet(String name,
String value,
String namespace,
String namespaceInfo)
Add a new property to set.
name
- Property namevalue
- Property valuenamespace
- Namespace abbreviationnamespaceInfo
- Namespace information
addRequestHeaders
public void addRequestHeaders(HttpState state,
HttpConnection conn)
throws IOException,
HttpException
Generate additional headers needed by the request.
state
- State tokenconn
- the connection
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