jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Xiaojie Shen <Xiaojie.S...@cybercomgroup.com>
Subject RE: Jackrabbit SearchMethod - status code 207 but null response
Date Thu, 24 Jun 2010 11:24:19 GMT
Thank you! "//element(*, nt:file)" works. My colleague found the right way to get search result.

MultiStatus resp = searchMethod.getResponseBodyAsMultiStatus();
for (int i=0; i<=resp.getResponses().length; i++) {
	String respString = resp.getResponses()[i].getHref();
	System.out.println("response: " + respString);
}

Mime
View raw message