Package com.github.sardine.impl.methods

Examples of com.github.sardine.impl.methods.HttpSearch


    return resources;
  }

  public List<DavResource> search(String url, String language, String query) throws IOException
  {
    HttpEntityEnclosingRequestBase search = new HttpSearch(url);
    SearchRequest searchBody = new SearchRequest(language, query);
    String body = SardineUtil.toXml(searchBody);
    search.setEntity(new StringEntity(body, UTF_8));
    Multistatus multistatus = this.execute(search, new MultiStatusResponseHandler());
    List<Response> responses = multistatus.getResponse();
    List<DavResource> resources = new ArrayList<DavResource>(responses.size());
    for (Response response : responses)
    {
View Full Code Here

TOP

Related Classes of com.github.sardine.impl.methods.HttpSearch

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.