--- parser3/src/main/pa_request.C 2001/03/19 16:06:14 1.53 +++ parser3/src/main/pa_request.C 2001/03/20 18:24:44 1.61.2.2 @@ -1,9 +1,11 @@ -/* - Parser +/** @file + Parser: request class main part. @see compile.C and execute.C. + Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) + Author: Alexander Petrosyan (http://design.ru/paf) - $Id: pa_request.C,v 1.53 2001/03/19 16:06:14 paf Exp $ + $Id: pa_request.C,v 1.61.2.2 2001/03/20 18:24:44 paf Exp $ */ #include @@ -13,7 +15,6 @@ #include "pa_wwrapper.h" #include "pa_vclass.h" #include "_root.h" -#include "_env.h" #include "_table.h" #include "pa_globals.h" #include "pa_vint.h" @@ -42,7 +43,6 @@ Request::Request(Pool& apool, classes().put(*root_class_name, &ROOT); // table class classes().put(*table_class_name, table_class); -// table_class->set_name(*table_class_name); // env class classes().put(*env_class_name, &env); @@ -56,14 +56,14 @@ Request::Request(Pool& apool, classes().put(*cookie_class_name, &cookie); } -static void output_response_attribute(const Hash::Key& aattribute, Hash::Value *ameaning, +static void output_response_attribute(const Hash::Key& aattribute, Hash::Val *ameaning, void *info) { String *attribute_to_exclude=static_cast(info); if(aattribute==*attribute_to_exclude) return; String attribute(aattribute.pool()); - attribute.append(aattribute, String::Untaint_lang::HEADER, true); + attribute.append(aattribute, String::UL_HEADER, true); (*service_funcs.output_header_attribute)( attribute.cstr(), @@ -298,12 +298,12 @@ void Request::core(Exception& system_exc } -/// \todo find|solve cyclic dependences +/// @todo find|solve cyclic dependences VStateless_class *Request::use_file( const char *file, bool fail_on_read_problem, const String *name, VStateless_class *base_class) { - char *source=file_read(pool(), file, fail_on_read_problem); + char *source=file_read_text(pool(), file, fail_on_read_problem); if(!source) return base_class; @@ -326,8 +326,8 @@ VStateless_class *Request::use_buf( - fail_if_junction(true, junction = fail - fail_if_junction(false, not junction = fail */ -void Request::fail_if_junction_(bool is, - Value& value, const String& method_name, char *msg) { +void Request::fail_if_junction_(bool is, Value& value, + const String& method_name, const char *msg) { if((value.get_junction()!=0) ^ !is) THROW(0, 0, @@ -351,7 +351,7 @@ char *Request::absolute(const char *name strcat(result, name); return result; } else - return relative(info.uri, name); + return relative(info.path_translated, name); } void Request::output_result(const String& body_string) {