Fix "includeDirectories/ includeFiles" parameter not working (APAC PoC)

git-svn-id: https://brutex.net/svn/xservices/trunk@156 e7e49efb-446e-492e-b9ec-fcafc1997a86
xservices-jre6
Brian Rosenberger 2014-05-20 10:18:19 +00:00
parent ff9edbd2e2
commit e62784a0d5
2 changed files with 7 additions and 1 deletions

View File

@ -38,7 +38,7 @@ import net.brutex.xservices.ws.XServicesFault;
*/
@Path("/FileService/")
@Produces({ "application/xml" })
@Produces({ "text/xml" })
public abstract interface FileInfo {
public final static String BASE_PATH = "/FileService/";

View File

@ -139,6 +139,12 @@ public class FileInfoImpl implements FileInfo {
logger.info("FileWalker returned '"+finder.getCount()+"' hits. '" + finder.getTotal() + "' files have been scanned.");
List<Path> result = finder.getResult();
for(Path f : result) {
if(! withDirectories) {
if(f.toFile().isDirectory()) continue;
}
if(! withFiles) {
if(f.toFile().isFile()) continue;
}
list.add(new FileInfoType(f, baseuri));
}
} catch (IOException e2) {