@@ -527,6 +527,17 @@ public List<DavResource> patch(String url, Map<QName, String> setProps, List<QNa
527527 @ Override
528528 public List <DavResource > patch (String url , List <Element > setProps , List <QName > removeProps ) throws IOException
529529 {
530+ return this .patch (url , setProps , removeProps , Collections .emptyMap ());
531+ }
532+
533+ @ Override
534+ public List <DavResource > patch (String url , List <Element > setProps , List <QName > removeProps , Map <String , String > headers ) throws IOException
535+ {
536+ HttpPropPatch patch = new HttpPropPatch (url );
537+ for (Map .Entry <String , String > h : headers .entrySet ())
538+ {
539+ patch .addHeader (new BasicHeader (h .getKey (), h .getValue ()));
540+ }
530541 HttpPropPatch entity = new HttpPropPatch (url );
531542 // Build WebDAV <code>PROPPATCH</code> entity.
532543 Propertyupdate body = new Propertyupdate ();
@@ -970,6 +981,12 @@ public void put(String url, File localFile, String contentType, boolean expectCo
970981
971982 @ Override
972983 public void delete (String url ) throws IOException
984+ {
985+ this .delete (url , Collections .emptyMap ());
986+ }
987+
988+ @ Override
989+ public void delete (String url , Map <String , String > headers ) throws IOException
973990 {
974991 HttpDelete delete = new HttpDelete (url );
975992 this .execute (delete , new VoidResponseHandler ());
@@ -1006,8 +1023,18 @@ public void copy(String sourceUrl, String destinationUrl) throws IOException
10061023
10071024 @ Override
10081025 public void copy (String sourceUrl , String destinationUrl , boolean overwrite ) throws IOException
1026+ {
1027+ this .copy (sourceUrl , destinationUrl , overwrite , Collections .emptyMap ());
1028+ }
1029+
1030+ @ Override
1031+ public void copy (String sourceUrl , String destinationUrl , boolean overwrite , Map <String , String > headers ) throws IOException
10091032 {
10101033 HttpCopy copy = new HttpCopy (sourceUrl , destinationUrl , overwrite );
1034+ for (Map .Entry <String , String > h : headers .entrySet ())
1035+ {
1036+ copy .addHeader (new BasicHeader (h .getKey (), h .getValue ()));
1037+ }
10111038 this .execute (copy , new VoidResponseHandler ());
10121039 }
10131040
0 commit comments