JAWS_Header_Info::~JAWS_Header_Info (void) { JAWS_Header_Table_Iterator iter (this->table_); JAWS_Header_Data *data_ptr; for (iter.first (); !iter.done (); iter.advance ()) { data_ptr = iter.next (); if (data_ptr) delete data_ptr; } }
void JAWS_Header_Info::dump (void) { JAWS_Header_Table_Iterator iter (this->table_); ACE_DEBUG ((LM_DEBUG, "== BEGIN HEADER INFO DUMP ==\n")); for (iter.first (); ! iter.done (); iter.advance ()) { JAWS_Header_Data *data; data = iter.next (); if (data != 0) ACE_DEBUG ((LM_DEBUG, "%s -- %s\n", data->header_name (), data->header_value ())); else ACE_DEBUG ((LM_DEBUG, "NULL ENTRY\n")); } ACE_DEBUG ((LM_DEBUG, "== END HEADER INFO DUMP ==\n")); }
void JAWS_Headers::remove_all (const char *const &header_name) { JAWS_Header_Data *data; int done; do { JAWS_Header_Table_Iterator i (*this); i.first (); done = 1; while (! i.done ()) { data = i.next (); if (data != 0 && ACE_OS::strcasecmp (data->header_name (), header_name) == 0) { i.remove (); delete data; done = 0; break; } else i.advance (); } } while (! done); }