Package com.googlecode.sardine.model

Examples of com.googlecode.sardine.model.Allprop


  public List<DavResource> list(String url, int depth) throws IOException
  {
    HttpPropFind entity = new HttpPropFind(url);
    entity.setDepth(Integer.toString(depth));
    Propfind body = new Propfind();
    body.setAllprop(new Allprop());
    entity.setEntity(new StringEntity(SardineUtil.toXml(body), UTF_8));
    Multistatus multistatus = this.execute(entity, new MultiStatusResponseHandler());
    List<Response> responses = multistatus.getResponse();
    List<DavResource> resources = new ArrayList<DavResource>(responses.size());
    for (Response response : responses)
View Full Code Here


  @Test
  public void createPropfindXml() throws Exception
  {
    Propfind body = new Propfind();
    body.setAllprop(new Allprop());
    String xml = SardineUtil.toXml(body);
    checkXmlDeclaration(xml);
    assertThat(xml, containsString("propfind>"));
    assertThat(xml, containsString("allprop/>"));
  }
View Full Code Here

TOP

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

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.