System.out.println(">>>Field>>>"+f.getName()); System.out.println(">>>Value>>>"+f.getValue());
    public void completeHeader(HttpFields fields, boolean allContentAdded) throws IOException    {        flushContent();        _allContentAdded=allContentAdded;        reset(true);        if (_buffer==null)            _buffer=_buffers.getBuffer(Ajp13Packet.MAX_PACKET_SIZE);        addPacketHeader();        _buffer.put((byte)0x4);        addInt(_status);        addString(_statusMsg==null?"status is unknown or no message definetion given...":_statusMsg);        int field_index=_buffer.putIndex();        // allocate 2 bytes for number of headers        addInt(0);        System.out.println("********* Start of Response Headers **********");        Iterator i=fields.getFields();        int num_fields=0;        while (i.hasNext())        {            num_fields++;            Field f=(Field)i.next();            byte[] codes=(byte[])__headerHash.get(f.getName());            if (codes!=null)            {                System.out.println(" >>>>code>>>"+codes[1]);                _buffer.put(codes);            }            else            {                addString(f.getName());            }            addString(f.getValue());            System.out.println(">>>Field>>>"+f.getName());            System.out.println(">>>Value>>>"+f.getValue());        }        System.out.println("********* Start of Response Headers **********");        // insert the number of headers        int tmp=_buffer.putIndex();        _buffer.setPutIndex(field_index);        addInt(num_fields);        _buffer.setPutIndex(tmp);        addPacketFooter();        _endp.flush(_buffer);        reset(true);    }