public String getHeader(String name, String delimiter) { List list = getHeaderList(name); if (list == null) {
public String[] getHeader(String name) { List headers = getHeaderList(name); if (headers == null) {
    public String getHeader(String name, String delimiter) {        List list = getHeaderList(name);        if (list == null) {            return null;        } else if (list.isEmpty()) {            return "";        } else if (list.size() == 1) {            return ((InternetHeader) list.get(0)).getValue();        } else {            StringBuffer buf = new StringBuffer(20 * list.size());            buf.append(((InternetHeader) list.get(0)).getValue());            for (int i = 1; i < list.size(); i++) {                buf.append(delimiter);                buf.append(((InternetHeader) list.get(i)).getValue());            }            return buf.toString();        }    }