Class PutMethod

  • All Implemented Interfaces:
    HttpMethod

    @Deprecated
    public class PutMethod
    extends EntityEnclosingMethod
    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 PUT method.

    The HTTP PUT method is defined in section 9.6 of RFC2616:

    The PUT method requests that the enclosed entity be stored under the supplied Request-URI. If the Request-URI refers to an already existing resource, the enclosed entity SHOULD be considered as a modified version of the one residing on the origin server.

    Since:
    1.0
    • Constructor Detail

      • PutMethod

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

        public PutMethod​(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.
        Return "PUT".
        Specified by:
        getName in interface HttpMethod
        Specified by:
        getName in class HttpMethodBase
        Returns:
        "PUT"
        Since:
        2.0