Code example for List

Methods: toArray

0
	 
	public S3AuthParams() { 
	} 
	 
	public HeaderParam[] getHeaders() { 
		return headerList.toArray(new HeaderParam[0]);
	} 
	 
	public void addHeader(HeaderParam param) {
		headerList.add( param );
	} 
	 
	public String getHeader( String header ) 
	{ 
		// ToDO - make this look up faster 
		ListIterator it = headerList.listIterator();
		while( it.hasNext()) 
		{ 
			HeaderParam temp = (HeaderParam)it.next();
			if (header.equalsIgnoreCase( temp.getName())) {
				return temp.getValue();