hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1650292 - /httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/methods/RequestBuilder.java
Date Thu, 08 Jan 2015 14:04:05 GMT
Author: olegk
Date: Thu Jan  8 14:04:04 2015
New Revision: 1650292

URL: http://svn.apache.org/r1650292
Log:
RequestBuilder add Patch support

Modified:
    httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/methods/RequestBuilder.java

Modified: httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/methods/RequestBuilder.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/methods/RequestBuilder.java?rev=1650292&r1=1650291&r2=1650292&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/methods/RequestBuilder.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/methods/RequestBuilder.java
Thu Jan  8 14:04:04 2015
@@ -142,6 +142,27 @@ public class RequestBuilder {
         return new RequestBuilder(HttpHead.METHOD_NAME, uri);
     }
 
+    /**
+     * @since 4.4
+     */
+    public static RequestBuilder patch() {
+        return new RequestBuilder(HttpPatch.METHOD_NAME);
+    }
+
+    /**
+     * @since 4.4
+     */
+    public static RequestBuilder patch(final URI uri) {
+        return new RequestBuilder(HttpPatch.METHOD_NAME, uri);
+    }
+
+    /**
+     * @since 4.4
+     */
+    public static RequestBuilder patch(final String uri) {
+        return new RequestBuilder(HttpPatch.METHOD_NAME, uri);
+    }
+
     public static RequestBuilder post() {
         return new RequestBuilder(HttpPost.METHOD_NAME);
     }



Mime
View raw message