Class UnbindMethod

java.lang.Object
org.apache.commons.httpclient.HttpMethodBase
All Implemented Interfaces:
org.apache.commons.httpclient.HttpMethod

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 invalid input: '<'?xml version="1.0" encoding="utf-8" ?> invalid input: '<'D:unbind xmlns:D="DAV:"> invalid input: '<'D:segment>foo.htmlinvalid input: '<'/D:segment> invalid input: '<'/D:unbind> >> 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.
  • Field Details

  • Constructor Details

    • UnbindMethod

      public UnbindMethod()
      Method constructor.
    • UnbindMethod

      public UnbindMethod(String binding)
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface org.apache.commons.httpclient.HttpMethod
      Specified by:
      getName in class org.apache.commons.httpclient.HttpMethodBase
    • 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 class XMLResponseMethodBase
    • getSegment

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

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