Class UnbindMethod

  • 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 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.
    • Constructor Detail

      • UnbindMethod

        public UnbindMethod()
        Method constructor.
      • UnbindMethod

        public UnbindMethod​(java.lang.String binding)
    • Method Detail

      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface org.apache.commons.httpclient.HttpMethod
        Specified by:
        getName in class org.apache.commons.httpclient.HttpMethodBase
      • generateRequestBody

        protected java.lang.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 java.lang.String getSegment()
        Returns:
        resource name to be unbound
      • setSegment

        public void setSegment​(java.lang.String segment)
        Parameters:
        segment - resource name to be unbound