@@ -0,0 +1,2533 @@
+/*%0A * ====================================================================%0A * Licensed to the Apache Software Foundation (ASF) under one%0A * or more contributor license agreements.  See the NOTICE file%0A * distributed with this work for additional information%0A * regarding copyright ownership.  The ASF licenses this file%0A * to you under the Apache License, Version 2.0 (the%0A * %22License%22); you may not use this file except in compliance%0A * with the License.  You may obtain a copy of the License at%0A *%0A *   http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing,%0A * software distributed under the License is distributed on an%0A * %22AS IS%22 BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY%0A * KIND, either express or implied.  See the License for the%0A * specific language governing permissions and limitations%0A * under the License.%0A * ====================================================================%0A *%0A * This software consists of voluntary contributions made by many%0A * individuals on behalf of the Apache Software Foundation.  For more%0A * information on the Apache Software Foundation, please see%0A * %3Chttp://www.apache.org/%3E.%0A *%0A */%0A%0Apackage org.apache.http.client.methods;%0A%0Aimport java.net.URI;%0A%0Aimport org.apache.http.annotation.NotThreadSafe;%0A%0A/**%0A * HTTP PATCH method.%0A * %3Cp%3E%0A * The HTTP PATCH method is defined in %3Ca%0A * href=%22http://tools.ietf.org/html/rfc5789%22%3ERF5789%3C/a%3E: %3Cblockquote%3E The PATCH%0A * method requests that a set of changes described in the request entity be%0A * applied to the resource identified by the Request- URI. Differs from the PUT%0A * method in the way the server processes the enclosed entity to modify the%0A * resource identified by the Request-URI. In a PUT request, the enclosed entity%0A * origin server, and the client is requesting that the stored version be%0A * replaced. With PATCH, however, the enclosed entity contains a set of%0A * instructions describing how a resource currently residing on the origin%0A * server should be modified to produce a new version. %3C/blockquote%3E%0A * %3C/p%3E%0A *%0A * @since 4.2%0A */%0A@NotThreadSafe%0Apublic class HttpPatch extends HttpEntityEnclosingRequestBase %7B%0A%0A    public final static String METHOD_NAME = %22PATCH%22;%0A%0A    public HttpPatch() %7B%0A        super();%0A    %7D%0A%0A    public HttpPatch(final URI uri) %7B%0A        super();%0A        setURI(uri);%0A    %7D%0A%0A    public HttpPatch(final String uri) %7B%0A        super();%0A        setURI(URI.create(uri));%0A    %7D%0A%0A    @Override%0A    public String getMethod() %7B%0A        return METHOD_NAME;%0A    %7D%0A%0A%7D%0A

PATCH HTTP method Contributed by Alin Vasile <alinachegalati at yahoo dot com>