Package com.googlecode.sardine.impl.methods

Examples of com.googlecode.sardine.impl.methods.HttpLock


        {
          return new HttpPropFind(this.getLocationURI(request, response, context));
        }
        if (method.equalsIgnoreCase(HttpLock.METHOD_NAME))
        {
          return new HttpLock(this.getLocationURI(request, response, context));
        }
        return super.getRedirect(request, response, context);
      }
    });
    this.setCredentials(username, password);
View Full Code Here


  }

  @Override
  public String lock(String url) throws IOException
  {
    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

TOP

Related Classes of com.googlecode.sardine.impl.methods.HttpLock

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.