NCBI C++ ToolKit
Macros | Functions | Variables
redirect.cpp File Reference
#include <ncbi_pch.hpp>
#include <misc/cgi_redirect/redirect.hpp>
#include <misc/error_codes.hpp>
#include <cgi/cgictx.hpp>
+ Include dependency graph for redirect.cpp:

Go to the source code of this file.

Go to the SVN repository for this file.


#define NCBI_USE_ERRCODE_X   Misc_CgiRedirect


bool s_FindEntryName (const string &name, list< string > &lst)
void s_AssignEntryValue (const string &name, const string &value, TCgiEntries &old_entries, TCgiEntries &new_entries)


const char *const kDefaultRedirectTemplate

Macro Definition Documentation


#define NCBI_USE_ERRCODE_X   Misc_CgiRedirect

Definition at line 39 of file redirect.cpp.

Function Documentation

◆ s_AssignEntryValue()

void s_AssignEntryValue ( const string name,
const string value,
TCgiEntries old_entries,
TCgiEntries new_entries 

◆ s_FindEntryName()

bool s_FindEntryName ( const string name,
list< string > &  lst 

Definition at line 88 of file redirect.cpp.

References i, and ITERATE.

Referenced by CCgiRedirectApplication::RemapEntries().

Variable Documentation

◆ kDefaultRedirectTemplate

const char* const kDefaultRedirectTemplate
Initial value:
= "\
<html><head><title><@_TITLE_@></title></head>\n \
<body>\n \
<center>\n \
<h1><@_HEADER_@></h1>\n \
<h3><@_MESSAGE_@></h3>\n \
<p>This web page has moved. Please, update your bookmarks and links.</p>\n \
<p><a href=\"<@_URL_@>\">Go to the new page</a></p>.\n \
</center> \
</body> \

Definition at line 51 of file redirect.cpp.

Referenced by CCgiRedirectApplication::Init().

Modified on Fri Jan 05 07:25:45 2024 by rev. 669887