org.apache.webdav.lib.methods
Class UnbindMethod
public class UnbindMethod
The UNBIND method modifies the collection identified by the Request-URI,
by removing the binding identified by the segment specified in the UNBIND
body.
UNBIND Method Example:
>> Request:
UNBIND /CollX HTTP/1.1
Host: www.example.com
Content-Type: text/xml; charset="utf-8"
Content-Length: xxx
<?xml version="1.0" encoding="utf-8" ?>
foo.html
>> Response:
HTTP/1.1 200 OK
The server removed the binding named "foo.html" from the collection,
"http://www.example.com/CollX". A request to the resource named
"http://www.example.com/CollX/foo.html" will return a 404 (Not Found)
response.
convertElementToProperty , generateRequestBody , getDebug , getRequestContentLength , getResponseDocument , getResponseHashtable , getResponseURLs , getResponses , parseResponse , parseXMLResponse , readResponseBody , recycle , setDebug , setDecodeResponseHrefs , setDocument , setResponseHashtable , writeRequestBody |
NAME
public static final String NAME
UnbindMethod
public UnbindMethod()
Method constructor.
UnbindMethod
public UnbindMethod(String binding)
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()
getSegment
public String getSegment()
- resource name to be unbound
setSegment
public void setSegment(String segment)
segment
- resource name to be unbound