|
|
| version 1.236, 2002/10/16 08:22:14 | version 1.237, 2002/10/31 15:01:54 |
|---|---|
| Line 138 void Request::configure_admin(VStateless | Line 138 void Request::configure_admin(VStateless |
| ... | ... |
| ] | ] |
| */ | */ |
| if(Value *vcharsets=conf_class.get_element(*charsets_name, &conf_class, false)) { | if(Value *vcharsets=conf_class.get_element(*charsets_name, conf_class, false)) { |
| if(Hash *charsets=vcharsets->get_hash(0)) | if(Hash *charsets=vcharsets->get_hash(0)) |
| charsets->for_each(load_charset); | charsets->for_each(load_charset); |
| else if(!vcharsets->get_string()) | else if(!vcharsets->get_string()) |
| Line 229 gettimeofday(&mt[0],NULL); | Line 229 gettimeofday(&mt[0],NULL); |
| methoded_array->configure_user(*this); | methoded_array->configure_user(*this); |
| // $MAIN:MIME-TYPES | // $MAIN:MIME-TYPES |
| if(Value *element=main_class.get_element(*mime_types_name, &main_class, false)) | if(Value *element=main_class.get_element(*mime_types_name, main_class, false)) |
| if(Table *table=element->get_table()) | if(Table *table=element->get_table()) |
| mime_types=table; | mime_types=table; |
| Line 263 gettimeofday(&mt[2],NULL); | Line 263 gettimeofday(&mt[2],NULL); |
| // @postprocess | // @postprocess |
| if(Value *value=main_class.get_element( | if(Value *value=main_class.get_element( |
| *NEW String(pool(), POST_PROCESS_METHOD_NAME), | *NEW String(pool(), POST_PROCESS_METHOD_NAME), |
| &main_class, | main_class, |
| false)) | false)) |
| if(Junction *junction=value->get_junction()) | if(Junction *junction=value->get_junction()) |
| if(const Method *method=junction->method) { | if(const Method *method=junction->method) { |
| Line 358 t[9]-t[3] | Line 358 t[9]-t[3] |
| // in a gracefull way... | // in a gracefull way... |
| if(Value *value=main_class.get_element( | if(Value *value=main_class.get_element( |
| *NEW String(pool(), UNHANDLED_EXCEPTION_METHOD_NAME), | *NEW String(pool(), UNHANDLED_EXCEPTION_METHOD_NAME), |
| &main_class, | main_class, |
| false)) { | false)) { |
| if(Junction *junction=value->get_junction()) { | if(Junction *junction=value->get_junction()) { |
| if(const Method *method=junction->method) { | if(const Method *method=junction->method) { |
| Line 457 VStateless_class *Request::use_file(VSta | Line 457 VStateless_class *Request::use_file(VSta |
| file_spec=&absolute(file_name); | file_spec=&absolute(file_name); |
| else { | else { |
| file_spec=0; | file_spec=0; |
| if(Value *element=main_class.get_element(*class_path_name, &main_class, false)) { | if(Value *element=main_class.get_element(*class_path_name, main_class, false)) { |
| if(element->is_string()) { | if(element->is_string()) { |
| file_spec=file_readable(absolute(element->as_string()), file_name); // found at class_path? | file_spec=file_readable(absolute(element->as_string()), file_name); // found at class_path? |
| } else if(Table *table=element->get_table()) { | } else if(Table *table=element->get_table()) { |
| Line 628 const String& Request::mime_type_of(cons | Line 628 const String& Request::mime_type_of(cons |
| } | } |
| bool Request::origins_mode() { | bool Request::origins_mode() { |
| return main_class.get_element(*origins_mode_name, &main_class, false)!=0; // $ORIGINS mode | return main_class.get_element(*origins_mode_name, main_class, false)!=0; // $ORIGINS mode |
| } | } |