common/src/main/java/HTTPClient/Util.java
/**
     * Assembles a Vector of HttpHeaderElements into a full header string.
     * The individual header elements are seperated by a ", ".
     *
     * @param the parsed header
     * @return a string containing the assembled header
     */
Assembles a Vector of HttpHeaderElements into a full header string.
The individual header elements are seperated by a ", ".

@param the parsed header
@return a string containing the assembled header
Assembles a Vector of HttpHeaderElements into a full header string . The individual header elements are seperated by a " " . @param the parsed header @return a string containing the assembled header
public final static String assembleHeader(Vector<HttpHeaderElement> pheader)
    {
	StringBuffer hdr = new StringBuffer(200);
	int len = pheader.size();
	for (int idx=0; idx<len; idx++)
	{
	    pheader.elementAt(idx).appendTo(hdr);
	    hdr.append(", ");
	}
	hdr.setLength(hdr.length()-2);
	return hdr.toString();
    }
public final static String assembleHeader ( Vector < HttpHeaderElement > pheader ) { StringBuffer hdr = new StringBuffer ( 200 ) ; int len = pheader . size ( ) ; for ( int idx = 0 ; idx < len ; idx ++ ) { pheader . elementAt ( idx ) . appendTo ( hdr ) ; hdr . append ( ", " ) ; } hdr . setLength ( hdr . length ( ) - 2 ) ; return hdr . toString ( ) ; }
Assembles a Vector of HttpHeaderElements into a full header string.
Assembles a Vector of HttpHeaderElements into a full header string .