#include <ControlMatcher.h>
Public Member Functions | |
UrlMatcher (const char *name, const char *filename) | |
~UrlMatcher () | |
void | Match (RequestData *rdata, Result *result) |
void | AllocateSpace (int num_entries) |
char * | NewEntry (matcher_line *line_info) |
void | Print () |
int | getNumElements () |
Data * | getDataArray () |
Protected Attributes | |
InkHashTable * | url_ht |
char ** | url_str |
int * | url_value |
Data * | data_array |
int | array_len |
int | num_el |
const char * | matcher_name |
const char * | file_name |
Definition at line 164 of file ControlMatcher.h.
UrlMatcher< Data, Result >::UrlMatcher | ( | const char * | name, | |
const char * | filename | |||
) |
Definition at line 232 of file ControlMatcher.cc.
References ink_hash_table_create(), InkHashTableKeyType_String, and UrlMatcher< Data, Result >::url_ht.
UrlMatcher< Data, Result >::~UrlMatcher | ( | ) |
Definition at line 244 of file ControlMatcher.cc.
References ats_free(), UrlMatcher< Data, Result >::data_array, ink_hash_table_destroy(), UrlMatcher< Data, Result >::num_el, UrlMatcher< Data, Result >::url_ht, UrlMatcher< Data, Result >::url_str, and UrlMatcher< Data, Result >::url_value.
void UrlMatcher< Data, Result >::AllocateSpace | ( | int | num_entries | ) |
Definition at line 272 of file ControlMatcher.cc.
References UrlMatcher< Data, Result >::array_len, UrlMatcher< Data, Result >::data_array, ink_assert, UrlMatcher< Data, Result >::num_el, UrlMatcher< Data, Result >::url_str, and UrlMatcher< Data, Result >::url_value.
Data* UrlMatcher< Data, Result >::getDataArray | ( | ) | [inline] |
Definition at line 174 of file ControlMatcher.h.
int UrlMatcher< Data, Result >::getNumElements | ( | ) | [inline] |
Definition at line 173 of file ControlMatcher.h.
void UrlMatcher< Data, Result >::Match | ( | RequestData * | rdata, | |
Result * | result | |||
) |
Definition at line 338 of file ControlMatcher.cc.
References ats_free(), ats_strdup, UrlMatcher< Data, Result >::data_array, Debug, RequestData::get_string(), ink_hash_table_lookup(), UrlMatcher< Data, Result >::matcher_name, UrlMatcher< Data, Result >::num_el, UrlMatcher< Data, Result >::url_ht, and UrlMatcher< Data, Result >::url_str.
char * UrlMatcher< Data, Result >::NewEntry | ( | matcher_line * | line_info | ) |
Definition at line 288 of file ControlMatcher.cc.
References UrlMatcher< Data, Result >::array_len, ats_malloc(), ats_strdup, UrlMatcher< Data, Result >::data_array, matcher_line::dest_entry, ink_assert, ink_hash_table_insert(), ink_hash_table_lookup(), matcher_line::line, matcher_line::line_num, MATCHER_MAX_TOKENS, UrlMatcher< Data, Result >::matcher_name, matcher_line::num_el, UrlMatcher< Data, Result >::num_el, UrlMatcher< Data, Result >::url_ht, UrlMatcher< Data, Result >::url_str, and UrlMatcher< Data, Result >::url_value.
void UrlMatcher< Data, Result >::Print | ( | ) |
Definition at line 260 of file ControlMatcher.cc.
References UrlMatcher< Data, Result >::data_array, UrlMatcher< Data, Result >::num_el, and UrlMatcher< Data, Result >::url_str.
int UrlMatcher< Data, Result >::array_len [protected] |
Definition at line 181 of file ControlMatcher.h.
Referenced by UrlMatcher< Data, Result >::AllocateSpace(), and UrlMatcher< Data, Result >::NewEntry().
Data* UrlMatcher< Data, Result >::data_array [protected] |
Definition at line 180 of file ControlMatcher.h.
Referenced by UrlMatcher< Data, Result >::AllocateSpace(), UrlMatcher< CongestionControlRecord, CongestionControlRule >::getDataArray(), UrlMatcher< Data, Result >::Match(), UrlMatcher< Data, Result >::NewEntry(), UrlMatcher< Data, Result >::Print(), and UrlMatcher< Data, Result >::~UrlMatcher().
const char* UrlMatcher< Data, Result >::file_name [protected] |
Definition at line 184 of file ControlMatcher.h.
const char* UrlMatcher< Data, Result >::matcher_name [protected] |
Definition at line 183 of file ControlMatcher.h.
Referenced by UrlMatcher< Data, Result >::Match(), and UrlMatcher< Data, Result >::NewEntry().
int UrlMatcher< Data, Result >::num_el [protected] |
Definition at line 182 of file ControlMatcher.h.
Referenced by UrlMatcher< Data, Result >::AllocateSpace(), UrlMatcher< CongestionControlRecord, CongestionControlRule >::getNumElements(), UrlMatcher< Data, Result >::Match(), UrlMatcher< Data, Result >::NewEntry(), UrlMatcher< Data, Result >::Print(), and UrlMatcher< Data, Result >::~UrlMatcher().
InkHashTable* UrlMatcher< Data, Result >::url_ht [protected] |
Definition at line 177 of file ControlMatcher.h.
Referenced by UrlMatcher< Data, Result >::Match(), UrlMatcher< Data, Result >::NewEntry(), UrlMatcher< Data, Result >::UrlMatcher(), and UrlMatcher< Data, Result >::~UrlMatcher().
char** UrlMatcher< Data, Result >::url_str [protected] |
Definition at line 178 of file ControlMatcher.h.
Referenced by UrlMatcher< Data, Result >::AllocateSpace(), UrlMatcher< Data, Result >::Match(), UrlMatcher< Data, Result >::NewEntry(), UrlMatcher< Data, Result >::Print(), and UrlMatcher< Data, Result >::~UrlMatcher().
int* UrlMatcher< Data, Result >::url_value [protected] |
Definition at line 179 of file ControlMatcher.h.
Referenced by UrlMatcher< Data, Result >::AllocateSpace(), UrlMatcher< Data, Result >::NewEntry(), and UrlMatcher< Data, Result >::~UrlMatcher().