public static HttpRequestBase patch ( String path , Map < String , String > headers , Map < String , String > parameters , HttpEntity entity , Integer timeOutInSeconds ) { HttpPatch patch = new HttpPatch ( path ) ; addHeaders ( patch , headers ) ; addParameters ( patch , parameters ) ; patch . setConfig ( getConfig ( timeOutInSeconds ) ) ; if ( entity != null ) { patch . setEntity ( entity ) ; } return patch ; }
Step 1 . prepare PATCH request