Package org.apache.webdav.lib.methods

Examples of org.apache.webdav.lib.methods.PropPatchMethod.execute()


        PropPatchMethod proppatchMethod = new PropPatchMethod(domain+uri.toString());
        proppatchMethod.setDoAuthentication(true);
        HttpState httpState = new HttpState();
        httpState.setCredentials(null, host, credentials);
        proppatchMethod.addPropertyToSet(name, value, "S", namespace);
        int state = proppatchMethod.execute(httpState, new HttpConnection(host, port, protocol));
        if ( state != HttpStatus.SC_MULTI_STATUS ) {
          throw new IOException("Received status code "+state+" when doing PROPPATH on URI="+uri);
        }
    }
View Full Code Here

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.