Class DeleteMethod

  • All Implemented Interfaces:
    HttpMethod

    @Deprecated
    public class DeleteMethod
    extends HttpMethodBase
    Deprecated.
    Jakarta Commons HttpClient 3.x is deprecated in the Jenkins project. It is not recommended to use it in any new code. Instead, use HTTP client API plugins as a dependency in your code. E.g. Apache HttpComponents Client API 4.x Plugin or Async HTTP Client Plugin.
    Implements the HTTP DELETE method.

    The HTTP DELETE method is defined in section 9.7 of RFC2616:

    The DELETE method requests that the origin server delete the resource identified by the Request-URI. This method MAY be overridden by human intervention (or other means) on the origin server.

    Since:
    1.0
    • Constructor Detail

      • DeleteMethod

        public DeleteMethod()
        Deprecated.
        No-arg constructor.
        Since:
        1.0
      • DeleteMethod

        public DeleteMethod​(java.lang.String uri)
        Deprecated.
        Constructor specifying a URI.
        Parameters:
        uri - either an absolute or relative URI
        Since:
        1.0
    • Method Detail

      • getName

        public java.lang.String getName()
        Deprecated.
        Returns "DELETE".
        Specified by:
        getName in interface HttpMethod
        Specified by:
        getName in class HttpMethodBase
        Returns:
        "DELETE"
        Since:
        2.0