Package com.ettrema.httpclient

Source Code of com.ettrema.httpclient.MoveMethod

package com.ettrema.httpclient;

import com.dotcms.repackage.org.apache.commons.httpclient.Header;
import com.dotcms.repackage.org.apache.commons.httpclient.HttpMethodBase;

/**
*
* @author mcevoyb
*/
class MoveMethod extends HttpMethodBase {

    final String newUri;

    public MoveMethod( String uri, String newUri ) {
        super( uri );
        this.newUri = newUri;
        addRequestHeader( new Header( "Destination", newUri ) );
    }

    @Override
    public String getName() {
        return "MOVE";
    }

    public String getNewUri() {
        return newUri;
    }
}
TOP

Related Classes of com.ettrema.httpclient.MoveMethod

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.