From bacccda6d746bef88a77d2cdca8e6165f7810bad Mon Sep 17 00:00:00 2001 From: f1ori Date: Sat, 31 Jan 2009 13:33:08 +0000 Subject: [PATCH] * blacklist_p.xml: attrOnly = only give parameters of blacklists, no content git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5548 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- htroot/api/blacklists_p.java | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/htroot/api/blacklists_p.java b/htroot/api/blacklists_p.java index 7ad23a615..fdff09ecd 100644 --- a/htroot/api/blacklists_p.java +++ b/htroot/api/blacklists_p.java @@ -18,7 +18,8 @@ public class blacklists_p { final List dirlist = listManager.getDirListing(listManager.listsPath); int blacklistCount=0; - final String blackListName = post.get("listname", ""); + final String blackListName = (post == null) ? "" : post.get("listname", ""); + final String attrOnly = (post == null) ? "" : post.get("attrOnly", ""); List list; int count; @@ -41,19 +42,21 @@ public class blacklists_p { } prop.put("lists_" + blacklistCount + "_types", types.length); - list = listManager.getListArray(new File(listManager.listsPath, element)); + if ( ! (attrOnly.equals("1") || attrOnly.equals("true"))) { + list = listManager.getListArray(new File(listManager.listsPath, element)); - count=0; - for (int j=0;j