package com.xrtb.bidder;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class MimeTypes {

	static Map<String,String> mimes = new HashMap();
	static List<String> types = new ArrayList();
	static {
		add("gif","image/gif");
		add("png","image/png");
		add("gif","image/gif");
		add("jpg","image/jpg");
		add("js","text/javascript;charset=utf-8");
		add("css","text/css");
		add("mp4","video/mp4");
		add("ogv","video/ogg");
	}
	
	static void add(String a, String b) {
		mimes.put(a,b);
	}
	
	public static String substitute(String key) {
		return mimes.get(key);
	}
}

@@ -123,126 +123,240 @@
 p;%0A%0A
-public class MimeTypes %7B%0A%0A%09static Map%3CString,String%3E mimes = new HashMap();%0A%09static List%3CString%3E types = new ArrayList
+/**%0A * A simple class to encode mime types in the embedded web server, RTBServer.java%0A * @author Ben M. Faul%0A *%0A */%0Apublic class MimeTypes %7B%0A%0A%09/** The mime types hash */%0A%09static Map%3CString,String%3E mimes = new HashMap%3CString, String%3E
 ();%0A
@@ -601,68 +601,326 @@
 %0A%09%0A%09
-static void add(String a, String b) %7B%0A%09%09mimes.put(a,b);%0A%09%7D%0A%09
+/**%0A%09 * Add suffix/mine-type to hash%0A%09 * @param a String. The file suffix%0A%09 * @param b String. The mime type.%0A%09 */%0A%09static void add(String a, String b) %7B%0A%09%09mimes.put(a,b);%0A%09%7D%0A%09%0A%09/**%0A%09 * Given the file suffix, return the mime type.%0A%09 * @param key String. The file suffix.%0A%09 * @return String. The mime type, or null%0A%09 */
 %0A%09pu

Fix the unchecked type and add javadoc