Key for parameter "blacklist name" is "list" in all servlets now.

pull/1/head
Marc Nause 11 years ago
parent 80e0ee92e5
commit 0d88f292dc

@ -14,7 +14,7 @@ public class add_entry_p {
private static final String RESULT_SUCCESS = "1";
private static final String XML_ITEM_STATUS = "status";
private static final String KEY_NEW_ENTRY = "entry";
private static final String KEY_CURRENT_BLACKLIST = "blacklist";
private static final String KEY_CURRENT_BLACKLIST = "list";
public static serverObjects respond(final RequestHeader header, final serverObjects post, @SuppressWarnings("unused") final serverSwitch env) {

@ -14,7 +14,7 @@ public class delete_entry_p {
private static final String RESULT_SUCCESS = "1";
private static final String XML_ITEM_STATUS = "status";
private static final String KEY_NEW_ENTRY = "entry";
private static final String KEY_CURRENT_BLACKLIST = "blacklist";
private static final String KEY_CURRENT_BLACKLIST = "list";
public static serverObjects respond(final RequestHeader header, final serverObjects post, @SuppressWarnings("unused") final serverSwitch env) {

@ -13,6 +13,7 @@ import net.yacy.server.serverSwitch;
public class get_list_p {
private static final String KEY_CURRENT_BLACKLIST = "list";
private static final String ITEMS = "items";
private static final String POSTFIX_ITEM = "_item";
private static final String PREFIX_ITEMS = "items_";
@ -31,7 +32,7 @@ public class get_list_p {
final Collection<String> dirlist = FileUtils.getDirListing(ListManager.listsPath, Blacklist.BLACKLIST_FILENAME_FILTER);
final String blackListName = (post == null) ? "" : post.get("name", "");
final String blackListName = (post == null) ? "" : post.get(KEY_CURRENT_BLACKLIST, "");
int count;
if (dirlist != null) {

Loading…
Cancel
Save