Package com.googlecode.sardine.model

Examples of com.googlecode.sardine.model.Locktype


    HttpLock entity = new HttpLock(url);
    Lockinfo body = new Lockinfo();
    Lockscope scopeType = new Lockscope();
    scopeType.setExclusive(new Exclusive());
    body.setLockscope(scopeType);
    Locktype lockType = new Locktype();
    lockType.setWrite(new Write());
    body.setLocktype(lockType);
    entity.setEntity(new StringEntity(SardineUtil.toXml(body), UTF_8));
    // Return the lock token
    return this.execute(entity, new LockResponseHandler());
  }
View Full Code Here


    HttpUnlock entity = new HttpUnlock(url, token);
    Lockinfo body = new Lockinfo();
    Lockscope scopeType = new Lockscope();
    scopeType.setExclusive(new Exclusive());
    body.setLockscope(scopeType);
    Locktype lockType = new Locktype();
    lockType.setWrite(new Write());
    body.setLocktype(lockType);
    this.execute(entity, new VoidResponseHandler());
  }
View Full Code Here

TOP

Related Classes of com.googlecode.sardine.model.Locktype

Copyright © 2018 www.massapicom. 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.