org.apache.webdav.lib.methods

Class UnbindMethod


public class UnbindMethod
extends XMLResponseMethodBase

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.

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

static String
NAME

Fields inherited from class org.apache.webdav.lib.methods.XMLResponseMethodBase

builder, decodeResponseHrefs, responseURLs

Constructor Summary

UnbindMethod()
Method constructor.
UnbindMethod(String binding)
Method constructor.

Method Summary

protected String
generateRequestBody()
DAV requests that contain a body must override this function to generate that body.
String
getName()
String
getSegment()
void
setSegment(String segment)

Methods inherited from class org.apache.webdav.lib.methods.XMLResponseMethodBase

convertElementToProperty, generateRequestBody, getDebug, getRequestContentLength, getResponseDocument, getResponseHashtable, getResponseURLs, getResponses, parseResponse, parseXMLResponse, readResponseBody, recycle, setDebug, setDecodeResponseHrefs, setDocument, setResponseHashtable, writeRequestBody

Methods inherited from class org.apache.webdav.lib.methods.HttpRequestBodyMethodBase

getRequestContentLength, isRequestContentAlreadySet, readContinueCode, recycle, setRequestBody, setRequestBody, setRequestBody, setRequestBody, setRequestBody, writeRequestBody

Field Details

NAME

public static final String NAME

Constructor Details

UnbindMethod

public UnbindMethod()
Method constructor.

UnbindMethod

public UnbindMethod(String binding)
Method constructor.
Parameters:

Method Details

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.

Overrides:
generateRequestBody in interface XMLResponseMethodBase

getName

public String getName()

getSegment

public String getSegment()
Returns:
resource name to be unbound

setSegment

public void setSegment(String segment)
Parameters:
segment - resource name to be unbound