drools-eclipse/org.guvnor.eclipse.webdav/src/client/org/eclipse/webdav/client/AbstractResourceHandle.java
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);
        }
    }
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);
        }
    }
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.

@param destination the location to move to
@param overwrite how to react if a resource already exists at the
destination
@param names <code>Enumeration</code> over <code>QualifiedNames</code>
@exception DAVException if there was a problem moving this resource
@see IServer#move(Locator, Locator, Context, Document)
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 .