Package com.github.sardine.model

Examples of com.github.sardine.model.SearchRequest


  }

  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());
View Full Code Here

TOP

Related Classes of com.github.sardine.model.SearchRequest

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.