public TreeSet<HtmlParameter> getCookieParams() {
		TreeSet<HtmlParameter> set = new TreeSet<>();
		
		Vector<String> cookies = getHeaders(HttpHeader.SET_COOKIE);
    	if (cookies != null) {
    		Iterator<String> it = cookies.iterator();
    		while (it.hasNext()) {
				set.add(new HtmlParameter(it.next()));
			}
    	}
    	
    	Vector<String> cookies2 = getHeaders(HttpHeader.SET_COOKIE2);
    	if (cookies2 != null) {
    		Iterator<String> it = cookies2.iterator();
    		while (it.hasNext()) {
				set.add(new HtmlParameter(it.next()));
			}
    	}
    	return set;
	}
public TreeSet < HtmlParameter > getCookieParams ( ) { TreeSet < HtmlParameter > set = new TreeSet < > ( ) ; Vector < String > cookies = getHeaders ( HttpHeader . SET_COOKIE ) ; if ( cookies != null ) { Iterator < String > it = cookies . iterator ( ) ; while ( it . hasNext ( ) ) { set . add ( new HtmlParameter ( it . next ( ) ) ) ; } } Vector < String > cookies2 = getHeaders ( HttpHeader . SET_COOKIE2 ) ; if ( cookies2 != null ) { Iterator < String > it = cookies2 . iterator ( ) ; while ( it . hasNext ( ) ) { set . add ( new HtmlParameter ( it . next ( ) ) ) ; } } return set ; }
ZAP: Added method.