package org.aksw.kbox.kibe;

import java.net.MalformedURLException;
import java.net.URL;

import org.aksw.kbox.kns.CustomKNSServerList;
import org.aksw.kbox.kns.KNSServerListVisitor;

public class DefaultKNSServerList extends URLKNSServerList {
	
	// Default KNS table URL
	private final static String DEFAULT_KNS_TABLE_URL = "https://raw.github.com/AKSW/kbox/master";
	
	private CustomKNSServerList customKNSServerList = new CustomKNSServerList();
	
	public DefaultKNSServerList() throws MalformedURLException {
		super(new URL(DEFAULT_KNS_TABLE_URL));
	}

	
	@Override
	public boolean visit(KNSServerListVisitor visitor) throws Exception {
		boolean next = super.visit(visitor);
		if(next) {
			next = customKNSServerList.visit(visitor);
		}
		return next;
	}
}

@@ -338,16 +338,27 @@
 w.github
+usercontent
 .com/AKS
@@ -359,18 +359,18 @@
 om/AKSW/
-kb
+KB
 ox/maste
@@ -370,16 +370,25 @@
 x/master
+/kns/2.0/
 %22;%0A%09%0A%09pr

Change the default kns table