public void removeProperties ( Collection propertyNames ) throws DAVException { Assert . isNotNull ( propertyNames ) ; // Removing no properties is easy. if ( propertyNames . isEmpty ( ) ) return ; // Add the names of the properties to remove to the request body. Document document = newDocument ( ) ; PropertyUpdate propertyUpdate = PropertyUpdate . create ( document ) ; Prop prop = propertyUpdate . addRemove ( ) ; Iterator namesItr = propertyNames . iterator ( ) ; while ( namesItr . hasNext ( ) ) prop . addPropertyName ( ( QualifiedName ) namesItr . next ( ) ) ; // Send the PROPPATCH request. IResponse response = null ; try { response = davClient . proppatch ( locator , newContext ( ) , document ) ; examineResponse ( response ) ; examineMultiStatusResponse ( response ) ; } catch ( IOException e ) { throw new SystemException ( e ) ; } finally { closeResponse ( response ) ; } }
Remove the properties with the given names from this resource .