Code example for Hashtable

Methods: put

0
		this.cachedIPs = new ArrayList<String>();
		 
		this.dnsbls = new ArrayList<String>();
		this.types = new String[]{"A"};
		 
		Hashtable<String, String> env = new Hashtable<String, String>();
		 
		env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.dns.DnsContextFactory");	   
		env.put("com.sun.jndi.dns.timeout.initial", "150");
		env.put("com.sun.jndi.dns.timeout.retries", "1");
		env.put(Context.PROVIDER_URL, "dns://8.8.8.8 dns://8.8.4.4");
		 
		this.ictx = new InitialDirContext(env);
	} 
	 
	public void setCacheEnabled(boolean cache){
		this.cache = cache;
	} 
	 
	public void addDNSBL(String bl){
		this.dnsbls.add(bl);