@@ -566,6 +566,17 @@ public List<DavResource> patch(String url, Map<QName, String> setProps, List<QNa
566566 @ Override
567567 public List <DavResource > patch (String url , List <Element > setProps , List <QName > removeProps ) throws IOException
568568 {
569+ return this .patch (url , setProps , removeProps , Collections .emptyMap ());
570+ }
571+
572+ @ Override
573+ public List <DavResource > patch (String url , List <Element > setProps , List <QName > removeProps , Map <String , String > headers ) throws IOException
574+ {
575+ HttpPropPatch patch = new HttpPropPatch (url );
576+ for (Map .Entry <String , String > h : headers .entrySet ())
577+ {
578+ patch .addHeader (new BasicHeader (h .getKey (), h .getValue ()));
579+ }
569580 HttpPropPatch entity = new HttpPropPatch (url );
570581 // Build WebDAV <code>PROPPATCH</code> entity.
571582 Propertyupdate body = new Propertyupdate ();
@@ -987,6 +998,12 @@ public void put(String url, File localFile, String contentType, boolean expectCo
987998
988999 @ Override
9891000 public void delete (String url ) throws IOException
1001+ {
1002+ this .delete (url , Collections .emptyMap ());
1003+ }
1004+
1005+ @ Override
1006+ public void delete (String url , Map <String , String > headers ) throws IOException
9901007 {
9911008 HttpDelete delete = new HttpDelete (url );
9921009 this .execute (delete , new VoidResponseHandler ());
@@ -1023,8 +1040,18 @@ public void copy(String sourceUrl, String destinationUrl) throws IOException
10231040
10241041 @ Override
10251042 public void copy (String sourceUrl , String destinationUrl , boolean overwrite ) throws IOException
1043+ {
1044+ this .copy (sourceUrl , destinationUrl , overwrite , Collections .emptyMap ());
1045+ }
1046+
1047+ @ Override
1048+ public void copy (String sourceUrl , String destinationUrl , boolean overwrite , Map <String , String > headers ) throws IOException
10261049 {
10271050 HttpCopy copy = new HttpCopy (sourceUrl , destinationUrl , overwrite );
1051+ for (Map .Entry <String , String > h : headers .entrySet ())
1052+ {
1053+ copy .addHeader (new BasicHeader (h .getKey (), h .getValue ()));
1054+ }
10281055 this .execute (copy , new VoidResponseHandler ());
10291056 }
10301057
0 commit comments