public void move ( ILocator destination , boolean overwrite , Enumeration names ) throws DAVException { IContext context = newContext ( ) ; context . setOverwrite ( overwrite ) ; Document document = newDocument ( ) ; PropertyBehavior propertyBehavior = PropertyBehavior . create ( document ) ; if ( names == null ) { propertyBehavior . setIsKeepAllAlive ( true ) ; } else { while ( names . hasMoreElements ( ) ) { Object obj = names . nextElement ( ) ; Assert . isTrue ( obj instanceof QualifiedName , Policy . bind ( "assert.propNameMustBeEnumOverQual" ) ) ; //$NON-NLS-1$ // fix this...can we really add property names to href elements? propertyBehavior . addProperty ( ( ( QualifiedName ) obj ) . getLocalName ( ) ) ; } } IResponse response = null ; try { response = davClient . move ( locator , destination , context , document ) ; examineResponse ( response ) ; examineMultiStatusResponse ( response ) ; } catch ( IOException e ) { throw new SystemException ( e ) ; } finally { closeResponse ( response ) ; } }
Move this resource to the location specified by the given locator . If a resource already exists at the destination and the overwrite boolean is true then write over top of the existing resource . Otherwise do not . The enumeration is over qualified names which are the names of the properties to move .