NCBI C++ ToolKit
|
@cgi_redirect.hpp Define class CCgiRedirectApplication used to redirect CGI requests. More...
Classes | |
class | CCgiApplication |
struct | CCgiApplication::SAcceptEntry |
"Accept:" header entry. More... | |
class | CCgiStatistics |
class | CCgiWatchFile |
class | CCgiStreamWrapper |
class | CCgiRequestProcessor |
Base class for request processors. More... | |
class | CCgiProcessorGuard |
class | CCgiApplicationCached |
class | CCgiServerContext |
class | CCtxMsg |
class | CCtxMsgString |
class | CCgiContext |
class | CCgiSessionParameters |
class | CFastCgiThreadedRequest |
class | CFastCgiThreadedRequest::CEnv |
class | CFastCgiApplicationMT |
class | CCgiRequestProcessorMT |
class | CCgiRedirectApplication |
CCgiRedirectApplication –. More... | |
Typedefs | |
typedef CNcbiApplication | CCgiApplication::CParent |
typedef map< string, string > | CCgiApplication::SAcceptEntry::TParams |
typedef list< SAcceptEntry > | CCgiApplication::TAcceptEntries |
typedef map< string, CDiagFactory * > | CCgiApplication::TDiagFactoryMap |
typedef AutoPtr< char, ArrayDeleter< char > > | CCgiWatchFile::TBuf |
typedef map< string, string, PNocase > | CCgiStreamWrapper::TTrailer |
typedef CCgiApplication::TAcceptEntries | CCgiRequestProcessor::TAcceptEntries |
typedef CCgiApplication::SAcceptEntry | CCgiRequestProcessor::TAcceptEntry |
typedef int | CCgiContext::TStreamStatus |
typedef list< AutoPtr< CCtxMsg > > | CCgiContext::TMessages |
typedef Fastcgipp::Request< char > | CFastCgiThreadedRequest::TParent |
typedef CNcbiOstream | CFastCgiThreadedRequest::TOutput |
typedef CNcbiIstream | CFastCgiThreadedRequest::TInput |
typedef Fastcgipp::Manager< CFastCgiThreadedRequest > | CFastCgiApplicationMT::TManager |
typedef CCgiApplication | CCgiRedirectApplication::CParent |
@cgi_redirect.hpp Define class CCgiRedirectApplication used to redirect CGI requests.
Definition at line 69 of file cgiapp.hpp.
|
private |
Definition at line 85 of file redirect.hpp.
|
protected |
Definition at line 357 of file cgiapp.hpp.
|
protected |
Definition at line 610 of file cgiapp.hpp.
|
protected |
Definition at line 611 of file cgiapp.hpp.
|
private |
Definition at line 534 of file cgiapp.hpp.
|
private |
Definition at line 455 of file cgiapp.hpp.
Definition at line 60 of file fcgiapp_mt.hpp.
|
private |
Definition at line 130 of file fcgiapp_mt.hpp.
|
private |
Definition at line 274 of file cgictx.hpp.
Definition at line 59 of file fcgiapp_mt.hpp.
Definition at line 346 of file cgiapp.hpp.
typedef Fastcgipp::Request<char> CFastCgiThreadedRequest::TParent |
Definition at line 58 of file fcgiapp_mt.hpp.
typedef int CCgiContext::TStreamStatus |
Definition at line 234 of file cgictx.hpp.
typedef map<string, string, PNocase> CCgiStreamWrapper::TTrailer |
Definition at line 565 of file cgiapp.hpp.
|
protected |
Admin commands passed through ncbi_admin_cmd argument.
Enumerator | |
---|---|
eAdmin_Health | Report health for this CGI only. |
eAdmin_HealthDeep | Report health for this CGI and any services used by it. |
eAdmin_HealthZ | Report health for this CGI as kubernetes expects. |
eAdmin_ReadyZ | Report readyness for this CGI as kubernetes expects. |
eAdmin_LiveZ | Report if this CGI is alive as kubernetes expects. |
eAdmin_Unknown | Unrecognized command. Overriden ProcessAdminRequest() can use GetEntry() to fetch command name if necessary. |
Definition at line 327 of file cgiapp.hpp.
|
protected |
Definition at line 188 of file cgiapp.hpp.
|
protected |
Analyze registry settings ([CGI] Log) and return current logging option.
Enumerator | |
---|---|
eNoLog | |
eLog | |
eLogOnError |
Definition at line 256 of file cgiapp.hpp.
|
protected |
Enumerator | |
---|---|
eSR_None | |
eSR_Executable | |
eSR_WatchFile |
Definition at line 416 of file cgiapp.hpp.
|
private |
Enumerator | |
---|---|
eSecure_NotSet | |
eSecure_Off | |
eSecure_On |
Definition at line 261 of file cgictx.hpp.
Whether to use the port number when composing the CGI's own URL.
Enumerator | |
---|---|
eSelfUrlPort_Use | Use port number in self-URL. |
eSelfUrlPort_Strip | Do not use port number in self-URL. |
eSelfUrlPort_Default | Use port number, except for NCBI front-ends. |
Definition at line 207 of file cgictx.hpp.
Enumerator | |
---|---|
eNormal | |
eBlockWrites | |
eChunkedWrites |
Definition at line 557 of file cgiapp.hpp.
Enumerator | |
---|---|
fInputReady | |
fOutputReady |
Definition at line 230 of file cgictx.hpp.
|
protected |
Enumerator | |
---|---|
eVersion_Short | |
eVersion_Full |
Definition at line 309 of file cgiapp.hpp.
void CCgiStreamWrapper::AbortChunkedTransfer | ( | void | ) |
Definition at line 446 of file cgiapp.cpp.
References CCgiStreamWrapperWriter::AbortChunkedTransfer(), and CCgiStreamWrapper::m_Writer.
Referenced by CCgiResponse::AbortChunkedTransfer().
|
protected |
Definition at line 1543 of file cgiapp.cpp.
References CCgiCookies::Add(), CTime::AddSecond(), CTime::eCurrent, IRegistry::eErrPost, CTime::eGmt, IRegistry::eReturn, ERR_POST_X, IRegistry::Get(), IRegistry::GetBool(), CNcbiApplicationAPI::GetConfig(), IRegistry::GetInt(), IRegistry::GetString(), CCgiApplication::m_Caf, CCgiApplication::m_HostIP, CCgiCookie::SetExpTime(), and CCgiCookie::SetSecure().
Referenced by CCgiApplication::x_AddLBCookie(), and CFastCgiApplicationMT::x_ProcessThreadedRequest().
Definition at line 325 of file cgictx.cpp.
References CCgiRequest::GetEntries(), CCgiContext::GetRequest(), multimap_checker< Container >::insert(), and rapidjson::value.
Referenced by CCgiContext::ReplaceRequestValue().
|
protectedvirtual |
Prepare properties and print the application start message.
Reimplemented from CNcbiApplicationAPI.
Definition at line 1624 of file cgiapp.cpp.
References GetDiagContext(), CDiagContext::IsSetOldPostFormat(), kEmptyStr, and CDiagContext::PrintStart().
|
protectedvirtual |
Prepare properties for application stop message.
Reimplemented from CNcbiApplicationAPI.
Definition at line 1633 of file cgiapp.cpp.
References GetDiagContext(), and CDiagContext::SetExitCode().
|
private |
CCgiApplication::CCgiApplication | ( | const SBuildInfo & | build_info = NCBI_SBUILDINFO_DEFAULT() | ) |
Definition at line 1026 of file cgiapp.cpp.
References CNcbiApplicationAPI::DisableArgDescriptions(), eDPF_RequestId, CNcbiApplicationAPI::fBinaryCin, CNcbiApplicationAPI::fBinaryCout, CCgiApplication::m_Iteration, CCgiApplication::RegisterDiagFactory(), CAtomicCounter::Set(), SetDiagPostFlag(), SetDiagTraceFlag(), CNcbiApplicationAPI::SetStdioFlags(), and SuppressSystemMessageBox().
|
private |
CCgiApplicationCached::CCgiApplicationCached | ( | void | ) |
Definition at line 42 of file cgiapp_cached.cpp.
CCgiContext::CCgiContext | ( | CCgiApplication & | app, |
CNcbiIstream * | inp, | ||
CNcbiOstream * | out, | ||
CCgiRequest::TFlags | flags = 0 |
||
) |
Definition at line 139 of file cgictx.cpp.
References flags, CCgiContext::m_Request, and CCgiContext::x_InitSession().
CCgiContext::CCgiContext | ( | CCgiApplication & | app, |
const CNcbiArguments * | args = 0 , |
||
const CNcbiEnvironment * | env = 0 , |
||
CNcbiIstream * | inp = 0 , |
||
CNcbiOstream * | out = 0 , |
||
int | ifd = -1 , |
||
int | ofd = -1 , |
||
size_t | errbuf_size = 256 , |
||
CCgiRequest::TFlags | flags = 0 |
||
) |
Definition at line 111 of file cgictx.cpp.
References CCgiResponse::DisableTrackingCookie(), CCgiRequest::fDisableTrackingCookie, flags, CCgiContext::m_Request, CCgiContext::m_Response, CCgiResponse::SetCgiRequest(), CCgiResponse::SetRequestMethod(), and CCgiContext::x_InitSession().
|
private |
CCgiContext::CCgiContext | ( | ICgiSessionStorage * | session_storage, |
const CNcbiArguments * | args = 0 , |
||
const CNcbiEnvironment * | env = 0 , |
||
CNcbiIstream * | inp = 0 , |
||
CNcbiOstream * | out = 0 , |
||
int | ifd = -1 , |
||
int | ofd = -1 , |
||
size_t | errbuf_size = 256 , |
||
CCgiRequest::TFlags | flags = 0 |
||
) |
Definition at line 155 of file cgictx.cpp.
References CCgiResponse::DisableTrackingCookie(), CCgiRequest::fDisableTrackingCookie, flags, CCgiContext::m_Request, CCgiContext::m_Response, CCgiResponse::SetCgiRequest(), CCgiResponse::SetRequestMethod(), and CCgiContext::x_InitSession().
|
inline |
Definition at line 678 of file cgiapp.hpp.
CCgiRequestProcessor::CCgiRequestProcessor | ( | CCgiApplication & | app | ) |
Definition at line 2311 of file cgiapp.cpp.
CCgiRequestProcessorMT::CCgiRequestProcessorMT | ( | CFastCgiApplicationMT & | app | ) |
Definition at line 582 of file fcgiapp_mt.cpp.
References CCgiRequestProcessor::GetApp(), and CCgiRequestProcessorMT::m_Resource.
|
inlineprivate |
Definition at line 337 of file cgictx.hpp.
|
protected |
Definition at line 2107 of file cgiapp.cpp.
CCgiStreamWrapper::CCgiStreamWrapper | ( | CNcbiOstream & | out | ) |
Definition at line 414 of file cgiapp.cpp.
Definition at line 2282 of file cgiapp.cpp.
References ERR_POST_X, AutoPtr< X, Del >::get(), CCgiWatchFile::m_Buf, CCgiWatchFile::m_Count, and CCgiWatchFile::x_Read().
Definition at line 102 of file cgictx.hpp.
|
inline |
Definition at line 82 of file fcgiapp_mt.hpp.
CFastCgiApplicationMT::CFastCgiApplicationMT | ( | const SBuildInfo & | build_info = NCBI_SBUILDINFO_DEFAULT() | ) |
Definition at line 75 of file fcgiapp_mt.cpp.
References CFastCgiApplicationMT::m_ErrorCounter, and CAtomicCounter::Set().
CFastCgiThreadedRequest::CFastCgiThreadedRequest | ( | void | ) |
Definition at line 445 of file fcgiapp_mt.cpp.
|
protected |
Definition at line 2030 of file cgiapp.cpp.
References IRegistry::eReturn, ERR_POST, NStr::fConvErr_NoThrow, CNcbiApplicationAPI::GetConfig(), CCurrentProcess::GetMemoryUsage(), NStr::StringToUInt8_DataSize(), CProcessBase::SMemoryUsage::total, and Warning().
Referenced by CFastCgiApplicationMT::x_ProcessThreadedRequest().
void CCgiContext::CheckStatus | ( | void | ) | const |
Check if the context has any pending errors, perform any required actions (e.g.
throw an exception).
Definition at line 621 of file cgictx.cpp.
References CCgiException::eStatusNotSet, eUnknown, CCgiContext::m_StatusCode, CCgiContext::m_StatusMessage, NCBI_EXCEPTION_THROW, and NCBI_EXCEPTION_VAR.
|
inline |
Definition at line 447 of file cgictx.hpp.
References CCgiContext::m_Messages.
|
protectedvirtual |
Definition at line 2128 of file cgiapp.cpp.
References CCgiStatistics::Compose_Entries(), CCgiStatistics::Compose_ErrMessage(), CCgiStatistics::Compose_ProgramName(), CCgiStatistics::Compose_Result(), CCgiStatistics::Compose_Timing(), CTime::DiffSecond(), CTime::eCurrent, IRegistry::eErrPost, IRegistry::eReturn, IRegistry::GetBool(), CNcbiApplicationAPI::GetConfig(), IRegistry::GetInt(), kEmptyStr, CCgiStatistics::m_CgiApp, CCgiStatistics::m_LogDelim, CCgiStatistics::m_StartTime, and msg().
|
protectedvirtual |
Definition at line 2202 of file cgiapp.cpp.
References NStr::fSplit_MergeDelimiters, NStr::fSplit_Truncate, IRegistry::Get(), CNcbiApplicationAPI::GetConfig(), CCgiRequestProcessor::GetContext(), CCgiRequest::GetEntry(), CCgiContext::GetRequest(), CCgiEntry::GetValue(), i, CCgiRequestProcessor::IsSetContext(), ITERATE, kEmptyStr, ncbi::grid::netcache::search::fields::key, CCgiStatistics::m_CgiApp, CCgiStatistics::m_LogDelim, msg(), NStr::Split(), CCgiEntry::substr(), and CCgiApplication::x_GetProcessor().
Referenced by CCgiStatistics::Compose().
|
protectedvirtual |
Definition at line 2262 of file cgiapp.cpp.
References CCgiStatistics::m_ErrMsg.
Referenced by CCgiStatistics::Compose().
|
protectedvirtual |
Definition at line 2189 of file cgiapp.cpp.
References CNcbiApplicationAPI::GetArguments(), CNcbiArguments::GetProgramName(), and CCgiStatistics::m_CgiApp.
Referenced by CCgiStatistics::Compose().
|
protectedvirtual |
Definition at line 2256 of file cgiapp.cpp.
References NStr::IntToString(), and CCgiStatistics::m_Result.
Referenced by CCgiStatistics::Compose().
Definition at line 2195 of file cgiapp.cpp.
References CTimeSpan::AsString(), CTime::AsString(), CTime::DiffTimeSpan(), CCgiStatistics::m_LogDelim, and CCgiStatistics::m_StartTime.
Referenced by CCgiStatistics::Compose().
|
protectedvirtual |
Definition at line 1284 of file cgiapp.cpp.
References context, CCgiEntry::find(), CCgiApplication::FindDiagFactory(), CCgiRequest::GetEntry(), CDiagFactory::New(), and SetDiagHandler().
Referenced by CCgiApplication::ConfigureDiagnostics().
|
protectedvirtual |
Definition at line 1327 of file cgiapp.cpp.
References context, eDPF_All, eDPF_DateTime, eDPF_ErrCode, eDPF_ErrorID, eDPF_ErrSubCode, eDPF_File, eDPF_Line, eDPF_Location, eDPF_Log, eDPF_LongFilename, eDPF_OmitInfoSev, eDPF_PID, eDPF_Prefix, eDPF_RequestId, eDPF_SerialNo, eDPF_SerialNo_Thread, eDPF_Severity, eDPF_TID, eDPF_Trace, eDPF_UID, flags, format, NStr::fSplit_MergeDelimiters, NStr::fSplit_Truncate, CSafeStatic< T, Callbacks >::Get(), CCgiRequest::GetEntry(), CDiagContext::IsSetOldPostFormat(), ITERATE, SetDiagPostAllFlags(), and NStr::Split().
Referenced by CCgiApplication::ConfigureDiagnostics().
|
protectedvirtual |
Definition at line 1275 of file cgiapp.cpp.
References CCgiApplication::ConfigureDiagDestination(), CCgiApplication::ConfigureDiagFormat(), CCgiApplication::ConfigureDiagThreshold(), and context.
Referenced by CCgiApplication::Run(), and CRemoteCgiApp::RunJob().
|
protectedvirtual |
Definition at line 1301 of file cgiapp.cpp.
References context, eDiag_Critical, eDiag_Error, eDiag_Fatal, eDiag_Info, eDiag_Warning, eDT_Enable, CCgiRequest::GetEntry(), SetDiagPostLevel(), and SetDiagTrace().
Referenced by CCgiApplication::ConfigureDiagnostics().
|
protectedvirtual |
Factory method for the Context object construction.
Definition at line 899 of file cgiapp.cpp.
References CCgiApplication::CreateContextWithFlags(), env, CCgiApplication::m_RequestFlags, and out().
Referenced by CCgiApplication::Run(), and CFastCgiApplicationMT::x_ProcessThreadedRequest().
|
protectedvirtual |
The same as CreateContext(), but allows for a custom set of flags to be specified in the CCgiRequest constructor.
Reimplemented in CCgi2RCgiApp.
Definition at line 911 of file cgiapp.cpp.
References CCgiApplication::CreateContextWithFlags_Default(), env, flags, out(), and CCgiApplication::x_GetProcessor().
Referenced by CCgiApplication::CreateContext(), and CCgi2RCgiApp::CreateContextWithFlags().
|
protected |
Default implementation of CreateContextWithFlags.
Definition at line 925 of file cgiapp.cpp.
References eCgi_RequestMethod, env, NStr::EqualNocase(), IRegistry::eReturn, flags, CRWStreambuf::fOwnReader, CNcbiApplicationAPI::GetConfig(), CCgiRequestProcessor::GetInputStream(), IRegistry::GetInt(), CCgiRequestProcessor::GetOutputStream(), CCgiRequest::GetPropertyName(), CCgiRequestProcessor::IsSetInputStream(), CCgiRequestProcessor::IsSetOutputStream(), out(), CCgiRequestProcessor::SetInputStream(), CCgiRequestProcessor::SetOutputStream(), and CCgiResponse::x_ClientSupportsChunkedTransfer().
Referenced by CCgiApplication::CreateContextWithFlags().
|
protected |
Definition at line 1939 of file cgiapp.cpp.
References _TRACE, CDirEntry::CreateAbsolutePath(), IRegistry::eErrPost, CDirEntry::eRelativeToExe, IRegistry::Get(), CNcbiApplicationAPI::GetConfig(), and IRegistry::GetInt().
Referenced by CFastCgiApplicationMT::x_RunFastCGI().
|
protectedvirtual |
Create request processor to process the request.
If the method returns null, the application's ProcessRequest() method is used for the request. Otherwise request is passed to the processor.
Reimplemented in CFastCgiMTSampleApplication.
Definition at line 981 of file cgiapp.cpp.
References CCgiApplication::CCgiRequestProcessor.
Referenced by CCgiApplication::x_CreateProcessor().
|
protectedvirtual |
Class factory for statistics class.
Definition at line 1412 of file cgiapp.cpp.
References CCgiApplication::CCgiStatistics.
Referenced by CCgiApplication::Run(), and CFastCgiApplicationMT::x_RunFastCGI().
|
inline |
Do not use a cookie to transfer session id between requests By default cookie is enabled.
Definition at line 312 of file cgictx.hpp.
References CCgiSessionParameters::m_CookieEnabled.
|
inline |
Definition at line 440 of file cgictx.hpp.
References CCgiContext::m_Messages.
Definition at line 72 of file fcgiapp_mt.hpp.
References CFastCgiThreadedRequest::CEnv::data, CFastCgiThreadedRequest::m_Env, and CFastCgiThreadedRequest::x_ParseEnv().
Referenced by CFastCgiThreadedRequest::CEnv::Set(), CFastCgiThreadedRequest::x_ParseEnv(), and CFastCgiApplicationMT::x_ProcessThreadedRequest().
|
inline |
Definition at line 71 of file fcgiapp_mt.hpp.
|
override |
Definition at line 464 of file fcgiapp_mt.cpp.
References ERR_POST_X.
|
virtual |
This method is called on the CGI application exit.
No HTTP request (or context) is available at the time of call.
If you decide to override it, remember to call CCgiApplication::Exit().
Reimplemented from CNcbiApplicationAPI.
Definition at line 879 of file cgiapp.cpp.
References CNcbiApplicationAPI::Exit(), CCgiApplication::m_Processor, CCgiApplication::m_Resource, and CTls< TValue >::Reset().
|
inlineprotectedvirtual |
Schedule Fast-CGI loop to end as soon as possible, after safely finishing the currently processed request, if any.
Reimplemented in CFastCgiApplicationMT.
Definition at line 225 of file cgiapp.hpp.
References CCgiApplication::m_ShouldExit.
|
overrideprotectedvirtual |
Schedule Fast-CGI loop to end as soon as possible, after safely finishing the currently processed request, if any.
Reimplemented from CCgiApplication.
Definition at line 96 of file fcgiapp_mt.cpp.
References CFastCgiApplicationMT::m_Manager, and CFastCgiApplicationMT::m_ManagerStopped.
Referenced by s_ScheduleFastCGIMTExit(), and CFastCgiApplicationMT::x_ProcessThreadedRequest().
|
protected |
Definition at line 1266 of file cgiapp.cpp.
References map_checker< Container >::end(), map_checker< Container >::find(), ncbi::grid::netcache::search::fields::key, and CCgiApplication::m_DiagFactories.
Referenced by CCgiApplication::ConfigureDiagDestination().
Definition at line 440 of file cgiapp.cpp.
References CCgiStreamWrapperWriter::FinishChunkedTransfer(), and CCgiStreamWrapper::m_Writer.
Referenced by CCgiResponse::FinishChunkedTransfer().
|
inline |
Definition at line 635 of file cgiapp.hpp.
References CCgiRequestProcessor::m_App.
Referenced by CCgiRequestProcessorMT::CCgiRequestProcessorMT(), and CFastCgiMTSampleRequestProcessor::ProcessRequest().
|
inline |
Definition at line 636 of file cgiapp.hpp.
References CCgiRequestProcessor::m_App.
|
inline |
Definition at line 367 of file cgictx.hpp.
References CCgiContext::x_GetApp().
|
inline |
Definition at line 643 of file cgiapp.hpp.
References CCgiRequestProcessor::m_CgiArgs, and CCgiRequestProcessor::x_InitArgs().
Referenced by CCgiApplication::GetArgs(), CFastCgiMTSampleRequestProcessor::ProcessRequest(), and CFastCgiMTSampleRequestProcessor::x_LookAtArgs().
Get parsed command line arguments extended with CGI parameters.
Reimplemented from CNcbiApplicationAPI.
Definition at line 1065 of file cgiapp.cpp.
References CNcbiApplicationAPI::GetArgDescriptions(), CCgiRequestProcessor::GetArgs(), CNcbiApplicationAPI::GetArgs(), CCgiApplication::x_GetProcessor(), and CCgiApplication::x_IsSetProcessor().
Referenced by CCgi2RCgiApp::CheckJob(), CGridCgiSampleApplication::CollectParams(), CGridCgiSampleApplication::JobStopRequested(), and CCgiSampleApplication::x_LookAtArgs().
Definition at line 644 of file cgiapp.hpp.
References CCgiRequestProcessor::m_CgiArgs, and CCgiRequestProcessor::x_InitArgs().
|
overrideprotectedvirtual |
Reimplemented from CCgiApplication.
Definition at line 72 of file cgiapp_cached.cpp.
References _ASSERT, Get(), CCgiApplicationCached::m_CacheDriverName, CCgiApplicationCached::m_CacheTreeParams, NCBI_INTERFACE_VERSION, and NULL.
|
protectedvirtual |
Reimplemented in CCgiApplicationCached.
Definition at line 1431 of file cgiapp.cpp.
References NULL.
Referenced by CCgiApplication::Run(), and CFastCgiApplicationMT::x_ProcessThreadedRequest().
CNcbiRegistry & CCgiContext::GetConfig | ( | void | ) |
Definition at line 255 of file cgictx.cpp.
References CNcbiApplicationAPI::GetConfig(), and CCgiContext::x_GetApp().
const CNcbiRegistry & CCgiContext::GetConfig | ( | void | ) | const |
Definition at line 249 of file cgictx.cpp.
References CNcbiApplicationAPI::GetConfig(), and CCgiContext::x_GetApp().
|
inline |
Get current server context. Throw exception if the context is not set.
Definition at line 80 of file cgiapp.hpp.
References CCgiApplication::x_GetContext().
|
inline |
Definition at line 638 of file cgiapp.hpp.
References CCgiRequestProcessor::m_Context.
Referenced by CCgiStatistics::Compose_Entries(), CCgiRequestProcessor::ParseAcceptHeader(), CCgiRequestProcessor::ProcessAdminRequest_Base(), CCgiRequestProcessor::ProcessHelpRequest(), CCgiRequestProcessor::ProcessVersionRequest(), CCgiRequestProcessor::ValidateSynchronizationToken(), CCgiApplication::x_GetContext(), CCgiApplication::x_OnEvent(), CCgiApplication::x_ProcessAdminRequest(), CCgiApplication::x_ProcessHelpRequest(), and CCgiApplication::x_ProcessVersionRequest().
|
inline |
Get current server context. Throw exception if the context is not set.
Definition at line 78 of file cgiapp.hpp.
References CCgiApplication::x_GetContext().
Referenced by CCgiUserAgent::CCgiUserAgent(), CCgiApplication::LogRequest(), CAsBodyDiagFactory::New(), and CCgiApplication::x_AddLBCookie().
|
inline |
Definition at line 639 of file cgiapp.hpp.
References CCgiRequestProcessor::m_Context.
|
protectedvirtual |
Get default path for the log files.
Definition at line 1642 of file cgiapp.cpp.
References entries, IRegistry::EnumerateEntries(), CNcbiApplicationAPI::GetProgramExecutablePath(), IRegistry::GetString(), ITERATE, kEmptyStr, kToolkitRcPath, kWebDirToPort, mask, and string.
|
inline |
Definition at line 663 of file cgiapp.hpp.
References CCgiRequestProcessor::m_ErrorStatus.
Referenced by CCgiApplication::x_OnEvent().
|
protected |
Definition at line 1986 of file cgiapp.cpp.
References IRegistry::eReturn, IRegistry::GetBool(), and CNcbiApplicationAPI::GetConfig().
|
protected |
Definition at line 1933 of file cgiapp.cpp.
References IRegistry::GetBool(), and CNcbiApplicationAPI::GetConfig().
Referenced by CFastCgiApplicationMT::x_RunFastCGI().
|
protected |
Definition at line 1997 of file cgiapp.cpp.
References IRegistry::eErrPost, IRegistry::GetBool(), and CNcbiApplicationAPI::GetConfig().
Referenced by CFastCgiApplicationMT::x_ProcessThreadedRequest().
|
protected |
Definition at line 1992 of file cgiapp.cpp.
References IRegistry::eErrPost, IRegistry::GetBool(), and CNcbiApplicationAPI::GetConfig().
Referenced by CFastCgiApplicationMT::x_ProcessThreadedRequest().
Definition at line 1907 of file cgiapp.cpp.
References _ASSERT, _TRACE, IRegistry::eErrPost, ERR_POST_X, CNcbiApplicationAPI::GetConfig(), IRegistry::GetInt(), and int.
Referenced by CFastCgiApplicationMT::x_RunFastCGI().
|
protected |
Definition at line 2009 of file cgiapp.cpp.
References IRegistry::eErrPost, CNcbiApplicationAPI::GetConfig(), and IRegistry::GetInt().
Referenced by CFastCgiApplicationMT::x_RunFastCGI().
|
protected |
Definition at line 1888 of file cgiapp.cpp.
References IRegistry::Get(), and CNcbiApplicationAPI::GetConfig().
Referenced by CFastCgiApplicationMT::x_RunFastCGI().
|
protected |
Definition at line 1901 of file cgiapp.cpp.
References IRegistry::eReturn, IRegistry::GetBool(), and CNcbiApplicationAPI::GetConfig().
Referenced by CFastCgiApplicationMT::x_RunFastCGI().
|
protected |
Definition at line 2003 of file cgiapp.cpp.
References IRegistry::eErrPost, IRegistry::GetBool(), and CNcbiApplicationAPI::GetConfig().
Referenced by CFastCgiApplicationMT::x_RunFastCGI().
|
protected |
Definition at line 1974 of file cgiapp.cpp.
References IRegistry::eErrPost, CNcbiApplicationAPI::GetConfig(), IRegistry::GetInt(), CCurrentProcess::GetPid(), int, and r().
Referenced by CFastCgiApplicationMT::x_RunFastCGI().
Definition at line 1960 of file cgiapp.cpp.
References IRegistry::eErrPost, ERR_POST_X, CNcbiApplicationAPI::GetConfig(), and IRegistry::GetInt().
Referenced by CFastCgiApplicationMT::x_RunFastCGI().
|
inline |
Get the # of currently processed HTTP request.
1-based for FastCGI (but 0 before the first iteration starts); always 0 for regular (i.e. not "fast") CGIs.
Definition at line 91 of file cgiapp.hpp.
References CAtomicCounter::Get(), and CCgiApplication::m_Iteration.
Definition at line 2018 of file cgiapp.cpp.
References NCBI_THROW.
Referenced by CCgiApplication::ShouldRestart(), and CFastCgiApplicationMT::x_RunFastCGI().
|
inline |
Definition at line 647 of file cgiapp.hpp.
References CCgiRequestProcessor::m_InputStream.
Referenced by CCgiApplication::CreateContextWithFlags_Default(), and CCgiApplication::x_OnEvent().
|
inline |
Definition at line 648 of file cgiapp.hpp.
References CCgiRequestProcessor::m_InputStream.
|
protected |
Definition at line 1391 of file cgiapp.cpp.
References NStr::CompareNocase(), CCgiApplication::eLog, CCgiApplication::eLogOnError, CCgiApplication::eNoLog, IRegistry::Get(), CNcbiApplicationAPI::GetConfig(), and log.
|
inline |
Definition at line 657 of file cgiapp.hpp.
References CCgiRequestProcessor::m_OutputBroken.
Referenced by CCgiRequestProcessor::OnException(), CCgiApplication::Run(), and CCgiApplication::x_OnEvent().
|
inline |
Definition at line 652 of file cgiapp.hpp.
References CCgiRequestProcessor::m_OutputStream.
Referenced by CCgiApplication::CreateContextWithFlags_Default(), and CCgiApplication::x_OnEvent().
|
inline |
Definition at line 653 of file cgiapp.hpp.
References CCgiRequestProcessor::m_OutputStream.
|
protected |
|
inline |
Definition at line 381 of file cgictx.hpp.
References CCgiContext::m_Request.
|
inline |
Definition at line 374 of file cgictx.hpp.
References CCgiContext::m_Request.
Referenced by CCgiContext::AddRequestValue(), CCgiUserAgent::CCgiUserAgent(), CCgiStatistics::Compose_Entries(), CGridCgiContext::GetRequestEntryValue(), CCgiContext::GetRequestValue(), CCgiContext::GetSelfURL(), CCgiRequestProcessor::ParseAcceptHeader(), CCgiContext::RemoveRequestValues(), CCgiRequestProcessor::ValidateSynchronizationToken(), CCgiContext::x_IsSecure(), CCgiApplication::x_OnEvent(), CCgiApplication::x_ProcessAdminRequest(), CCgiApplication::x_ProcessHelpRequest(), and CCgiApplication::x_ProcessVersionRequest().
|
inline |
Definition at line 660 of file cgiapp.hpp.
References CCgiRequestProcessor::m_RequestStartPrinted.
Referenced by CCgiApplication::x_OnEvent().
Definition at line 288 of file cgictx.cpp.
References multimap_checker< Container >::equal_range(), CSafeStatic< T, Callbacks >::Get(), CCgiRequest::GetEntries(), CCgiContext::GetRequest(), compile_time_bits::range(), THROW1_TRACE, and rapidjson::value.
Referenced by CDisplaySeqalign::x_DisplayAlignSortInfo(), CShowBlastDefline::x_DisplayDeflineTable(), CDisplaySeqalign::x_FormatAlignSortInfo(), CDisplaySeqalign::x_MapDefLine(), and CDisplaySeqalign::x_ShowAlnvecInfoTemplate().
|
inline |
Get server 'resource'. Throw exception if the resource is not set.
Definition at line 85 of file cgiapp.hpp.
References CCgiApplication::x_GetResource().
|
inline |
Definition at line 593 of file cgiapp.hpp.
References CCgiApplication::GetResource(), and CCgiRequestProcessor::m_App.
CNcbiResource & CCgiContext::GetResource | ( | void | ) |
Definition at line 267 of file cgictx.cpp.
References CCgiApplication::GetResource(), and CCgiContext::x_GetApp().
|
inline |
Get server 'resource'. Throw exception if the resource is not set.
Definition at line 83 of file cgiapp.hpp.
References CCgiApplication::x_GetResource().
Referenced by CCgiRequestProcessor::GetResource(), and CCgiContext::GetResource().
|
inline |
Definition at line 592 of file cgiapp.hpp.
References CCgiApplication::GetResource(), and CCgiRequestProcessor::m_App.
const CNcbiResource & CCgiContext::GetResource | ( | void | ) | const |
Definition at line 261 of file cgictx.cpp.
References CCgiApplication::GetResource(), and CCgiContext::x_GetApp().
|
inline |
Definition at line 395 of file cgictx.hpp.
References CCgiContext::m_Response.
|
inline |
Definition at line 388 of file cgictx.hpp.
References CCgiContext::m_Response.
Referenced by CAsBodyDiagFactory::New(), CCgiRequestProcessor::ProcessAdminRequest_Base(), CCgiRequestProcessor::ProcessHelpRequest(), CCgiRequestProcessor::ProcessVersionRequest(), CGridCgiContext::SetCompleteResponse(), CGridCgiApplication::x_CheckJobStatus(), and CCgiApplication::x_OnEvent().
|
protected |
Definition at line 1468 of file cgiapp.cpp.
References CCgiRequest::CalcChecksum(), ERR_POST_X, CCacheHashedContent::GetHashedContent(), and NcbiStreamCopy().
Referenced by CCgiApplication::Run(), and CFastCgiApplicationMT::x_ProcessThreadedRequest().
|
inline |
Definition at line 669 of file cgiapp.hpp.
References CCgiRequestProcessor::m_IsResultReady.
Referenced by CCgiApplication::Run(), and CFastCgiApplicationMT::x_ProcessThreadedRequest().
|
inline |
Definition at line 666 of file cgiapp.hpp.
References CCgiRequestProcessor::m_RID.
Referenced by CCgiApplication::Run(), and CFastCgiApplicationMT::x_ProcessThreadedRequest().
|
protected |
Definition at line 1524 of file cgiapp.cpp.
References ERR_POST_X, ICache::GetReadStream(), and NULL.
Referenced by CCgiApplication::Run(), and CFastCgiApplicationMT::x_ProcessThreadedRequest().
string CCgiRequestProcessor::GetSelfReferer | ( | void | ) | const |
Get self-URL to be used as referer.
Definition at line 2524 of file cgiapp.cpp.
References eCgi_QueryString, and CCgiRequestProcessor::m_Context.
Referenced by CCgiApplication::ProcessHttpReferer(), and CFastCgiApplicationMT::x_ProcessThreadedRequest().
|
inline |
Using HTTP environment variables, compose the CGI's own URL as: SCHEME://SERVER_NAME[:SERVER_PORT]/SCRIPT_NAME.
Definition at line 217 of file cgictx.hpp.
References CCgiContext::GetSelfURL().
Referenced by CGridCgiContext::GetSelfURL(), and CCgiApplication::x_OnEvent().
Using HTTP environment variables, compose the CGI's own URL as: SCHEME://SERVER_NAME[:SERVER_PORT]/SCRIPT_NAME Port is always included if it does not correspond to the scheme's default port.
Definition at line 339 of file cgictx.cpp.
References _ASSERT, CUrlArgs::clear(), CTempString::clear(), CUrl::ComposeUrl(), CUrlArgs::eAmp_Char, eCgi_ScriptName, eCgi_ServerName, eCgi_ServerPort, NStr::EqualNocase(), CCgiContext::eSecure_NotSet, CCgiContext::eSecure_Off, CCgiContext::eSecure_On, CTempString::find(), CUrl::GetArgs(), CUrl::GetPath(), CUrl::GetPort(), CCgiRequest::GetProperty(), CCgiRequest::GetRandomProperty(), CCgiContext::GetRequest(), CUrl::GetScheme(), CUrl::IsEmpty(), kEmptyStr, CCgiContext::m_IsSecure, CCgiContext::m_SelfURL, NPOS, NStr::ReplaceInPlace(), CUrl::SetFragment(), CUrl::SetHost(), CUrl::SetIsGeneric(), CUrl::SetPath(), CUrl::SetPort(), CUrl::SetScheme(), CUrl::SetUrl(), and CCgiContext::x_IsSecure().
Referenced by CCgiContext::GetSelfURL(), and CCgiContext::x_InitSession().
|
inline |
Definition at line 409 of file cgictx.hpp.
References CCgiContext::x_GetServerContext().
|
inline |
Definition at line 402 of file cgictx.hpp.
References CCgiContext::x_GetServerContext().
|
virtual |
Get instance of CGI session storage interface.
If the CGI application needs to use CGI session it should overwrite this metod and return an instance of an implementation of ICgiSessionStorage interface.
params | Optional parameters |
Reimplemented in CCgiSessionSampleApplication.
Definition at line 1419 of file cgiapp.cpp.
Referenced by CCgiContext::x_InitSession().
CCgiContext::TStreamStatus CCgiContext::GetStreamStatus | ( | const CTimeout & | timeout | ) | const |
Definition at line 448 of file cgictx.cpp.
References FD_SETSIZE, CCgiContext::fInputReady, CCgiContext::fOutputReady, CTimeout::Get(), CTimeout::GetAsMilliSeconds(), CCgiResponse::GetOutputFD(), int, CTimeout::IsDefault(), CTimeout::IsFinite(), CTimeout::IsInfinite(), CTimeout::IsZero(), CCgiContext::m_Request, CCgiContext::m_Response, max(), NULL, poll, POLLIN, POLLOUT, result, and pollfd::revents.
|
inline |
Definition at line 454 of file cgictx.hpp.
CCgiStreamWrapper::EStreamMode CCgiStreamWrapper::GetWriterMode | ( | void | ) |
Definition at line 421 of file cgiapp.cpp.
References CCgiStreamWrapperWriter::GetMode(), and CCgiStreamWrapper::m_Writer.
Referenced by CCgiResponse::AbortChunkedTransfer(), and CCgiResponse::FinishChunkedTransfer().
bool CCgiWatchFile::HasChanged | ( | void | ) |
Definition at line 2291 of file cgiapp.cpp.
References buf, AutoPtr< X, Del >::get(), CCgiWatchFile::m_Buf, CCgiWatchFile::m_Count, CCgiWatchFile::m_Limit, and CCgiWatchFile::x_Read().
Referenced by CCgiApplication::ShouldRestart().
|
inline |
Definition at line 69 of file fcgiapp_mt.hpp.
References CFastCgiThreadedRequest::m_InputStream.
Referenced by CFastCgiApplicationMT::x_ProcessThreadedRequest().
|
virtual |
This method is called on the CGI application initialization – before starting to process a HTTP request or even receiving one.
No HTTP request (or context) is available at the time of call.
If you decide to override it, remember to call CCgiApplication::Init().
Reimplemented from CNcbiApplicationAPI.
Reimplemented in CFastCgiMTSampleApplication, CCgiApplicationCached, CSampleSoapServerApplication, CCgiSampleApplication, CGridCgiSampleApplication, CCgiSampleApplication, CCgiSampleApplication, CCgiSampleApplication, CApp, CRemoteCgiApp, CGridCgiApplication, CCgiRedirectApplication, CGlCgiImageApplication, CPsgCgiApp, CSeqTestApplication, and CCgi2RCgiApp.
Definition at line 864 of file cgiapp.cpp.
References eDPF_MergeLines, IRegistry::Get(), CNcbiApplicationAPI::GetConfig(), CNcbiApplicationAPI::Init(), CCgiApplication::LoadResource(), CCgiApplication::m_DiagPrefixEnv, CCgiApplication::m_Resource, and SetDiagPostFlag().
Referenced by CCgiRedirectApplication::Init(), CRemoteCgiApp::Init(), CCgiSampleApplication::Init(), CSampleSoapServerApplication::Init(), CCgiApplicationCached::Init(), and CFastCgiMTSampleApplication::Init().
|
virtual |
This method is called on the CGI application initialization – before starting to process a HTTP request or even receiving one.
No HTTP request (or context) is available at the time of call.
If you decide to override it, remember to call CCgiApplication::Init().
Reimplemented from CCgiApplication.
Reimplemented in CApp.
Definition at line 64 of file redirect.cpp.
References CHTMLPage::AddTagMap(), IRegistry::Get(), CNcbiApplicationAPI::GetConfig(), CCgiApplication::Init(), kDefaultRedirectTemplate, CCgiRedirectApplication::m_Page, CHTMLPage::SetTemplateBuffer(), and CHTMLPage::SetTemplateFile().
Referenced by CApp::Init().
|
overridevirtual |
This method is called on the CGI application initialization – before starting to process a HTTP request or even receiving one.
No HTTP request (or context) is available at the time of call.
If you decide to override it, remember to call CCgiApplication::Init().
Reimplemented from CCgiApplication.
Reimplemented in CGridCgiSampleApplication, CGridCgiApplication, and CCgi2RCgiApp.
Definition at line 52 of file cgiapp_cached.cpp.
References CConfig::ConvertRegToTree(), CTreeNode< TValue, TKeyGetterP >::FindSubNode(), CNcbiApplicationAPI::GetConfig(), CTreeNode< TValue, TKeyGetterP >::GetValue(), CCgiApplication::Init(), CCgiApplicationCached::m_CacheDriverName, and CCgiApplicationCached::m_CacheTreeParams.
Referenced by CCgi2RCgiApp::Init(), and CGridCgiApplication::Init().
|
protected |
Definition at line 2093 of file cgiapp.cpp.
References CArgs::Assign(), context, CArgDescriptions::ConvertKeys(), CNcbiApplicationAPI::GetArgDescriptions(), and CNcbiApplicationAPI::GetArgs().
Referenced by CCgiRequestProcessor::x_InitArgs().
|
override |
Definition at line 471 of file fcgiapp_mt.cpp.
References buf, and CFastCgiThreadedRequest::m_InputStream.
|
static |
Singleton.
Definition at line 457 of file cgiapp.cpp.
References CNcbiApplication::Instance().
Referenced by CCgiUserAgent::CCgiUserAgent(), CFastCgiApplicationMT::Instance(), and CCgiApplication::ShouldRestart().
|
static |
Singleton.
Definition at line 88 of file fcgiapp_mt.cpp.
References CCgiApplication::Instance().
Referenced by CFastCgiThreadedRequest::response(), and s_ScheduleFastCGIMTExit().
|
protectedvirtual |
Reimplemented in CGridCgiApplication.
Definition at line 1425 of file cgiapp.cpp.
Referenced by CCgiApplication::Run(), and CFastCgiApplicationMT::x_ProcessThreadedRequest().
|
virtual |
Return TRUE if it is running as a "fast" CGI.
Reimplemented in CFastCgiApplicationMT.
Definition at line 39 of file cgi_run.cpp.
|
inlineoverridevirtual |
Return TRUE if it is running as a "fast" CGI.
Reimplemented from CCgiApplication.
Definition at line 118 of file fcgiapp_mt.hpp.
|
inline |
Check if the current scheme is secure (https) or not (http).
Definition at line 227 of file cgictx.hpp.
References CCgiContext::m_IsSecure.
Referenced by CCgiContext::x_InitSession().
|
inline |
Definition at line 645 of file cgiapp.hpp.
References bool, and CCgiRequestProcessor::m_CgiArgs.
|
inline |
Definition at line 641 of file cgiapp.hpp.
References bool, and CCgiRequestProcessor::m_Context.
Referenced by CCgiStatistics::Compose_Entries(), and CCgiApplication::x_OnEvent().
|
inline |
Definition at line 650 of file cgiapp.hpp.
References bool, and CCgiRequestProcessor::m_InputStream.
Referenced by CCgiApplication::CreateContextWithFlags_Default(), and CCgiApplication::x_OnEvent().
|
inline |
Definition at line 655 of file cgiapp.hpp.
References bool, and CCgiRequestProcessor::m_OutputStream.
Referenced by CCgiApplication::CreateContextWithFlags_Default(), and CCgiApplication::x_OnEvent().
|
virtual |
Reimplemented in CHelloApp.
Definition at line 887 of file cgiapp.cpp.
Referenced by CCgiApplication::Init().
|
virtual |
Definition at line 893 of file cgiapp.cpp.
Referenced by CCgiContext::x_GetServerContext().
|
protected |
Write the required values to log (user-agent, self-url, referer etc.)
Definition at line 720 of file cgiapp.cpp.
References AStrEquiv(), ctx, eCgi_HttpReferer, eCgi_HttpUserAgent, eCgi_QueryString, eCgi_ScriptName, eCgi_ServerPort, CNcbiEnvironment::Enumerate(), env, f, CNcbiEnvironment::Get(), GetDiagContext(), ITERATE, names, Print(), NStr::ReplaceInPlace(), NStr::StartsWith(), str(), and NStr::ToLower().
|
protected |
Definition at line 715 of file cgiapp.cpp.
References CCgiApplication::GetContext().
Referenced by CCgiApplication::Run(), and CFastCgiApplicationMT::x_ProcessThreadedRequest().
typedef NCBI_PARAM_TYPE | ( | CGI | , |
Client_Connection_Interruption_Okay | |||
) |
typedef NCBI_PARAM_TYPE | ( | CGI | , |
Client_Connection_Interruption_Severity | |||
) |
typedef NCBI_PARAM_TYPE | ( | CGI | , |
DisableTrackingCookie | |||
) |
typedef NCBI_PARAM_TYPE | ( | CGI | , |
ResultCacheSectionName | |||
) |
typedef NCBI_PARAM_TYPE | ( | CGI | , |
TrackingCookieDomain | |||
) |
typedef NCBI_PARAM_TYPE | ( | CGI | , |
TrackingCookieName | |||
) |
typedef NCBI_PARAM_TYPE | ( | CGI | , |
TrackingCookiePath | |||
) |
typedef NCBI_PARAM_TYPE | ( | CGI | , |
TrackingTagName | |||
) |
|
protectedvirtual |
Definition at line 2618 of file cgiapp.cpp.
Referenced by CCgiApplication::OnEvent().
This method is called after each request, or when the CGI is forced to skip a request, or to finish altogether without processing a request.
No HTTP request (or context) may be available at the time of call.
The default implementation of this method does nothing.
event | CGI framework event |
status |
|
Definition at line 1252 of file cgiapp.cpp.
References CCgiRequestProcessor::OnEvent(), CCgiApplication::x_GetProcessor(), and CCgiApplication::x_IsSetProcessor().
Referenced by CRemoteCgiApp::RunJob(), and CCgiApplication::x_OnEvent().
|
protectedvirtual |
This method is called if an exception is thrown during the processing of HTTP request.
OnEvent() will be called after this method.
Context and Resource aren't valid at the time of this method call
The default implementation sends out an HTTP response with "e.what()", and then returns zero if the printout has got through, -1 otherwise.
e | The exception thrown |
os | Output stream to the client. |
Reimplemented in CNetCacheBlobFetchApp.
Definition at line 1059 of file cgiapp.cpp.
References CCgiRequestProcessor::OnException(), CCgiApplication::x_GetProcessor(), and CCgiApplication::x_IsSetProcessor().
Referenced by CNetCacheBlobFetchApp::OnException(), CCgiApplication::Run(), and CRemoteCgiApp::RunJob().
|
protectedvirtual |
Definition at line 2541 of file cgiapp.cpp.
References ERR_POST_X, CCgiException::eStatusNotSet, CNcbiApplicationAPI::GetArgDescriptions(), CException::GetMsg(), CCgiRequestProcessor::GetOutputBroken(), CDiagContext::GetRequestContext(), CCgiException::GetStatusCode(), CCgiException::GetStatusMessage(), NStr::HtmlEncode(), HTTP_EOL, NStr::IntToString(), CCgiRequestProcessor::m_App, NCBI_REPORT_EXCEPTION_X, CArgDescriptions::PrintUsage(), CCgiRequestProcessor::SetErrorStatus(), and CCgiRequestProcessor::SetHTTPStatus().
Referenced by CCgiApplication::OnException(), and CFastCgiApplicationMT::x_ProcessThreadedRequest().
|
inline |
Definition at line 1708 of file cgiapp.cpp.
References CCgiApplication::SAcceptEntry::m_MediaRangeParams, CCgiApplication::SAcceptEntry::m_Quality, CCgiApplication::SAcceptEntry::m_Subtype, and CCgiApplication::SAcceptEntry::m_Type.
|
inline |
Definition at line 82 of file cgictx.hpp.
References CCtxMsg::Write().
|
private |
|
private |
|
private |
|
inline |
Definition at line 70 of file fcgiapp_mt.hpp.
References out().
Referenced by CFastCgiApplicationMT::x_ProcessThreadedRequest().
|
protected |
Parse "Accept:" header, put entries to the list, more specific first.
Definition at line 1733 of file cgiapp.cpp.
References entries, CCgiRequestProcessor::ParseAcceptHeader(), and CCgiApplication::x_GetProcessor().
|
protected |
Definition at line 2648 of file cgiapp.cpp.
References eCgi_HttpAccept, entries, NStr::fConvErr_NoThrow, NStr::fSplit_MergeDelimiters, CCgiRequestProcessor::GetContext(), CCgiRequest::GetProperty(), CCgiContext::GetRequest(), ITERATE, CCgiApplication::SAcceptEntry::m_AcceptParams, CCgiApplication::SAcceptEntry::m_MediaRangeParams, CCgiApplication::SAcceptEntry::m_Quality, CCgiApplication::SAcceptEntry::m_Subtype, CCgiApplication::SAcceptEntry::m_Type, NStr::Split(), NStr::SplitInTwo(), NStr::TruncateSpaces(), NStr::TruncateSpacesInPlace(), types, and rapidjson::value.
Referenced by CCgiApplication::ParseAcceptHeader(), CCgiRequestProcessor::ProcessHelpRequest(), and CCgiRequestProcessor::ProcessVersionRequest().
|
protectedvirtual |
Check the command line arguments before parsing them.
If '-version' or '-version-full' is the only argument, print the version and exit (return ePreparse_Exit). Otherwise return ePreparse_Continue for normal execution.
Reimplemented from CNcbiApplicationAPI.
Definition at line 1438 of file cgiapp.cpp.
References CNcbiApplicationAPI::ePreparse_Continue, CNcbiApplicationAPI::ePreparse_Exit, CVersionAPI::fPackageShort, CVersionAPI::fVersionInfo, CNcbiApplicationAPI::GetFullVersion(), CNcbiApplicationAPI::GetProgramDisplayName(), CVersionAPI::Print(), s_ArgFullVersion, s_ArgVersion, and NStr::strcmp().
|
inline |
Definition at line 416 of file cgictx.hpp.
References ITERATE, and CCgiContext::m_Messages.
|
protectedvirtual |
Definition at line 2495 of file cgiapp.cpp.
References cmd, and CCgiRequestProcessor::ProcessAdminRequest_Base().
Referenced by CCgiApplication::ProcessAdminRequest(), and CCgiApplication::x_ProcessAdminRequest().
|
protectedvirtual |
Process admin command passed through ncbi_admin_cmd argument.
Return true on success, false if the command was not processed (in this case the default processing will be used).
Definition at line 1869 of file cgiapp.cpp.
References cmd, CCgiRequestProcessor::ProcessAdminRequest(), and CCgiApplication::x_GetProcessor().
|
private |
Definition at line 2501 of file cgiapp.cpp.
References cmd, CCgiException::e200_Ok, CCgiApplication::eAdmin_Unknown, CCgiRequestProcessor::GetContext(), CCgiContext::GetResponse(), CCgiException::GetStdStatusMessage(), CCgiResponse::SetContentType(), CCgiRequestProcessor::SetHTTPStatus(), and CCgiResponse::WriteHeader().
Referenced by CCgiRequestProcessor::ProcessAdminRequest(), and CCgiApplication::x_ProcessAdminRequest().
|
static |
Process cross-origin resource sharing (CORS) request.
If the request is a preflight one, send back the required data and return true (in this case normal ProcessRequest should not be called). Otherwise check if CORS is enabled and add the required headers to the response.
Definition at line 839 of file cgictx.cpp.
References _ASSERT, CCgiResponse::DisableTrackingCookie(), CRequestStatus::e403_Forbidden, CCgiRequest::eMethod_GET, CCgiRequest::eMethod_OPTIONS, CCgiRequest::eMethod_Other, CCgiRequest::eMethod_POST, NStr::eNocase, NStr::fSplit_MergeDelimiters, NStr::fSplit_Truncate, CCgiRequest::GetEntry(), CCgiRequest::GetRandomProperty(), CCgiRequest::GetRequestMethod(), NStr::Join(), kAC_AllowCredentials, kAC_AllowHeaders, kAC_AllowMethods, kAC_AllowOrigin, kAC_ExposeHeaders, kAC_MaxAge, kAC_Origin, kAC_RequestHeaders, kAC_RequestMethod, kDefaultHeaders, CCgiResponse::m_JQuery_Callback, origin, CCgiResponse::RemoveHeaderValue(), s_HeaderToHttp(), s_IsAllowedHeaderList(), s_IsAllowedMethod(), s_IsAllowedOrigin(), CCgiResponse::SetHeaderValue(), CCgiResponse::SetStatus(), NStr::Split(), NStr::StartsWith(), and CCgiResponse::WriteHeader().
Referenced by CCgiApplication::Run(), CRemoteCgiApp::RunJob(), and CFastCgiApplicationMT::x_ProcessThreadedRequest().
Process help request: set content type, print usage informations etc.
For automatic handling of help request all of the following conditions must be met:
Definition at line 1769 of file cgiapp.cpp.
References format, CCgiRequestProcessor::ProcessHelpRequest(), and CCgiApplication::x_GetProcessor().
Definition at line 2329 of file cgiapp.cpp.
References NStr::eNocase, entries, CFile::Exists(), FindContentType(), format, CNcbiApplicationAPI::GetArgDescriptions(), CCgiRequestProcessor::GetContext(), CCgiResponse::GetOutput(), CNcbiApplicationAPI::GetProgramExecutablePath(), CCgiContext::GetResponse(), i, in(), ITERATE, kStdContentTypes, kStdFormats, CCgiRequestProcessor::m_App, NCBI_THROW, NcbiStreamCopy(), CCgiRequestProcessor::ParseAcceptHeader(), CArgDescriptions::PrintUsageXml(), CCgiResponse::SetContentType(), NStr::StartsWith(), string, NStr::TruncateSpaces(), and CCgiResponse::WriteHeader().
Referenced by CCgiApplication::ProcessHelpRequest(), and CCgiApplication::x_ProcessHelpRequest().
|
protected |
Set CONN_HTTP_REFERER, print self-URL and referer to log.
Definition at line 704 of file cgiapp.cpp.
References CDiagContext::GetRequestContext(), CNcbiApplicationAPI::GetRWConfig(), CCgiRequestProcessor::GetSelfReferer(), IRWRegistry::Set(), CRequestContext::SetProperty(), and CCgiApplication::x_GetProcessor().
Referenced by CCgiApplication::Run().
|
virtual |
Process request provided by the context. By default calls application's ProcessRequest.
Reimplemented in CFastCgiMTSampleRequestProcessor.
Definition at line 2322 of file cgiapp.cpp.
References _ASSERT, context, CCgiRequestProcessor::m_App, CCgiRequestProcessor::m_Context, and CCgiApplication::ProcessRequest().
Referenced by CCgiApplication::Run(), and CFastCgiApplicationMT::x_ProcessThreadedRequest().
|
inlineoverridevirtual |
This method is not used by multithreaded FastCGI and should never be called.
Override CreateRequestProcessor and ICgiRequestProcessor::ProcessRequest instead.
Implements CCgiApplication.
Definition at line 116 of file fcgiapp_mt.hpp.
|
pure virtual |
This is the method you should override.
It is called whenever the CGI application gets a syntaxically valid HTTP request.
context | Contains the parameters of the HTTP request |
Implemented in CPsgCgiApp, CCgiSampleApplication, CCgiSampleApplication, CCgiSessionSampleApplication, CCgiSampleApplication, CBlastHitMatrixCGIApplication, CNetCacheBlobFetchApp, CCgi2RCgiApp, CSoapServerApplication, CGridCgiApplication, CCgiRedirectApplication, CGlCgiImageApplication, CFastCgiApplicationMT, and CHelloApp.
Referenced by CCgiRequestProcessor::ProcessRequest(), and CRemoteCgiApp::RunJob().
|
virtual |
This is the method you should override.
It is called whenever the CGI application gets a syntaxically valid HTTP request.
context | Contains the parameters of the HTTP request |
Implements CCgiApplication.
Definition at line 126 of file redirect.cpp.
References CHTMLPage::AddTagMap(), ctx, CNCBINode::eHTML, ERR_POST_X, IRegistry::Get(), i, ITERATE, CCgiRedirectApplication::m_Page, CCgiResponse::out(), CNCBINode::Print(), CCgiRedirectApplication::RemapEntries(), NStr::URLEncode(), and CCgiResponse::WriteHeader().
|
protectedvirtual |
Definition at line 2439 of file cgiapp.cpp.
References entries, CCgiApplication::eVersion_Full, CCgiApplication::eVersion_Short, format, CVersionAPI::fVersionInfo, CNcbiApplicationAPI::GetAppName(), CCgiRequestProcessor::GetContext(), CNcbiApplicationAPI::GetFullVersion(), CCgiResponse::GetOutput(), CCgiContext::GetResponse(), CNcbiApplicationAPI::GetVersion(), ITERATE, kEmptyStr, CCgiRequestProcessor::m_App, NCBI_THROW, out(), CCgiRequestProcessor::ParseAcceptHeader(), CVersionAPI::Print(), CVersionInfo::Print(), CVersionAPI::PrintJson(), CVersionAPI::PrintXml(), CCgiResponse::SetContentType(), and CCgiResponse::WriteHeader().
Referenced by CCgiApplication::ProcessVersionRequest(), and CCgiApplication::x_ProcessVersionRequest().
|
protectedvirtual |
Process version request: set content type, print version informations etc.
For automatic handling of version request all of the following conditions must be met:
Definition at line 1826 of file cgiapp.cpp.
References CCgiRequestProcessor::ProcessVersionRequest(), and CCgiApplication::x_GetProcessor().
|
inline |
Definition at line 433 of file cgictx.hpp.
References CCgiContext::m_Messages, and msg().
Definition at line 426 of file cgictx.hpp.
References CCgiContext::m_Messages, and msg().
|
protected |
Definition at line 1259 of file cgiapp.cpp.
References ncbi::grid::netcache::search::fields::key, and CCgiApplication::m_DiagFactories.
Referenced by CCgiApplication::CCgiApplication(), CCgi2RCgiApp::Init(), and CGridCgiSampleApplication::Init().
|
virtual |
Remap CGI entries for the redirection.
This default implementation uses registry file to obtain rules for the entries' remapping (see details in this class's description) New entries will be placed into "new_entries" according to these rules. If there is no rule defined for an entry, then the entry will be copied to "new_entries" as is, unchanged.
ctx | Current CGI context. Can be used to get original entries and server context. |
new_entries | Storage for the new, remapped CGI entries. Initially, it is empty, and this method should fill it up. These entries will then be used instead of original entries to generate request(URL) for the redirection. |
Definition at line 177 of file redirect.cpp.
References _TRACE, ctx, entries, IRegistry::EnumerateEntries(), NStr::fSplit_MergeDelimiters, NStr::fSplit_Truncate, IRegistry::Get(), CCgiRequest::GetEntries(), i, multimap_checker< Container >::insert(), ITERATE, kEmptyStr, s_AssignEntryValue(), s_FindEntryName(), NStr::Split(), and str().
Referenced by CCgiRedirectApplication::ProcessRequest().
Definition at line 319 of file cgictx.cpp.
References multimap_checker< Container >::erase(), CCgiRequest::GetEntries(), and CCgiContext::GetRequest().
Referenced by CCgiContext::ReplaceRequestValue().
Definition at line 331 of file cgictx.cpp.
References CCgiContext::AddRequestValue(), CCgiContext::RemoveRequestValues(), and rapidjson::value.
|
protectedvirtual |
Definition at line 2118 of file cgiapp.cpp.
References kEmptyStr, CCgiStatistics::m_ErrMsg, CCgiStatistics::m_Result, CCgiStatistics::m_StartTime, result, and start_time.
|
override |
Definition at line 455 of file fcgiapp_mt.cpp.
References _ASSERT, CFastCgiApplicationMT::Instance(), and CFastCgiApplicationMT::x_ProcessThreadedRequest().
string CCgiContext::RetrieveTrackingId | ( | ) | const |
Definition at line 563 of file cgictx.cpp.
References CCgiCookies::Find(), CDiagContext::GetRequestContext(), CRequestContext::GetSessionID(), CCgiEntry::GetValue(), CCgiCookie::GetValue(), CRequestContext::IsSetSessionID(), kEmptyStr, CCgiContext::m_Request, NStr::ReplaceInPlace(), s_CheckCookieForTID(), s_CheckRequestEntryForTID(), s_IsTID(), CRequestContext::SelectLastSessionID(), and CRequestContext::SetSessionID().
Referenced by CCgiContext::x_InitSession().
|
virtual |
Do not override this method yourself! – it includes all the CGI specific machinery.
If you override it, do call CCgiApplication::Run() from inside your overriding method.
Implements CNcbiApplicationAPI.
Reimplemented in CRemoteCgiApp.
Definition at line 468 of file cgiapp.cpp.
References _ASSERT, _TRACE, CCgiApplication::ConfigureDiagnostics(), context, CCgiApplication::CreateContext(), CCgiApplication::CreateStat(), CCgiException::e200_Ok, CCgiException::e400_BadRequest, CCgiException::e403_Forbidden, CTime::eCurrent, eDiagAppState_Request, eDiagAppState_RequestBegin, eDiagAppState_RequestEnd, CCgiApplication::eEndRequest, CCgiApplication::eError, CCgiApplication::eException, CCgiApplication::eExit, IRegistry::eReturn, ERR_POST_X, CCgiApplication::eStartRequest, CCgiApplication::eSuccess, failure, CRWStreambuf::fOwnWriter, Get(), IRegistry::GetBool(), CCgiApplication::GetCacheStorage(), CNcbiApplicationAPI::GetConfig(), GetDiagContext(), CNcbiApplicationAPI::GetEnvironment(), CCgiRequestProcessor::GetOutputBroken(), CCgiApplication::GetResultFromCache(), CCgiRequestProcessor::GetResultReady(), CCgiRequestProcessor::GetRID(), CCgiApplication::GetSavedRequest(), CCgiException::GetStatusCode(), CCgiException::GetStatusMessage(), NStr::IntToString(), CCgiApplication::IsCachingNeeded(), CCgiApplication::LogRequest(), CCgiApplication::m_DiagPrefixEnv, msg(), NCBI_CGI_THROW_WITH_STATUS, NCBI_REPORT_EXCEPTION_X, NcbiCout, NULL, CCgiApplication::OnException(), CCgiContext::ProcessCORSRequest(), CCgiApplication::ProcessHttpReferer(), CCgiRequestProcessor::ProcessRequest(), PushDiagPostPrefix(), result, CCgiApplication::SaveRequest(), CCgiApplication::SaveResultToCache(), CDiagContext::SetAppState(), CCgiStreamWrapper::SetCacheStream(), CCgiRequestProcessor::SetContext(), CCgiRequestProcessor::SetErrorStatus(), CCgiRequestProcessor::SetHTTPStatus(), SigTermHandler(), start_time, CCgiApplication::ValidateSynchronizationToken(), CCgiApplication::VerifyCgiContext(), CCgiApplication::x_AddLBCookie(), CCgiApplication::x_CreateProcessor(), CCgiApplication::x_DoneHeadRequest(), CCgiApplication::x_OnEvent(), CCgiApplication::x_ProcessAdminRequest(), CCgiApplication::x_ProcessHelpRequest(), CCgiApplication::x_ProcessVersionRequest(), and CCgiApplication::x_RunFastCGI().
|
inline |
Definition at line 344 of file cgiapp.hpp.
|
protected |
Definition at line 1508 of file cgiapp.cpp.
References ERR_POST_X, ICache::GetWriteStream(), and CCgiRequest::Serialize().
Referenced by CCgiApplication::Run(), and CFastCgiApplicationMT::x_ProcessThreadedRequest().
|
protected |
Definition at line 1489 of file cgiapp.cpp.
References CCgiRequest::CalcChecksum(), ERR_POST_X, NcbiStreamCopy(), and CCacheHashedContent::StoreHashedContent().
Referenced by CCgiApplication::Run(), and CFastCgiApplicationMT::x_ProcessThreadedRequest().
Definition at line 89 of file fcgiapp_mt.hpp.
References CFastCgiThreadedRequest::CEnv::data, CFastCgiThreadedRequest::env(), strdup, and rapidjson::value.
Referenced by CFastCgiThreadedRequest::x_ParseEnv().
void CCgiStreamWrapper::SetCacheStream | ( | CNcbiOstream & | stream | ) |
Definition at line 434 of file cgiapp.cpp.
References CCgiStreamWrapper::m_Writer, and CCgiStreamWrapperWriter::SetCacheStream().
Referenced by CCgiApplication::Run(), and CFastCgiApplicationMT::x_ProcessThreadedRequest().
|
protected |
Attach cookie affinity service interface.
Pointer ownership goes to the CCgiApplication.
Definition at line 987 of file cgiapp.cpp.
References CCgiApplication::m_Caf.
|
inline |
Definition at line 640 of file cgiapp.hpp.
References context, and CCgiRequestProcessor::m_Context.
Referenced by CCgiApplication::Run(), and CFastCgiApplicationMT::x_ProcessThreadedRequest().
|
inline |
Definition at line 664 of file cgiapp.hpp.
References CCgiRequestProcessor::m_ErrorStatus, and val.
Referenced by CCgiRequestProcessor::OnException(), CCgiApplication::Run(), and CCgiApplication::x_OnEvent().
|
protected |
Set HTTP status code in the current request context and in the current CHttpResponse if one exists.
Definition at line 1684 of file cgiapp.cpp.
References CDiagContext::GetRequestContext(), CCgiRequestProcessor::SetHTTPStatus(), CRequestContext::SetRequestStatus(), CCgiApplication::x_GetProcessor(), and CCgiApplication::x_IsSetProcessor().
Referenced by CNetCacheBlobFetchApp::OnException().
|
protected |
Definition at line 2624 of file cgiapp.cpp.
References ITracerSpan::eStatusCode, ITracerSpan::eStatusString, CDiagContext::GetRequestContext(), CRequestContext::GetTracerSpan(), CCgiRequestProcessor::m_Context, NStr::NumericToString(), and CRequestContext::SetRequestStatus().
Referenced by CCgiRequestProcessor::OnException(), CCgiRequestProcessor::ProcessAdminRequest_Base(), CCgiApplication::Run(), CCgiApplication::SetHTTPStatus(), and CCgiApplication::x_OnEvent().
|
inline |
Spescify which class is responsible for Session Storage destruction if set to eTakeOwnership, then a CGI session will delete it, otherwise the CGI application should do it.
Default the CGI session takes responsibility.
Definition at line 308 of file cgictx.hpp.
References CCgiSessionParameters::m_ImplOwner.
|
inline |
Definition at line 649 of file cgiapp.hpp.
References in(), and CCgiRequestProcessor::m_InputStream.
Referenced by CCgiApplication::CreateContextWithFlags_Default().
|
inline |
Definition at line 658 of file cgiapp.hpp.
References CCgiRequestProcessor::m_OutputBroken, and val.
Referenced by CCgiApplication::x_OnEvent(), and CFastCgiApplicationMT::x_ProcessThreadedRequest().
|
inline |
Definition at line 654 of file cgiapp.hpp.
References CCgiRequestProcessor::m_OutputStream, and out().
Referenced by CCgiApplication::CreateContextWithFlags_Default().
|
inline |
Set cgi parsing flag.
Definition at line 130 of file cgiapp.hpp.
References flags, and CCgiApplication::m_RequestFlags.
Referenced by CCgi2RCgiApp::Init(), CCgiSampleApplication::x_SetupArgs(), CFastCgiMTSampleApplication::x_SetupArgs(), and CGridCgiSampleApplication::x_SetupArgs().
Definition at line 1462 of file cgiapp.cpp.
References CCgiRequestProcessor::SetRequestId(), and CCgiApplication::x_GetProcessor().
Referenced by CCgi2RCgiApp::CheckIfJobDone(), and CGridCgiApplication::x_CheckJobStatus().
Definition at line 2641 of file cgiapp.cpp.
References CCgiRequestProcessor::m_IsResultReady, and CCgiRequestProcessor::m_RID.
Referenced by CCgiApplication::SetRequestId().
|
inline |
Definition at line 661 of file cgiapp.hpp.
References CCgiRequestProcessor::m_RequestStartPrinted, and val.
Referenced by CCgiApplication::x_OnEvent().
|
inline |
Definition at line 670 of file cgiapp.hpp.
References CCgiRequestProcessor::m_IsResultReady, and val.
Definition at line 667 of file cgiapp.hpp.
References CCgiRequestProcessor::m_RID, and val.
Set session cookie's domain Default: .ncbi.nlm.nih.gov.
Definition at line 320 of file cgictx.hpp.
References CCgiSessionParameters::m_SessionCookieDomain.
Set session cookie's expiration time Default: none.
Definition at line 330 of file cgictx.hpp.
References CCgiSessionParameters::m_SessionCookieExpTime.
Set session cookie's path Default: /.
Definition at line 325 of file cgictx.hpp.
References CCgiSessionParameters::m_SessionCookiePath.
Set name of the cookie with session id.
Default: ncbi_sessionid
Definition at line 316 of file cgictx.hpp.
References CCgiSessionParameters::m_SessionIdName.
|
virtual |
Setup the command line argument descriptions.
Call from the Init() method. The passed "arg_desc" will be owned by this class, and it will be deleted by ~CNcbiApplicationAPI(), or if SetupArgDescriptions() is called again.
Reimplemented from CNcbiApplicationAPI.
Reimplemented in CRemoteCgiApp.
Definition at line 794 of file cgiapp.cpp.
References CArgDescriptions::eCgiArgs, CArgDescriptions::SetArgsType(), and CNcbiApplicationAPI::SetupArgDescriptions().
Referenced by CCgi2RCgiApp::Init(), CRemoteCgiApp::SetupArgDescriptions(), CCgiSampleApplication::x_SetupArgs(), CFastCgiMTSampleApplication::x_SetupArgs(), and CGridCgiSampleApplication::x_SetupArgs().
void CCgiStreamWrapper::SetWriterMode | ( | CCgiStreamWrapper::EStreamMode | mode | ) |
Definition at line 427 of file cgiapp.cpp.
References CCgiStreamWrapper::m_Writer, and CCgiStreamWrapperWriter::SetMode().
Referenced by CCgiResponse::FinishChunkedTransfer(), and CCgiResponse::WriteHeader().
|
staticprotected |
Definition at line 2053 of file cgiapp.cpp.
References _TRACE, CurrentTime(), CTime::eGmt, ERR_POST_X, CCgiApplication::eSR_Executable, CCgiApplication::eSR_None, CCgiApplication::eSR_WatchFile, CNcbiApplicationAPI::GetArguments(), CCgiApplication::GetFileModificationTime(), GetProgramName, CCgiWatchFile::HasChanged(), CCgiApplication::Instance(), and Warning().
Referenced by CFastCgiApplicationMT::x_ProcessThreadedRequest().
Definition at line 2183 of file cgiapp.cpp.
References LOG_POST_X.
|
virtual |
Validate synchronization token (cross-site request forgery prevention).
CSRF prevention is controlled by CGI_VALIDATE_CSRF_TOKEN variable (bool). The default implementation assumes the token is passed in Ncbi-CSRF-Token HTTP header and must be equal to the current session id.
Definition at line 1882 of file cgiapp.cpp.
References CCgiRequestProcessor::ValidateSynchronizationToken(), and CCgiApplication::x_GetProcessor().
Referenced by CCgiApplication::Run().
|
virtual |
Definition at line 2515 of file cgiapp.cpp.
References CCgiRequestProcessor::GetContext(), CCgiRequest::GetRandomProperty(), CCgiContext::GetRequest(), CCgiRequest::GetTrackingCookie(), and kCSRFTokenName.
Referenced by CCgiApplication::ValidateSynchronizationToken(), and CFastCgiApplicationMT::x_ProcessThreadedRequest().
|
protected |
Check CGI context for possible problems, throw exception with HTTP status set if something is wrong.
Definition at line 1611 of file cgiapp.cpp.
References context, CCgiException::e403_Forbidden, eDiag_Info, NStr::EqualNocase(), NCBI_EXCEPTION_THROW, and NCBI_EXCEPTION_VAR.
Referenced by CCgiApplication::Run(), and CFastCgiApplicationMT::x_ProcessThreadedRequest().
|
virtual |
Implements CCtxMsg.
Definition at line 101 of file cgictx.cpp.
References CCtxMsgString::m_Message, and CCtxMsgString::sm_nl.
|
pure virtual |
Implemented in CCtxMsgString.
Referenced by operator<<().
|
private |
Definition at line 1605 of file cgiapp.cpp.
References CCgiApplication::AddLBCookie(), and CCgiApplication::GetContext().
Referenced by CCgiApplication::Run().
|
protected |
Definition at line 851 of file cgiapp.cpp.
References CCgiApplication::CreateRequestProcessor(), CCgiApplication::m_Processor, s_CleanupProcessor(), CTls< TValue >::SetValue(), and CCgiApplication::x_GetProcessor().
Referenced by CCgiApplication::Run(), and CFastCgiApplicationMT::x_ProcessThreadedRequest().
|
private |
Definition at line 1695 of file cgiapp.cpp.
References context, CCgiRequest::eMethod_HEAD, CCgiRequest::GetRequestMethod(), and CCgiResponse::IsHeaderWritten().
Referenced by CCgiApplication::Run().
|
private |
Definition at line 181 of file cgictx.cpp.
References CCgiContext::m_App, and NCBI_THROW.
Referenced by CCgiContext::GetApp(), CCgiContext::GetConfig(), CCgiContext::GetResource(), and CCgiContext::x_GetServerContext().
|
private |
Definition at line 802 of file cgiapp.cpp.
References ERR_POST_X, CCgiRequestProcessor::GetContext(), CCgiApplication::x_GetProcessor(), and CCgiApplication::x_IsSetProcessor().
Referenced by CCgiApplication::GetContext().
|
private |
Definition at line 828 of file cgiapp.cpp.
References ERR_POST_X, CTls< TValue >::GetValue(), CCgiApplication::m_Processor, and proc.
Referenced by CCgiStatistics::Compose_Entries(), CCgiApplication::CreateContextWithFlags(), CCgiApplication::GetArgs(), CCgiApplication::OnEvent(), CCgiApplication::OnException(), CCgiApplication::ParseAcceptHeader(), CCgiApplication::ProcessAdminRequest(), CCgiApplication::ProcessHelpRequest(), CCgiApplication::ProcessHttpReferer(), CCgiApplication::ProcessVersionRequest(), CCgiApplication::SetHTTPStatus(), CCgiApplication::SetRequestId(), CCgiApplication::ValidateSynchronizationToken(), CCgiApplication::x_CreateProcessor(), and CCgiApplication::x_GetContext().
|
private |
Definition at line 839 of file cgiapp.cpp.
References CTls< TValue >::GetValue(), and CCgiApplication::m_Processor.
Referenced by CCgiApplication::x_OnEvent().
|
private |
Definition at line 812 of file cgiapp.cpp.
References ERR_POST_X, and CCgiApplication::m_Resource.
Referenced by CCgiApplication::GetResource().
|
private |
Definition at line 273 of file cgictx.cpp.
References context, ERR_POST_X, CCgiApplication::LoadServerContext(), CCgiContext::m_ServerContext, and CCgiContext::x_GetApp().
Referenced by CCgiContext::GetServCtx().
|
private |
Definition at line 2693 of file cgiapp.cpp.
References CCgiApplication::InitArgs(), CCgiRequestProcessor::m_App, CCgiRequestProcessor::m_CgiArgs, and CCgiRequestProcessor::m_Context.
Referenced by CCgiRequestProcessor::GetArgs().
|
private |
Definition at line 190 of file cgictx.cpp.
References CCgiResponse::Cookies(), ctx, CCgiException::e400_BadRequest, CCgiSession::eNoCookie, CCgiSession::eUseCookie, flags, CCgiRequest::fSkipDiagProperties, GetDiagContext(), CDiagContext::GetRequestContext(), CCgiContext::GetSelfURL(), CCgiApplication::GetSessionStorage(), CCgiContext::IsSecure(), kEmptyStr, CCgiContext::m_App, CCgiSessionParameters::m_CookieEnabled, CCgiSessionParameters::m_ImplOwner, CCgiContext::m_Request, CCgiContext::m_Response, CCgiContext::m_Session, CCgiSessionParameters::m_SessionCookieDomain, CCgiSessionParameters::m_SessionCookieExpTime, CCgiSessionParameters::m_SessionCookiePath, CCgiSessionParameters::m_SessionIdName, CCgiContext::RetrieveTrackingId(), CCgiCookies::SetSecure(), CCgiResponse::SetTrackingCookie(), CCgiResponse::x_SetSession(), and CCgiContext::x_SetStatus().
Referenced by CCgiContext::CCgiContext().
|
private |
Definition at line 427 of file cgictx.cpp.
References NStr::EqualNocase(), CCgiContext::eSecure_NotSet, CCgiContext::eSecure_Off, CCgiContext::eSecure_On, CCgiRequest::GetRandomProperty(), and CCgiContext::GetRequest().
Referenced by CCgiContext::GetSelfURL().
|
private |
Definition at line 822 of file cgiapp.cpp.
References CTls< TValue >::GetValue(), and CCgiApplication::m_Processor.
Referenced by CCgiApplication::GetArgs(), CCgiApplication::OnEvent(), CCgiApplication::OnException(), CCgiApplication::SetHTTPStatus(), and CCgiApplication::x_GetContext().
|
protected |
Definition at line 1073 of file cgiapp.cpp.
References CCgiResponse::AcceptRangesBytes(), CRequestStatus::e299_PartialContentBrokenConnection, CRequestStatus::e499_BrokenConnection, eCgi_ContentLength, eCgi_ContentType, eCgi_HttpUserAgent, eCgi_QueryString, eCgi_RemoteAddr, eCgi_RequestMethod, eCgi_ScriptName, eCgi_ServerName, eCgi_ServerPort, eCgi_ServerProtocol, ITracerSpan::eClientAddress, CCgiApplication::eEndRequest, CCgiApplication::eError, ITracerSpan::eError, CCgiApplication::eException, CCgiApplication::eExecutable, CCgiApplication::eExit, CCgiApplication::eExitOnFail, CCgiApplication::eExitRequest, ITracerSpan::eHttpScheme, ITracerSpan::eKind_Server, eNcbiStrings_Stat, ITracerSpan::eRequest, ITracerSpan::eRequestMethod, ITracerSpan::eServerAddress, ITracerSpan::eServerPort, CCgiApplication::eStartRequest, CCgiApplication::eSuccess, ITracerSpan::eSuccess, ITracerSpan::eUrl, ITracerSpan::eUrlScheme, CCgiApplication::eWaiting, CCgiApplication::eWatchFile, CDiagContext::Extra(), CCgiCookies::Find(), CDiagContext_Extra::Flush(), g_GetNcbiString(), CExtraEntryCollector::GetArgs(), CUrlArgs::GetArgs(), CCgiRequest::GetCGIEntries(), CCgiRequestProcessor::GetContext(), CCgiRequest::GetCookies(), GetDiagContext(), CCgiRequestProcessor::GetErrorStatus(), CCgiRequestProcessor::GetInputStream(), CCgiResponse::GetOutput(), CCgiRequestProcessor::GetOutputBroken(), CCgiRequestProcessor::GetOutputStream(), CCgiRequest::GetProperty(), CCgiRequest::GetRandomProperty(), CCgiContext::GetRequest(), CDiagContext::GetRequestContext(), CCgiRequestProcessor::GetRequestStartPrinted(), CCgiContext::GetResponse(), CCgiContext::GetSelfURL(), CRequestContext::GetTracerSpan(), CCgiResponse::HaveContentRange(), in(), CCgiRequestProcessor::IsSetContext(), CCgiRequestProcessor::IsSetInputStream(), CDiagContext::IsSetOldPostFormat(), CCgiRequestProcessor::IsSetOutputStream(), ITERATE, NcbiStreamposToInt8(), NULL, CCgiApplication::OnEvent(), out(), CDiagContext_Extra::Print(), CDiagContext::PrintRequestStart(), CDiagContext::PrintRequestStop(), CRequestContext::Reset(), CRequestContext::SetBytesRd(), CRequestContext::SetBytesWr(), CCgiRequestProcessor::SetErrorStatus(), CCgiRequestProcessor::SetHTTPStatus(), CCgiRequestProcessor::SetOutputBroken(), CCgiRequestProcessor::SetRequestStartPrinted(), CRequestContext::SetRequestStatus(), CRequestContext::SetTracerSpanKind(), and st().
Referenced by CCgiApplication::Run(), CFastCgiApplicationMT::x_ProcessThreadedRequest(), and CFastCgiApplicationMT::x_RunFastCGI().
Definition at line 430 of file cgiapp.hpp.
References CCgiApplication::x_GetProcessorOrNull(), and CCgiApplication::x_OnEvent().
Referenced by CCgiApplication::x_OnEvent().
|
private |
Definition at line 481 of file fcgiapp_mt.cpp.
References buf, CFastCgiThreadedRequest::CEnv::data, CTime::eGmt, CFastCgiThreadedRequest::env(), ERR_POST_X, NStr::eUrlEnc_Cookie, NStr::eUrlEnc_Path, NStr::eUrlEnc_URIQueryName, NStr::eUrlEnc_URIQueryValue, HEAD, CFastCgiThreadedRequest::m_Env, NStr::NumericToString(), query, NStr::Replace(), CFastCgiThreadedRequest::CEnv::Set(), t, and NStr::URLEncode().
Referenced by CFastCgiThreadedRequest::env().
|
protected |
Definition at line 1831 of file cgiapp.cpp.
References cmd, CCgiApplication::eAdmin_Health, CCgiApplication::eAdmin_HealthDeep, CCgiApplication::eAdmin_HealthZ, CCgiApplication::eAdmin_LiveZ, CCgiApplication::eAdmin_ReadyZ, CCgiApplication::eAdmin_Unknown, eCgi_PathInfo, CCgiRequest::eMethod_GET, NStr::EqualNocase(), CCgiRequestProcessor::GetContext(), CCgiRequest::GetEntry(), CCgiRequest::GetProperty(), CCgiContext::GetRequest(), CCgiRequest::GetRequestMethod(), CCgiRequestProcessor::ProcessAdminRequest(), CCgiRequestProcessor::ProcessAdminRequest_Base(), NStr::TrimPrefixInPlace(), and NStr::TrimSuffixInPlace().
Referenced by CCgiApplication::Run(), and CFastCgiApplicationMT::x_ProcessThreadedRequest().
|
protected |
Definition at line 1745 of file cgiapp.cpp.
References CCgiRequest::eMethod_GET, format, CCgiRequestProcessor::GetContext(), CCgiRequest::GetEntry(), CCgiContext::GetRequest(), CCgiRequest::GetRequestMethod(), and CCgiRequestProcessor::ProcessHelpRequest().
Referenced by CCgiApplication::Run(), and CFastCgiApplicationMT::x_ProcessThreadedRequest().
|
private |
Definition at line 188 of file fcgiapp_mt.cpp.
References _ASSERT, _TRACE, CAtomicCounter::Add(), CCgiApplication::AddLBCookie(), CRequestContext::AddPassThroughProperty(), CCgiApplication::CheckMemoryLimit(), context, CCgiApplication::CreateContext(), CCgiException::e200_Ok, CCgiException::e400_BadRequest, CCgiException::e403_Forbidden, CTime::eCurrent, eDiagAppState_Request, eDiagAppState_RequestBegin, eDiagAppState_RequestEnd, CCgiApplication::eEndRequest, CCgiApplication::eError, CCgiApplication::eException, CCgiApplication::eExecutable, CCgiApplication::eExitOnFail, CCgiApplication::eExitRequest, CFastCgiThreadedRequest::env(), env, CCgiApplication::eSR_Executable, CCgiApplication::eSR_WatchFile, CCgiApplication::eStartRequest, CCgiApplication::eSuccess, CCgiApplication::eWatchFile, CFastCgiApplicationMT::FASTCGI_ScheduleExit(), CRWStreambuf::fOwnWriter, CAtomicCounter::Get(), CCgiApplication::GetCacheStorage(), GetDiagContext(), CCgiApplication::GetFastCGIDebug(), CCgiApplication::GetFastCGIHonorExitRequest(), CCurrentProcess::GetPid(), CDiagContext::GetRequestContext(), CCgiApplication::GetResultFromCache(), CCgiRequestProcessor::GetResultReady(), CCgiRequestProcessor::GetRID(), CCgiApplication::GetSavedRequest(), CCgiRequestProcessor::GetSelfReferer(), CCgiException::GetStatusCode(), CCgiException::GetStatusMessage(), HTTP_EOL, CFastCgiThreadedRequest::in(), CCgiApplication::IsCachingNeeded(), ITERATE, CCgiApplication::LogRequest(), CFastCgiApplicationMT::m_ErrorCounter, CFastCgiApplicationMT::m_IsStatLog, CCgiApplication::m_Iteration, CFastCgiApplicationMT::m_MaxIterations, CFastCgiApplicationMT::m_ModTime, CCgiApplication::m_Processor, CFastCgiApplicationMT::m_RestartDelay, CFastCgiApplicationMT::m_Stat, CFastCgiApplicationMT::m_StopIfFailed, CFastCgiApplicationMT::m_Watcher, msg(), names, NCBI_CATCH_ALL_X, NCBI_CGI_THROW_WITH_STATUS, NCBI_REPORT_EXCEPTION_X, NcbiStreamposToInt8(), NULL, NStr::NumericToString(), CCgiRequestProcessor::OnException(), CFastCgiThreadedRequest::out(), CCgiContext::ProcessCORSRequest(), CCgiRequestProcessor::ProcessRequest(), RunIdler(), CCgiApplication::SaveRequest(), CCgiApplication::SaveResultToCache(), CAtomicCounter::Set(), CDiagContext::SetAppState(), CRequestContext::SetBytesRd(), CRequestContext::SetBytesWr(), CCgiStreamWrapper::SetCacheStream(), CCgiRequestProcessor::SetContext(), SetDiagRequestId(), CCgiRequestProcessor::SetOutputBroken(), CRequestContext::SetProperty(), CCgiApplication::ShouldRestart(), start_time, CCgiRequestProcessor::ValidateSynchronizationToken(), CCgiApplication::VerifyCgiContext(), CCgiApplication::x_CreateProcessor(), CCgiApplication::x_OnEvent(), CCgiApplication::x_ProcessAdminRequest(), CCgiApplication::x_ProcessHelpRequest(), and CCgiApplication::x_ProcessVersionRequest().
Referenced by CFastCgiThreadedRequest::response().
|
protected |
Definition at line 1781 of file cgiapp.cpp.
References eEntry, CCgiRequest::eMethod_GET, CCgiApplication::eVersion_Full, CCgiApplication::eVersion_Short, CCgiRequestProcessor::GetContext(), CCgiRequest::GetEntry(), CCgiContext::GetRequest(), CCgiRequest::GetRequestMethod(), NCBI_THROW, CCgiRequestProcessor::ProcessVersionRequest(), and NStr::StringToBool().
Referenced by CCgiApplication::Run(), and CFastCgiApplicationMT::x_ProcessThreadedRequest().
|
private |
Definition at line 2271 of file cgiapp.cpp.
References buf, in(), CCgiWatchFile::m_Filename, and CCgiWatchFile::m_Limit.
Referenced by CCgiWatchFile::CCgiWatchFile(), and CCgiWatchFile::HasChanged().
Reimplemented in CFastCgiApplicationMT.
Definition at line 44 of file cgi_run.cpp.
Referenced by CCgiApplication::Run().
|
overrideprotectedvirtual |
Reimplemented from CCgiApplication.
Definition at line 106 of file fcgiapp_mt.cpp.
References _TRACE, close(), CCgiApplication::CreateFastCGIWatchFile(), CCgiApplication::CreateStat(), eDiagAppState_AppEnd, CCgiApplication::eExit, ERR_POST, ERR_POST_X, CAtomicCounter::Get(), CNcbiApplicationAPI::GetArguments(), GetDiagContext(), CCgiApplication::GetFastCGIComplete_Request_On_Sigterm(), CCgiApplication::GetFastCGIIterations(), CCgiApplication::GetFastCGIMTMaxThreads(), CCgiApplication::GetFastCGIStandaloneServer(), CCgiApplication::GetFastCGIStatLog(), CCgiApplication::GetFastCGIStopIfFailed(), CCgiApplication::GetFastCGIWatchFileRestartDelay(), CCgiApplication::GetFastCGIWatchFileTimeout(), CCgiApplication::GetFileModificationTime(), GetProgramName, int, CCgiApplication::m_CaughtSigterm, CFastCgiApplicationMT::m_ErrorCounter, CFastCgiApplicationMT::m_IsStatLog, CFastCgiApplicationMT::m_Manager, CFastCgiApplicationMT::m_MaxIterations, CFastCgiApplicationMT::m_ModTime, CFastCgiApplicationMT::m_RestartDelay, CFastCgiApplicationMT::m_Stat, CFastCgiApplicationMT::m_StopIfFailed, CFastCgiApplicationMT::m_Watcher, CFastCgiApplicationMT::m_WatchTimeout, result, CDiagContext::SetAppState(), SignalHandler(), Warning(), and CCgiApplication::x_OnEvent().
|
private |
Definition at line 614 of file cgictx.cpp.
References CCgiContext::m_StatusCode, CCgiContext::m_StatusMessage, and msg().
Referenced by CCgiContext::x_InitSession().
CCgiApplication::~CCgiApplication | ( | void | ) |
Definition at line 1049 of file cgiapp.cpp.
References free(), ITERATE, CCgiApplication::m_DiagFactories, and CCgiApplication::m_HostIP.
CCgiApplicationCached::~CCgiApplicationCached | ( | void | ) |
Definition at line 47 of file cgiapp_cached.cpp.
|
virtual |
Definition at line 243 of file cgictx.cpp.
|
inline |
Definition at line 679 of file cgiapp.hpp.
References CCgiProcessorGuard::m_Proc, and CTls< TValue >::Reset().
|
virtual |
Definition at line 2317 of file cgiapp.cpp.
|
virtual |
Definition at line 592 of file fcgiapp_mt.cpp.
|
virtual |
Definition at line 70 of file cgictx.cpp.
|
virtual |
Definition at line 2113 of file cgiapp.cpp.
|
virtual |
Definition at line 81 of file cgictx.cpp.
|
virtual |
Definition at line 95 of file cgictx.cpp.
|
inline |
Definition at line 83 of file fcgiapp_mt.hpp.
References CFastCgiThreadedRequest::CEnv::data, and free().
CFastCgiApplicationMT::~CFastCgiApplicationMT | ( | void | ) |
Definition at line 83 of file fcgiapp_mt.cpp.
CFastCgiThreadedRequest::~CFastCgiThreadedRequest | ( | void | ) |
Definition at line 450 of file fcgiapp_mt.cpp.
bool | ( | void | ) |
Definition at line 688 of file cgiapp.hpp.
Referenced by CCgiRequestProcessor::IsSetArgs(), CCgiRequestProcessor::IsSetContext(), CCgiRequestProcessor::IsSetInputStream(), and CCgiRequestProcessor::IsSetOutputStream().
CGI |
Definition at line 688 of file cgiapp.hpp.
Referenced by CCgiUserAgent::x_CheckPattern().
Client_Connection_Interruption_Okay |
Definition at line 699 of file cgiapp.hpp.
Client_Connection_Interruption_Severity |
Definition at line 703 of file cgiapp.hpp.
vector<char*> CFastCgiThreadedRequest::CEnv::data |
Definition at line 94 of file fcgiapp_mt.hpp.
Referenced by CFastCgiThreadedRequest::env(), CFastCgiThreadedRequest::CEnv::Set(), CFastCgiThreadedRequest::x_ParseEnv(), and CFastCgiThreadedRequest::CEnv::~CEnv().
DisableTrackingCookie |
Definition at line 688 of file cgiapp.hpp.
Definition at line 702 of file cgiapp.hpp.
TParams CCgiApplication::SAcceptEntry::m_AcceptParams |
Accept parameters.
Definition at line 352 of file cgiapp.hpp.
Referenced by CCgiRequestProcessor::ParseAcceptHeader().
|
private |
Definition at line 619 of file cgiapp.hpp.
Referenced by CCgiRequestProcessor::GetApp(), CCgiRequestProcessor::GetResource(), CCgiRequestProcessor::OnException(), CCgiRequestProcessor::ProcessHelpRequest(), CCgiRequestProcessor::ProcessRequest(), CCgiRequestProcessor::ProcessVersionRequest(), and CCgiRequestProcessor::x_InitArgs().
|
private |
Definition at line 268 of file cgictx.hpp.
Referenced by CCgiContext::x_GetApp(), and CCgiContext::x_InitSession().
|
private |
Definition at line 539 of file cgiapp.hpp.
Referenced by CCgiWatchFile::CCgiWatchFile(), and CCgiWatchFile::HasChanged().
|
private |
Definition at line 66 of file cgiapp_cached.hpp.
Referenced by CCgiApplicationCached::GetCacheStorage(), and CCgiApplicationCached::Init().
|
private |
Definition at line 65 of file cgiapp_cached.hpp.
Referenced by CCgiApplicationCached::GetCacheStorage(), and CCgiApplicationCached::Init().
|
private |
Definition at line 458 of file cgiapp.hpp.
Referenced by CCgiApplication::AddLBCookie(), and CCgiApplication::SetCafService().
|
protected |
Definition at line 435 of file cgiapp.hpp.
Referenced by s_ScheduleFastCGIMTExit(), and CFastCgiApplicationMT::x_RunFastCGI().
|
protected |
Definition at line 512 of file cgiapp.hpp.
Referenced by CCgiStatistics::Compose(), CCgiStatistics::Compose_Entries(), and CCgiStatistics::Compose_ProgramName().
|
mutableprivate |
Definition at line 622 of file cgiapp.hpp.
Referenced by CCgiRequestProcessor::GetArgs(), CCgiRequestProcessor::IsSetArgs(), and CCgiRequestProcessor::x_InitArgs().
|
private |
Definition at line 620 of file cgiapp.hpp.
Referenced by CCgiRequestProcessor::GetContext(), CCgiRequestProcessor::GetSelfReferer(), CCgiRequestProcessor::IsSetContext(), CCgiRequestProcessor::ProcessRequest(), CCgiRequestProcessor::SetContext(), CCgiRequestProcessor::SetHTTPStatus(), and CCgiRequestProcessor::x_InitArgs().
|
private |
Definition at line 344 of file cgictx.hpp.
Referenced by CCgiSessionParameters::DisableCookie(), and CCgiContext::x_InitSession().
|
private |
Definition at line 538 of file cgiapp.hpp.
Referenced by CCgiWatchFile::CCgiWatchFile(), and CCgiWatchFile::HasChanged().
|
private |
Definition at line 456 of file cgiapp.hpp.
Referenced by CCgiApplication::FindDiagFactory(), CCgiApplication::RegisterDiagFactory(), and CCgiApplication::~CCgiApplication().
|
private |
Definition at line 462 of file cgiapp.hpp.
Referenced by CCgiApplication::Init(), and CCgiApplication::Run().
|
mutableprivate |
Definition at line 98 of file fcgiapp_mt.hpp.
Referenced by CFastCgiThreadedRequest::env(), and CFastCgiThreadedRequest::x_ParseEnv().
|
protected |
Definition at line 516 of file cgiapp.hpp.
Referenced by CCgiStatistics::Compose_ErrMessage(), and CCgiStatistics::Reset().
|
private |
Definition at line 133 of file fcgiapp_mt.hpp.
Referenced by CFastCgiApplicationMT::CFastCgiApplicationMT(), CFastCgiApplicationMT::x_ProcessThreadedRequest(), and CFastCgiApplicationMT::x_RunFastCGI().
Definition at line 630 of file cgiapp.hpp.
Referenced by CCgiRequestProcessor::GetErrorStatus(), and CCgiRequestProcessor::SetErrorStatus().
|
private |
Definition at line 536 of file cgiapp.hpp.
Referenced by CCgiWatchFile::x_Read().
|
private |
Definition at line 459 of file cgiapp.hpp.
Referenced by CCgiApplication::AddLBCookie(), and CCgiApplication::~CCgiApplication().
|
private |
Definition at line 343 of file cgictx.hpp.
Referenced by CCgiSessionParameters::SetImplOwnership(), and CCgiContext::x_InitSession().
|
private |
Definition at line 624 of file cgiapp.hpp.
Referenced by CCgiRequestProcessor::GetInputStream(), CCgiRequestProcessor::IsSetInputStream(), and CCgiRequestProcessor::SetInputStream().
|
private |
Definition at line 97 of file fcgiapp_mt.hpp.
Referenced by CFastCgiThreadedRequest::in(), and CFastCgiThreadedRequest::inProcessor().
Definition at line 632 of file cgiapp.hpp.
Referenced by CCgiRequestProcessor::GetResultReady(), CCgiRequestProcessor::SetRequestId(), and CCgiRequestProcessor::SetResultReady().
|
mutableprivate |
Definition at line 281 of file cgictx.hpp.
Referenced by CCgiContext::GetSelfURL(), and CCgiContext::IsSecure().
|
private |
Definition at line 134 of file fcgiapp_mt.hpp.
Referenced by CFastCgiApplicationMT::x_ProcessThreadedRequest(), and CFastCgiApplicationMT::x_RunFastCGI().
|
protected |
Definition at line 437 of file cgiapp.hpp.
Referenced by CCgiApplication::CCgiApplication(), CCgiApplication::GetFCgiIteration(), and CFastCgiApplicationMT::x_ProcessThreadedRequest().
|
private |
Definition at line 537 of file cgiapp.hpp.
Referenced by CCgiWatchFile::HasChanged(), and CCgiWatchFile::x_Read().
|
protected |
Definition at line 513 of file cgiapp.hpp.
Referenced by CCgiStatistics::Compose(), CCgiStatistics::Compose_Entries(), and CCgiStatistics::Compose_Timing().
|
private |
Definition at line 132 of file fcgiapp_mt.hpp.
Referenced by CFastCgiApplicationMT::FASTCGI_ScheduleExit(), and CFastCgiApplicationMT::x_RunFastCGI().
|
private |
Definition at line 142 of file fcgiapp_mt.hpp.
Referenced by CFastCgiApplicationMT::FASTCGI_ScheduleExit().
|
private |
Definition at line 136 of file fcgiapp_mt.hpp.
Referenced by CFastCgiApplicationMT::x_ProcessThreadedRequest(), and CFastCgiApplicationMT::x_RunFastCGI().
string CCgiApplication::SAcceptEntry::m_MediaRangeParams |
Media range parameters.
Definition at line 351 of file cgiapp.hpp.
Referenced by CCgiApplication::SAcceptEntry::operator<(), and CCgiRequestProcessor::ParseAcceptHeader().
|
private |
Definition at line 109 of file cgictx.hpp.
Referenced by CCtxMsgString::Write().
|
private |
Definition at line 275 of file cgictx.hpp.
Referenced by CCgiContext::ClearMsg(), CCgiContext::EmptyMsg(), CCgiContext::PrintMsg(), and CCgiContext::PutMsg().
|
private |
Definition at line 141 of file fcgiapp_mt.hpp.
Referenced by CFastCgiApplicationMT::x_ProcessThreadedRequest(), and CFastCgiApplicationMT::x_RunFastCGI().
Definition at line 626 of file cgiapp.hpp.
Referenced by CCgiRequestProcessor::GetOutputBroken(), and CCgiRequestProcessor::SetOutputBroken().
|
private |
Definition at line 625 of file cgiapp.hpp.
Referenced by CCgiRequestProcessor::GetOutputStream(), CCgiRequestProcessor::IsSetOutputStream(), and CCgiRequestProcessor::SetOutputStream().
|
private |
HTML page used to send back the redirect information.
Definition at line 117 of file redirect.hpp.
Referenced by CCgiRedirectApplication::Init(), and CCgiRedirectApplication::ProcessRequest().
|
private |
Definition at line 681 of file cgiapp.hpp.
Referenced by CCgiProcessorGuard::~CCgiProcessorGuard().
|
protected |
Definition at line 436 of file cgiapp.hpp.
Referenced by CCgiApplication::Exit(), CCgiApplication::x_CreateProcessor(), CCgiApplication::x_GetProcessor(), CCgiApplication::x_GetProcessorOrNull(), CCgiApplication::x_IsSetProcessor(), and CFastCgiApplicationMT::x_ProcessThreadedRequest().
float CCgiApplication::SAcceptEntry::m_Quality |
Quality factor or "1" if not set (or not numeric).
Definition at line 350 of file cgiapp.hpp.
Referenced by CCgiApplication::SAcceptEntry::operator<(), and CCgiRequestProcessor::ParseAcceptHeader().
|
private |
Definition at line 269 of file cgictx.hpp.
Referenced by CCgiContext::CCgiContext(), CCgiContext::GetRequest(), CCgiContext::GetStreamStatus(), CCgiContext::RetrieveTrackingId(), and CCgiContext::x_InitSession().
|
protected |
Bit flags for CCgiRequest.
Definition at line 378 of file cgiapp.hpp.
Referenced by CCgiApplication::CreateContext(), CRemoteCgiApp::RunJob(), and CCgiApplication::SetRequestFlags().
Definition at line 629 of file cgiapp.hpp.
Referenced by CCgiRequestProcessor::GetRequestStartPrinted(), and CCgiRequestProcessor::SetRequestStartPrinted().
|
private |
Definition at line 453 of file cgiapp.hpp.
Referenced by CCgiApplication::Exit(), CCgiApplication::Init(), and CCgiApplication::x_GetResource().
|
private |
Definition at line 159 of file fcgiapp_mt.hpp.
Referenced by CCgiRequestProcessorMT::CCgiRequestProcessorMT().
|
private |
Definition at line 270 of file cgictx.hpp.
Referenced by CCgiContext::CCgiContext(), CCgiContext::GetResponse(), CCgiContext::GetStreamStatus(), and CCgiContext::x_InitSession().
|
private |
Definition at line 139 of file fcgiapp_mt.hpp.
Referenced by CFastCgiApplicationMT::x_ProcessThreadedRequest(), and CFastCgiApplicationMT::x_RunFastCGI().
|
protected |
Definition at line 515 of file cgiapp.hpp.
Referenced by CCgiStatistics::Compose_Result(), and CCgiStatistics::Reset().
|
private |
Definition at line 631 of file cgiapp.hpp.
Referenced by CCgiRequestProcessor::GetRID(), CCgiRequestProcessor::SetRequestId(), and CCgiRequestProcessor::SetRID().
|
mutableprivate |
Definition at line 280 of file cgictx.hpp.
Referenced by CCgiContext::GetSelfURL().
|
private |
Definition at line 278 of file cgictx.hpp.
Referenced by CCgiContext::x_GetServerContext().
|
private |
Definition at line 271 of file cgictx.hpp.
Referenced by CCgiContext::x_InitSession().
|
private |
Definition at line 346 of file cgictx.hpp.
Referenced by CCgiSessionParameters::SetSessionCookieDomain(), and CCgiContext::x_InitSession().
|
private |
Definition at line 348 of file cgictx.hpp.
Referenced by CCgiSessionParameters::SetSessionCookieExpTime(), and CCgiContext::x_InitSession().
|
private |
Definition at line 347 of file cgictx.hpp.
Referenced by CCgiSessionParameters::SetSessionCookiePath(), and CCgiContext::x_InitSession().
|
private |
Definition at line 345 of file cgictx.hpp.
Referenced by CCgiSessionParameters::SetSessionIdName(), and CCgiContext::x_InitSession().
Definition at line 465 of file cgiapp.hpp.
Referenced by CCgiApplication::FASTCGI_ScheduleExit().
|
protected |
Definition at line 514 of file cgiapp.hpp.
Referenced by CCgiStatistics::Compose(), CCgiStatistics::Compose_Timing(), and CCgiStatistics::Reset().
|
private |
Definition at line 135 of file fcgiapp_mt.hpp.
Referenced by CFastCgiApplicationMT::x_ProcessThreadedRequest(), and CFastCgiApplicationMT::x_RunFastCGI().
|
mutableprivate |
Definition at line 285 of file cgictx.hpp.
Referenced by CCgiContext::CheckStatus(), and CCgiContext::x_SetStatus().
|
mutableprivate |
Definition at line 286 of file cgictx.hpp.
Referenced by CCgiContext::CheckStatus(), and CCgiContext::x_SetStatus().
|
private |
Definition at line 140 of file fcgiapp_mt.hpp.
Referenced by CFastCgiApplicationMT::x_ProcessThreadedRequest(), and CFastCgiApplicationMT::x_RunFastCGI().
string CCgiApplication::SAcceptEntry::m_Subtype |
Definition at line 349 of file cgiapp.hpp.
Referenced by CCgiApplication::SAcceptEntry::operator<(), and CCgiRequestProcessor::ParseAcceptHeader().
string CCgiApplication::SAcceptEntry::m_Type |
Definition at line 348 of file cgiapp.hpp.
Referenced by CCgiApplication::SAcceptEntry::operator<(), and CCgiRequestProcessor::ParseAcceptHeader().
|
private |
Definition at line 137 of file fcgiapp_mt.hpp.
Referenced by CFastCgiApplicationMT::x_ProcessThreadedRequest(), and CFastCgiApplicationMT::x_RunFastCGI().
|
private |
Definition at line 138 of file fcgiapp_mt.hpp.
Referenced by CFastCgiApplicationMT::x_RunFastCGI().
|
private |
Definition at line 575 of file cgiapp.hpp.
Referenced by CCgiStreamWrapper::AbortChunkedTransfer(), CCgiStreamWrapper::FinishChunkedTransfer(), CCgiStreamWrapper::GetWriterMode(), CCgiStreamWrapper::SetCacheStream(), and CCgiStreamWrapper::SetWriterMode().
NCBI_XCGI_EXPORT |
Definition at line 688 of file cgiapp.hpp.
|
static |
Definition at line 106 of file cgictx.hpp.
Referenced by CCtxMsgString::Write().
string |
Definition at line 690 of file cgiapp.hpp.
Referenced by abort(), CAlnMix::Add(), CAlnMixSequences::Add(), ncbi::psg::retrieval::ReplyStatus::add_message(), CNSClientsRegistry::AddBlacklistedJobs(), CArgDescriptions::CPrintUsage::AddCommandDescription(), NMItemData::AddConstraintIgnoreNewText(), CArgDescriptions::CPrintUsage::AddDetails(), CIndexedDb_New::AddIndexInfo(), CRtProfiler::AddMarkerMT(), AddNode(), CCleanup::AddPartialToProteinTitle(), CSAM_CIGAR_Formatter::AddRow(), TaxTreeData::addRows(), SAccGuide::AddRule(), CTableAnnotDataSource::AddSeqLoc(), CTableAnnotDataSource::AddSnpSeqLoc(), CFarPointerSeq::AddSpaces(), CAttribMenu::AddSubMenuUnique(), CNSClientsRegistry::AddToSubmitted(), CRtProfiler::AddUserKV(), CRtProfiler::AddUserKVMT(), CCSSTableTooltipFormatter::AddValueCol(), CHtmlTooltipFormatter::AddValueCol(), AlignModelToSeqalign(), dbg_block_allocator::allocate(), dbg_ptr_allocator::allocate(), CMsvcConfigure::AnalyzeDefines(), AppendBioseqLabel(), CNcbiApplicationAPI::AppMain(), CCassPrm::Assign(), CGff2Record::AssignFromGff(), pythonpp::CString::AsStdSring(), pythonpp::CBinary::AsStdSring(), CRtProfiler::AsString(), AtomSet::AtomSet(), CDirEntry::Backup(), CStringUtil::base64Decode(), CStringUtil::base64Encode(), BDB_RecoverEnv(), BEGIN_NAMED_BASE_CHOICE_INFO(), BEGIN_NAMED_BASE_CLASS_INFO(), BEGIN_NAMED_CHOICE_INFO(), Blast4SearchInfo_BuildReplyName(), BlastXML2_PrintHeader(), BlastXML_FormatReport(), BOOST_AUTO_TEST_CASE(), CDebugDumpViewer::Bpt(), CAlnMixSegments::Build(), BuildGFF3Gap(), BLASTer::CalculateSelfHitScores(), CPrintTraversalNodeCallback::Call(), Convert::CassValueConvert< string >(), cb_error(), cb_fatal_error(), cb_warning(), CBlastDBSeqId::CBlastDBSeqId(), CBlastnAppArgs::CBlastnAppArgs(), CCddBookRefToBvString(), CCompressionDictionary::CCompressionDictionary(), CDDSplashDialog::CDDSplashDialog(), CFlatSeqLoc::CFlatSeqLoc(), CGffAlignmentRecord::CGffAlignmentRecord(), CRtProfiler::CheckDoReport(), CGLFrameBuffer::CheckFBOError(), CConnTest::CheckFWConnections(), CAltValidator::CheckTaxids(), CAlnMix::ChooseSeqId(), CIndexSuperHeader< CIndexSuperHeader_Base::INDEX_FORMAT_VERSION_1 >::CIndexSuperHeader(), CLatLonMap_Base::CLatLonMap_Base(), clean_up(), CNcbiApplogApp::Cmd_Health(), CMsvcPrjGeneralContext::CMsvcPrjGeneralContext(), xml::xpath_expression::compile_expression(), CSeq_id::ComposeOSLT(), CSeqDBAliasNode::ComputeMasks(), CDirEntry::ConcatPathEx(), CConnection::Connect(), xml::node::convert_to_nset(), CSeq_inst::ConvertDeltaToRaw(), CPhyloTreePane::CPhyloTreePane(), CPsiBlastInputClustalW::CPsiBlastInputClustalW(), CPsiBlastInputData::CPsiBlastInputData(), CSeqMaskerIstatFactory::create(), CSeqMaskerOstatFactory::create(), xml::node::create_xpath_context(), CSeq_align::CreateDensegFromDisc(), CSeq_align::CreateDensegFromStdseg(), CreateEditorForObject(), XSDParser::CreateEntityId(), CTableAnnotDataSource::CreateFeature(), BLASTer::CreateNewPairwiseAlignmentsByBlast(), CGlShader::CreateShader(), CTableAnnotDataSource::CreateSnpFeature(), CTableAnnotDataSource::CreateSnps(), CDbapiCursorApp::CreateTable(), CHTMLPage::CreateTemplate(), CSeq_align::CreateTranslatedDensegFromNADenseg(), WSDLParser::CreateWsdlName(), CSeqDBExtFile::CSeqDBExtFile(), CSequenceIStreamBlastDB::CSequenceIStreamBlastDB(), CTLibContext::CTLIB_srverr_handler(), ctransition_ErrMessage(), CWriteDB_CreateOidMaskDB(), DbIndexInit(), CBlastQueryInfo::DebugDump(), CBlastEffectiveLengthsOptions::DebugDump(), decode_dollar_escape(), CNcbiEncrypt::Decrypt(), CRawSeqToDeltaByN::DeltaSeqToRaw(), CVDBCacheWithExpiration::CExpirationInfo::DereferncePath(), SQueueParameters::Diff(), display_output_text(), CConnTest::DnsOkay(), CBlastDBSeqId::do_copy(), mu::Parser::change_dec_sep< TChar >::do_grouping(), do_xgbparse_error(), CwxLogDiagHandler::DoLogRecord(), CRtProfiler::DoReport(), Residue::Draw(), CAttribMenuItem::Draw(), CSeq_id_Textseq_Tree::Dump(), CSeq_id_Local_Tree::Dump(), CSeq_id_General_Tree::Dump(), AlignmentDisplay::DumpCondensed(), DumpSparseAln(), CDumpSysInfo::DumpSystemInfo(), DumpText(), CBioseqEditor::EditSelection(), jetbrains::teamcity::TeamcityBoostLogFormatter::entry_context_start(), CEnumParser< TEnum, TParam >::EnumToString(), xml::attributes::erase(), EraseStrCollection(), jetbrains::teamcity::TeamcityMessages::escape(), xml::node::evaluate_xpath_expression(), evaluate_xpath_expression(), xml::impl::epimpl::event_attribute_declaration(), xml::impl::epimpl::event_cdata(), xml::impl::epimpl::event_comment(), xml::impl::epimpl::event_element_declaration(), xml::impl::epimpl::event_end_element(), xml::impl::epimpl::event_entity_declaration(), xml::impl::epimpl::event_entity_reference(), xml::impl::epimpl::event_error(), xml::impl::epimpl::event_external_subset_declaration(), xml::impl::epimpl::event_fatal_error(), xml::impl::epimpl::event_internal_subset_declaration(), xml::impl::epimpl::event_notation_declaration(), xml::impl::epimpl::event_pi(), xml::impl::epimpl::event_start_element(), xml::impl::epimpl::event_text(), xml::impl::epimpl::event_unparsed_entity_declaration(), xml::impl::epimpl::event_warning(), CLBLASTObjectLoader::Execute(), pythonpp::CEngine::ExecuteFile(), ExecuteSQL(), pythonpp::CEngine::ExecuteStr(), CBlastDatabaseArgs::ExtractAlgorithmOptions(), CFilteringArgs::ExtractAlgorithmOptions(), CGlBitmapFont::FaceToString(), FetchSequenceViaHTTP(), CAlignFormatUtil::FillScanModeBlastDbInfo(), xml::impl::find_prop(), CAttribMenu::FindItem(), CFixedSeq_ids::FindLabel(), CEnumeratedTypeValues::FindValue(), SeqTree::fixRowName(), FnToStdString(), CFeedbackReport::Format(), CFlatModelEvQVal::Format(), CAgpErr::FormatMessage(), CTextUtils::FormatSeparatedNumber(), FtaErrGetMsgCodes(), g_GetPasswordFromConsole(), g_ToSizeStr(), CBinsGlyph::GenerateBinSignature(), CChoiceTypeStrings::GenerateClassCode(), CTraversalNode::GenerateCode(), CGeneMarkerGlyph::GenerateGeneMarkerSignature(), CCodeGenerator::GenerateModuleCPP(), GenerateSignature(), CEnumTypeStrings::GenerateTypeCode(), GenerateWinItemPrefix(), CBlobStoreBase::GenReadQuery(), CBDB_FieldFixedByteString::Get(), CBDB_FieldString::Get(), TypeStringAssociator< StyleSettings::eLabelType >::Get(), CSDB_ConnectionParam::Get(), CTextColumn::Get(), xslt::xpath_object::get_as_string(), get_dtd_parsing_error_message(), xml::node::get_path(), get_quoted_string(), SRequestBuilder::SReader< SPsgCgiEntries >::GetAbsPathRef(), GetAcceptor(), CRPCClient< CGBenchServiceRequest, CGBenchServiceReply >::GetAffinity(), CSeqUtils::GetAlignDbBatch(), CSeqUtils::GetAlignDbIsQuery(), CObjFingerprint::GetAlignSignature(), CVcfVariant::GetAllAlleles_display(), CQualityScoringMethodNA::GetAllowedSymbols(), CVcfVariant::GetAltAlleles_orig(), CObjectIStreamAsn::GetAltItemIndex(), CPSGS_SNPProcessor::GetAnnotation(), CSNPClient::GetAnnotInfo(), GetAsnDataViaHTTP(), GetAsnDataViaHTTPS(), CEUtils_Request::GetBaseURL(), NASNCacheFileName::GetBDBIndex(), CMacroBioData_BioSourceIter::GetBestDescr(), CAlnVec::GetBioseqHandle(), CAlignFormatUtil::GetBlastDbInfo(), CTaxonCache::GetBlastName(), CPSGS_CDDProcessor::GetBlobByBlobId(), CPSGS_WGSProcessor::GetBlobByBlobId(), CPSGS_CDDProcessor::GetBlobBySeqId(), CPSGS_WGSProcessor::GetBlobBySeqId(), CPSGS_CDDProcessor::GetBlobId(), SCacheInfo::GetBlobSubkey(), CCgiRequest::GetCGIEntries(), CPSGS_WGSProcessor::GetChunk(), NASNCacheFileName::GetChunkPrefix(), GetCitBook(), CCassQuery::GetColumnDef(), GetColumnSectionName(), CMixedStrands::GetCommand(), CTaxonCache::GetCommon(), SConfigInfo::GetConfigFullName(), CFormDataProvider_Base::GetContentType(), CGuiObjectInfoSeq_align::GetCoverage(), CCalcTextPosOStream::GetCurrentLine(), CDDTypedAnnotDialog::GetData(), CVcfTrackData::GetDataSourceTypeName(), GetDefaultLogLocation(), CCgiApplication::GetDefaultLogPath(), CWGSResolver_VDB::GetDefaultWGSIndexAcc(), CWGSResolver_VDB::GetDefaultWGSIndexPath(), AlignmentCollection::GetDefline(), CCharHistogram::GetDelimiterProbablities(), CResetScopeHistoryJob::GetDescr(), CFeatCompareJob::GetDescr(), CFeatureRetrievalJob::GetDescr(), CTSE_Info_Object::GetDescription(), CSetTypeStrings::GetDestructionCode(), CListTypeStrings::GetDestructionCode(), CMapTypeStrings::GetDestructionCode(), CDirEntry::GetDir(), CSaveImagesSetupDlg::GetDirectoryName(), GetDiscrepancyNames(), GetDonor(), CPDB_seq_id::GetEffectiveChain_id(), CHelloCommand::GetEntry(), CRemoteBlast::GetErrors(), CSearchResults::GetErrorStrings(), CCgiCookie::GetExpDate(), CRR_Util::GetFieldValueConverted(), CSplitCacheApp::GetFileName(), CFormDataProvider_Base::GetFileName(), CSaveImagesSetupDlg::GetFileRootName(), CCmdLineBlastXML2ReportData::GetFilterString(), CCmdLineBlastXMLReportData::GetFilterString(), jetbrains::teamcity::getFlowIdFromEnvironment(), CFtglFontManager::GetFont(), CApplyPubQualTreeItemData::GetFunction(), CParseToBsrcTreeItemData::GetFunction(), CParseToCdsGeneProtTreeItemData::GetFunction(), CGffIdGenerator::GetGffId(), NASNCacheFileName::GetGIIndex(), CHitMatrixRenderer::GetGraphs(), NASNCacheFileName::GetHeader(), CBamDb::GetHeaderText(), Messenger::GetHighlightsForSelectionMessage(), CSocketAPI::gethostbyaddr(), CDiagContext::GetHostLocation(), CSocketAPI::gethostname(), CDiagContext::GetHostRole(), CPSG_NamedAnnotInfo::GetId2AnnotInfo(), CSaveImagesSetupDlg::GetImageFormat(), CStringTypeStrings::GetInitializer(), CAnyContentTypeStrings::GetInitializer(), CBitStringTypeStrings::GetInitializer(), CNetBLASTLoadOptionPanel::GetInput(), CBamLoadOptionPanel::GetInput(), GetInteractionDataFromIbis(), NASNCacheFileName::GetIntermediateFilePrefix(), CEditingActionFeatAnticodon::GetIntervalString(), GetIntervalString(), CGuiObjectInfoSeq_align::GetLabel(), CDataLoader::GetLabel(), CBAMDataLoader_Impl::GetLabel(), CGBDataLoader_Native::GetLabel(), CScope_Impl::GetLabel(), CTaxonCache::GetLabel(), CVcfVariant::GetLabel(), CFeatGlyph::GetLabel(), CBioseq::GetLabel(), CPub::GetLabel(), CPerson_id::GetLabel(), MoleculeIdentifier::GetLabel(), CCSRADataLoader_Impl::GetLabelOnce(), NASNCacheFileName::GetLastUpdate(), CHelloCommand::GetLink(), CGuiObjectInfoSeq_align::GetLinks(), CGBDataLoader::GetLoaderNameFromArgs(), CAsnCache_DataLoader::GetLoaderNameFromArgs(), CSerialFacetImpl::GetLocation(), CMacroLocationConstraintPanel::GetLocationConstraint(), CMacroFeatsOnSeqPanel::GetLocationConstraint(), NASNCacheFileName::GetLockfilePrefix(), CDiagHandler::GetLogName(), CDB_Object::GetLogString(), CSourceFieldNamePanel::GetMacroFieldName(), CPubFieldType::GetMacroLabelForType(), CSearchFormBase::GetMainValue(), GetMapString(), CPhyloNodeData::GetMarkerColorsAsString(), CCmdLineBlastXML2ReportData::GetMatrixName(), CCmdLineBlastXMLReportData::GetMatrixName(), CFileCode::GetModuleNames(), CHelloBasicCommand::GetName(), CHelloReplyCommand::GetName(), GetNameCategory(), CFastaBioseqSource::GetNext(), CGffIdGenerator::GetNextGffExonId(), CSaveImagesSetupDlg::GetNumberingFormat(), CSaveImagesSetupDlg::GetOutputFormat(), impl::CDBConnParamsBase::GetParam(), GetParamValue(), SFileTrackAPI::GetPath(), CHttpRequest::GetPath(), CSocket::GetPeerAddress(), CCmdLineBlastXML2ReportData::GetPHIPattern(), CCmdLineBlastXMLReportData::GetPHIPattern(), CGridClient::GetProgressMessage(), NMItemData::GetPropertyFromInfo(), SRequestBuilder::SReader< CJson_ConstObject >::GetProtein(), SRequestBuilder::SReader< CArgs >::GetProtein(), CWGSSeqIterator::GetPublicComment(), CWGSProteinIterator::GetPublicComment(), GetReportFromMailReportTable(), CAlnMap::GetResidueIndexMap(), NMItemData::GetResolveFuncForApplyAuthors(), NMItemData::GetRNAFieldname(), CBiosampleFieldDiff::GetSampleVal(), CBamIndexingPanel::GetSamtoolsPath(), CBamHeader::GetSBamRecords(), SIssue::SBuilder::GetScope(), CNSClientsRegistry::GetScopes(), IQueryWidget::GetSearchHelpAddr(), CGridWidget::GetSearchHelpAddr(), CPhyloTreeWidget::GetSearchHelpAddr(), CPaintAlignment::GetSegments(), CAlnWriter::GetSegString(), NASNCacheFileName::GetSeqIdChunk(), NASNCacheFileName::GetSeqIdIndex(), CMatePairGlyph::GetSignature(), CDictionaryUtil::GetSoundex(), CReferenceDataType::GetSpecKeyword(), CUniSequenceDataType::GetSpecKeyword(), CBiosampleFieldDiff::GetSrcVal(), CVecscreen::GetStrengthString(), CBDB_FieldUChar::GetString(), CBDB_FieldChar::GetString(), getString(), CVariant::GetString(), CCommentItem::GetStringForRefSeqGenome(), CScanner::SLexem::GetStringRepr(), CDiagContext::GetStringUID(), TaxTreeData::GetTaxIDForSequence(), CTaxonCache::GetTaxname(), TaxClient::GetTaxNameForTaxID(), CAttribIntMenuItem::GetText(), CAttribFloatMenuItem::GetText(), CAttribStringsMenuItem::GetText(), AbstractToken::GetText(), CAttribMenuItem::GetTextDim(), CDiscrepancyObject::GetTextObjectDescription(), CAttribIntMenuItem::GetTextValue(), CAttribFloatMenuItem::GetTextValue(), CAttribStringsMenuItem::GetTextValue(), GetTitle(), Sequence::GetTitle(), CAlnMultiHeader::GetTooltip(), CAlignedFeatureGraph::GetTooltip(), CGuiObjectInfoSeq_align::GetToolTip(), CPhyloTreeLabel::GetToolTipForNode(), CWriteUtil::GetTrnaAntiCodon(), CArgAllow_Int8s::GetUsage(), CArgAllow_Integers::GetUsage(), CArgAllow_Doubles::GetUsage(), CSystemInfo::GetUserName(), CDataType::GetVar(), CVDBBlastUtil::GetVDBSeqIdFromOID(), CQueryNodeValue::GetVisibleValue(), CRemoteBlast::GetWarnings(), CSearchResults::GetWarningStrings(), CSeqUtils::GetXmlChildNodeValue(), IImageGrabber::GrabImages(), CAlignSorterByScore< T >::GroupIdxToName(), CScoreLookup::HelpText(), CSocketAPI::HostPortToString(), CConnTest::HttpOkay(), Indent(), CCalcTextPosOStream::Indent(), IndexABioseq(), CColorTableScoringPanel::Init(), InitConfig(), CAlnMixSequences::InitExtraRowsStartIts(), CPSG_MyNCBIFactory::InitGlobal(), CIdMapperConfig::Initialize(), CNCDistributionConf::InitMirrorConfig(), CNetScheduleServer::InitNodeID(), CAlnMixSequences::InitRowsStartIts(), xml::attributes::insert(), CGuiObjectInfoSeq_align::IsPolyA(), CNSClientsRegistry::IsRequestedAffinity(), CFieldHandler::IsValid(), CGBBlockField::IsValid(), CHttpCookie::IsValidValue(), CRowReaderStream_CharDelimited< NStr::fSplit_ByPattern, Arguments... >::join(), CAgpErrEx::LineDone(), CTraceDataProxy::LoadData(), CSGTraceGraphDS::LoadData(), LoadDataOnly(), CNSAffinityRegistry::LoadFromDump(), CNSGroupsRegistry::LoadFromDump(), CJob::LoadFromDump(), CCompressionDictionary::LoadFromStream(), LoadVectors(), jetbrains::teamcity::TeamcityBoostLogFormatter::log_exception(), main(), Make_GI_or_PDB_String_CN3D(), xml::ns::make_safe(), Make_SeqID_String(), CGnomonAnnotator_Base::MapOneModelToOrigContig(), CNSClientsRegistry::MarkAsAdmin(), ncbi::CNcbiToolkit_LogMessage::Message(), xml::error_message::message_type_str(), CNSClientsRegistry::MoveJobToBlacklist(), ncbi::psg::retrieval::BioseqInfoKey::mutable_accession(), ncbi::grpcapi::dbsnp::primary_track::SeqIdRequestStringAccverUnion::mutable_accver(), ncbi::psg::retrieval::BlobPropValue::mutable_div(), ncbi::psg::retrieval::BlobPropValue::mutable_id2_info(), ncbi::grpcapi::dbsnp::primary_track::PrimaryTrackReply::mutable_na_track_acc_with_filter(), ncbi::psg::retrieval::BioseqInfoValue::mutable_name(), ncbi::psg::retrieval::BioseqInfoValue_SecondaryId::mutable_sec_seq_id(), ncbi::grpcapi::dbsnp::primary_track::PrimaryTrackReply::mutable_tms_track_id(), ncbi::psg::retrieval::ReplyStatus::mutable_unknown_fields(), ncbi::psg::retrieval::BlobPropValue::mutable_unknown_fields(), ncbi::psg::retrieval::BlobPropKey::mutable_unknown_fields(), ncbi::psg::retrieval::BioseqInfoValue_SecondaryId::mutable_unknown_fields(), ncbi::psg::retrieval::BioseqInfoKey::mutable_unknown_fields(), ncbi::psg::retrieval::BlobPropReply::mutable_unknown_fields(), ncbi::psg::retrieval::BioseqInfoValue::mutable_unknown_fields(), ncbi::psg::retrieval::BioseqInfoReply::mutable_unknown_fields(), ncbi::psg::retrieval::BlobPropValue::mutable_username(), CCassConnection::NewTimeUUID(), Nlm_StrLower(), Nlm_StrUpper(), CDirEntry::NormalizePath(), CWGSDb_Impl::NormalizePathOrAccession(), NSTGetBackendConfiguration(), CSocketAPI::ntoa(), Offset(), CwxPhyloEditDlg::OnButton4Click(), CwxPhyloEditDlg::OnColourctrlColourPickerChanged(), CPubseqGatewayApp::OnConfig(), CSaveImagesSetupDlg::OnFileTextChange(), CPSGS_SNPProcessor::OnGotAnnotation(), CPSGS_CDDProcessor::OnGotBlobByBlobId(), CPSGS_CDDProcessor::OnGotBlobBySeqId(), CPSGS_CDDProcessor::OnGotBlobId(), CQueryParsePanel::OnIdle(), CSaveImagesSetupDlg::OnImageTypeChange(), CPhyloTreeWidget::OnInfoTip(), CSeqGraphicWidget::OnInfoTip(), CNetScheduleHandler::OnMessage(), CwxPhyloEditDlg::OnOkClick(), IServer_MessageHandler::OnRead(), CPSGS_WGSProcessor::OnResolvedSeqId(), StructureWindow::OnSave(), CMacroFlowEditor::OnSaveCopies(), CPhyloTreeWidget::OnSearchTip(), CSeqGraphicWidget::OnSearchTip(), CPubseqGatewayApp::OnShutdown(), CPhyloTreeWidget::OnTipActivated(), CPhyloTreeWidget::OnZoomTip(), CSeqGraphicWidget::OnZoomTip(), CPubseqGatewayCacheBlobProp::Open(), CBDB_Cache::Open(), CLZOCompressionFile::Open(), CPubseqGatewayApp::OpenCache(), CPubseqGatewayApp::OpenCass(), CSeqIdChunkFile::OpenForRead(), CChunkFile::OpenForRead(), CChunkFile::OpenForWrite(), CSeqIdChunkFile::OpenForWrite(), CBDB_Cache::OpenReadOnly(), CBamString::operator string(), CNcbiOstrstreamToString::operator string(), CTempString::operator string(), AsnMemoryWrite::operator string(), value_slice::CValueConvert< SSafeCP, CDB_Result >::operator string(), value_slice::CValueConvert< SSafeSqlCP, CDB_Result >::operator string(), value_slice::CValueConvert< SSafeCP, CDB_Object >::operator string(), value_slice::CValueConvert< SSafeSqlCP, CDB_Object >::operator string(), CSraStringValue::operator string(), CLightString::operator string(), CAlnSeqIdsExtract< TAlnSeqId, TIdConverter >::operator()(), CSeqIdBioseqHandleComp< TSeqIdPtr >::operator()(), CFlatFileSeqBlockIterator::operator*(), operator+(), CStreamLineReader::operator++(), operator+=(), operator<<(), SDiagMessage::operator=(), ncbi::grid::netcache::search::CBlobInfo::operator[](), parse_args(), xml::event_parser::parse_file(), CNetCacheKey::ParseBlobKey(), SDiagMessage::ParseMessage(), STrackSettings::ParseSettings(), CWGSResolver_Ids::ParseWGSAcc(), CWGSResolver_Ids::ParseWGSPrefix(), CAsyncDiagHandler::Post(), CConnTest::PostCheck(), COpentelemetryTracerSpan::PostEvent(), PrettyPrint(), CBiosampleFieldDiff::PrettyPrint(), CPluginValue::Print(), xml::error_messages::print(), PrintASNNewLine(), CHTML_table::PrintBegin(), CHttpRequest::PrintLogFields(), CCgiRequestProcessor::ProcessHelpRequest(), Prosite2Regex(), NSnpGui::PValueToString(), QSIndex(), CGlimmerReader::Read(), SNetStorageServerParameters::Read(), SJobDump::Read(), CdTreeStream::read(), SNetServerConnectionImpl::ReadCmdOutputLine(), CObjectIStreamXml::ReadName(), ReadTestData(), Threader::Realign(), RecursiveFatalSummary(), RecursiveSummary(), CNcbiApplogApp::Redirect(), xslt::stylesheet::register_extension_element(), xslt::stylesheet::register_extension_function(), CNSClientsRegistry::RegisterBlacklistedJob(), CNSClientsRegistry::RegisterJob(), remove_comments(), CAttribMenu::RemoveItem(), CAttribMenu::RemoveMenuR(), CRegEx::CRegXBackRef::Render(), CRegEx::CRegXAssert::Render(), CAsnElementPrimitive::RenderValue(), CTableImportDataSource::ReplaceSpaces(), xslt::extension_function::report_error(), CException::ReportThis(), CNcbiEnvironment::Reset(), CPSG_MyNCBIFactory::ResolveAccessPoint(), CNSAffinityRegistry::ResolveAffinity(), CNSAffinityRegistry::ResolveAffinityToken(), CPSGS_WGSProcessor::ResolveSeqId(), CSoMap::ResolveSoAlias(), CDbapiSimpleApp::RetrieveData(), python::RetrieveModuleFileName(), CAgpExportJob::Run(), CDemoContigAssemblyApp::Run(), CMkIndexApplication::Run(), CDocLoadingJob::Run(), CAgpValidateApplication::Run(), CWalkAsnCacheApplication::Run(), CMultipatternApp::Run(), CRunTestApplication::Run(), CSampleBasicApplication::Run(), CDbapiTestSpeedApp::RunSample(), s_AddStringCount(), s_ArgExptMsg(), s_BitmapFrom7x4(), s_CArgs_ReadFromFile(), s_CheckIdLookup(), s_ColorDifferentBases(), s_ComputeBtopAndIdentity(), CMacroFunction_FixFormat::s_ConvertAltitudeToMeters(), s_DumpHeader(), s_DumpSparseMap(), s_ErrnoToString(), s_ExtractLast(), s_FileContents2String(), s_FormatAA(), s_GetAccVer(), s_GetAssemblyInfo(), s_GetBioId(), s_GetContentLabel(), s_GetDbxrefFromProduct(), s_GetDescription(), s_GetDiskSpace_PANFS(), s_GetEffectiveChain_id(), CApplyPubTableTreeItemData::s_GetFunction(), s_GetGOText(), s_GetImpLabel(), s_GetInitialsFromForeName(), s_GetLinkCambiaPatentLens(), s_GetMacroScriptLocation(), s_GetRnaClass(), s_GetSequenceId(), s_GetTitle(), s_GetUsername(), s_GetUserObjectContent(), s_GetUserObjectType(), s_ImportDatabase(), s_IsGoodDescr(), s_ListChanges(), s_LOG_Handler(), s_MajorMinor(), s_MatchExcludeMask(), s_MockBlastSeqSrcNew(), s_ModeAsString(), s_OSReason(), s_PrintLocAsJavascriptArray(), CSplignApp::s_ReadBlastHit(), s_ReadDigit(), s_RemovePanfsBasePath(), s_ReplaceCtrlAsInTitle(), s_SeqAlignSetToXMLHits(), s_SerializeAndSplitBy(), s_SetQual(), s_ShortenIdLabel(), s_SizeOrMajorMinor(), s_TextListToString(), s_TextToString(), s_TimeDump(), s_TokenizeTRnaString(), s_TraceParams(), CGvfWriteRecord::s_UniqueId(), s_Validate(), s_VT_Descr(), xml::document::save_to_stream(), xml::document::save_to_string_canonical(), xml::impl::save_to_string_cb(), bm::SaveBlob(), CTaxon3::SendNameList(), SeqItem::SeqItem(), Sequence::Sequence(), CCompositionBasedStatsArgs::SetArgumentDescriptions(), CFormattingArgs::SetArgumentDescriptions(), CMapperFormattingArgs::SetArgumentDescriptions(), CSRASearchModeArgs::SetArgumentDescriptions(), CLocalBlast::SetBatchNumber(), CNSClientsRegistry::SetClientData(), pythonpp::bind::CString::SetInternal(), CNSClientsRegistry::SetNodeWaiting(), CNSClientsRegistry::SetPreferredAffinities(), CPssmInputTestData::SetupQueryAlignedWithInternalGaps(), sGetAccession(), sGetFeatMapKey(), sGetWarningMsg(), ShowHideDomain::ShowHideDomain(), CGlBitmapFont::SizeToString(), CBDB_Volumes::SortVolumes(), sParseGeneOntologyTerm(), SPatternUnit::SPatternUnit(), CTableImportDataSource::SplitColumn(), sPrintField(), sReportUnappliedStructuredComment(), CPendingOperation::Start(), CAlnMixSegment::StartItsConsistencyCheck(), CSchedulerEngine::StartJob(), Splines::string_to_splineType(), CSymResolver::StripDefine(), CAgpRow::SubstOldGap(), CNSClientsRegistry::SubtractBlacklistedJobs(), CDiscrepancyVisitorImpl< _Name >::Summarize(), syntax_check_output_text(), TestStrSparseVector(), CdTreeStream::toNestedString(), ToStdString(), CContElemConverter< TElem >::ToString(), DeBruijn::LargeInt< precision >::toString(), LargeInt< 1 >::toString(), CJson_ConstNode::ToString(), CSourceModParser::SMod::ToString(), CProjectSelectorPanel::TransferDataFromWindow(), CRowReaderStream_Excel_CSV::Translate(), CRowReaderStream_IANA_CSV::Translate(), TraverseAndRunTestCases(), IPhyloTreeRender::TTHH_GetTooltip(), CObjectIStreamAsn::UnexpectedMember(), CObjectIStreamJson::UnexpectedMember(), CObjectIStreamXml::UnexpectedMember(), UnicodeToUTF8(), ncbi::psg::retrieval::ReplyStatus::unknown_fields(), ncbi::psg::retrieval::BlobPropValue::unknown_fields(), ncbi::psg::retrieval::BlobPropKey::unknown_fields(), ncbi::psg::retrieval::BioseqInfoValue_SecondaryId::unknown_fields(), ncbi::psg::retrieval::BioseqInfoKey::unknown_fields(), ncbi::psg::retrieval::BlobPropReply::unknown_fields(), ncbi::psg::retrieval::BioseqInfoValue::unknown_fields(), ncbi::psg::retrieval::BioseqInfoReply::unknown_fields(), CNSClientsRegistry::UnregisterJob(), CDiscrepancyConf::UpdateList(), CNSClientsRegistry::UpdatePreferredAffinities(), UTF8ToAsciiString(), CDense_seg::Validate(), CVDBStringValue::Value(), CBDB_Cache::Verify(), CException::what(), whiteSpace2UnderScore(), SDiagMessage::Write(), CSeqMaskerOstat::WriteBinMetaData(), CWriteDB_PackedBuffer< BLOCK >::x_AddBlock(), CTablePrinter::x_AddCellValue(), CBioseq_Base_Info::x_AddExistingUserObjectTypes(), CTooltipFrame::x_AddLineToWidget(), CTableXformPanel::x_AddLocations(), CMakeBlastDBApp::x_AddSequenceData(), CDeflineGenerator::x_AdjustProteinTitleSuffix(), CDeflineGenerator::x_AdjustProteinTitleSuffixIdx(), CBLASTParams::x_ArgsToBlastOptions(), CTimeSpan::x_AsSmartString_Precision(), CTimeSpan::x_AsSmartString_Smart_Big(), CTimeSpan::x_AsSmartString_Smart_Small(), x_BlockTEA_Encode(), CTooltipFrame::x_BreakIntoLines(), CPubseqGatewayCacheBlobProp::x_CanOpenSatDatabase(), CPubseqGatewayApp::x_CheckAuthorization(), CQueueDataBase::x_ConfigureQueues(), CTableXformPanel::x_CreateFeatures(), CMSAToolJob::x_CreateProjectItems(), CDumpASNIndex::x_CreateRootDir(), CQueueDataBase::x_CreateSpaceReserveFile(), CSDB_Decryptor::x_Decrypt(), CDownloadJob::x_DownloadAndExtract(), CCdsGlyph::x_DrawProtSeqWithMapping(), CAppPackagesDlg::x_DumpPkgInfo(), CQueueDataBase::x_DumpQueueOrClass(), CQueryParsePanel::x_ExecuteQuery(), CSeqDBAliasNode::x_ExpandAliases(), CAlnMix::x_ExtendDSWithWidths(), CTar::x_ExtractEntry(), CTar::x_ExtractSparseFile(), CFast5colReader::x_FindAnnots(), CSeqDBImpl::x_FixString(), CEntrez2ClientApp::x_FormatReply(), CGenomeAnnotComment::x_GatherInfo(), CGuiObjectInfoSeq_feat::x_GetAccession(), CGuiObjectInfoSeq_align::x_GetAlignmentTooltip_Insert(), CDiagContext::x_GetDefaultHitID(), CScatterPlotGlyph::x_GetDescription(), CEntrez2ClientApp::x_GetDocsums(), CTranslationGlyph::x_GetFrameLabel(), CEutilsClient::x_GetHostName(), CPSG_Request_IpgResolve::x_GetId(), IImageGrabber::x_GetImageName(), CEntrez2ClientApp::x_GetLinkCounts(), CTableReaderMacro::x_GetMatchFieldConstraint(), CNSTServiceRegistry::x_GetMetadataServices(), CTableAnnotDataSource::x_GetMetaInfoTag(), SDiagMessage::x_GetModule(), CDiagContext::x_GetNextHitID(), CObjectListWidgetSel::x_GetObjectList(), CUsageReportJob::x_GetOS(), CSnpPtisClient_Impl::x_GetPrimarySnpTrack(), CAlnMultiRenderer::x_GetRowTooltip(), CBlastHitMatrixCGIApplication::x_GetSeqAnnot(), CAltValidator::x_GetTaxonSpecies(), CGuiObjectInfoSeq_align::x_GetTooltipSequence(), CGuiObjectInfoVariation::x_GetTooltipService(), CViewGraphic::x_GetViewSettingsFromParams(), CAlnMixSequences::x_IdentifyAlnMixSeq(), CDebugDumpFormatterText::x_IndentLine(), CFast5colReader::x_IndexFile(), NSnpBins::CGeneMap::x_Init(), CSeq_id::x_Init(), CSaveImagesSetupDlg::x_Init(), SDiagMessage::x_InitData(), x_json_value_init_string_no_copy(), CSeqUpdateWorker::x_LaunchSingleUpdateSequence(), CAppHitFilter::x_LoadConstraints(), CSeqDBIsam::x_LoadStringData(), CHTMLPage::x_LoadTemplateLib(), CODBC_Connection::x_MakeFreeTDSVersion(), CJobAdapter::x_OnJobNotification(), CQueueDataBase::x_Open(), CSeqDBVol::x_OpenAllColumns(), CGFFReader::x_ParseV2Attributes(), CTraversalPatternMatchCallback::x_PatternMatches(), CBDB_Cache::x_PidLock(), CRandomlyFailMockBlastSeqSrc::x_PopulateBLAST_SequenceBlk(), CSearch_func::x_PrecededByOkPrefix(), CAlnMultiCGIApplication::x_PreProcess(), CTablePrinter::x_PrintDashes(), CAgpValidateReader::x_PrintPatterns(), CBlastFormat::x_PrintTabularReport(), CPdfObject::x_PrintTo(), CAgpValidateReader::x_PrintTotals(), CNetScheduleHandler::x_ProcessGetConf(), CNetScheduleHandler::x_ProcessGetParam(), CNetScheduleHandler::x_ProcessMsgQueue(), CNetScheduleHandler::x_ProcessQueueInfo(), CNetStorageHandler::x_ProcessRead(), SPubseqGatewaySettings::x_ReadAdminSection(), CQueueDataBase::x_ReadDumpQueueDesrc(), CASN1InputSourceOMF::x_ReadOneSeq(), x_Reg(), CQueueDataBase::x_RemoveSpaceReserveFile(), CGlPreviewSetupWidget::x_Render(), CBlastHitMatrix::x_RenderImage(), CTreeGraphicsModel::x_RenderNodeLabelsPdf(), CFastaSeqBlockItem::x_RenderText(), CXmlValueItem::x_RenderXml(), CNetBlastSubmittingJob::x_Run(), CClustererApplication::x_RunBinary(), CClustererApplication::x_RunSparse(), CBlastKmer::x_SearchMultipleQueries(), CFeatureGenerator::SImplementation::x_SetComment(), CHitMatrixRenderer::x_SetGraphs(), CNamedPipe::x_SetName(), CSplign::x_SetPattern(), CAlnMultiWidget::x_SetScoringMethod(), CDeflineGenerator::x_SetTitleFromNR(), CDeflineGenerator::x_SetTitleFromProtein(), CDeflineGenerator::x_SetTitleFromProteinIdx(), CDeflineGenerator::x_SetTitleFromSegSeq(), CNCMessageHandler::x_StartCommand(), CSQLITE3_Statement::x_Throw(), x_trim(), CFeatureTableReader_Imp::x_TrnaToAaString(), CTableAnnotDataSource::x_UpdateMetaInfoTag(), CDumpASNIndex::x_WriteHeader(), CElementaryMatching::x_WriteIndexFile(), CXmlValueItem::x_WriteOctetString(), CXmlValueItem::x_WriteString(), CGff3Writer::xAssignAlignmentDensegTarget(), CGff3FlybaseWriter::xAssignAlignmentDensegTarget(), CFeatTableEdit::xFeatureAddProteinIdCds(), CFeatTableEdit::xFeatureAddProteinIdDefault(), CFeatTableEdit::xFeatureAddProteinIdMrna(), CFeatTableEdit::xFeatureAddTranscriptIdCds(), CFeatTableEdit::xFeatureAddTranscriptIdDefault(), CFeatTableEdit::xFeatureAddTranscriptIdMrna(), xgbparselex_ver(), CFeatTableEdit::xGenerateTranscriptOrProteinId(), CGffIdGenerator::xGetGenericId(), xGetNodeData(), seqsubmit_split::CSeqSubSplitter::xInitOutputStream(), CGff3Writer::xNextAlignId(), CFeatTableEdit::xNextFeatId(), CGff3Reader::xNextGenericId(), CFeatTableEdit::xNextLocusTag(), CGtfReader::xPostProcessAnnot(), CQualParser::xQualValAppendLine(), xslt_ext_element_cb(), xslt_ext_func_cb(), xTryProductRules(), xTryTextFile(), CWiggleWriter::xWriteSingleGraphFixedStep(), and NStr::xx_Join().
TrackingCookieDomain |
Definition at line 694 of file cgiapp.hpp.
TrackingCookieName |
Definition at line 690 of file cgiapp.hpp.
TrackingCookiePath |
Definition at line 696 of file cgiapp.hpp.
TrackingTagName |
Definition at line 692 of file cgiapp.hpp.
|
friend |
Definition at line 481 of file cgiapp.hpp.
|
friend |
Definition at line 583 of file cgiapp.hpp.
|
friend |
Definition at line 336 of file cgictx.hpp.
|
friend |
Definition at line 65 of file cgiapp.hpp.
Referenced by CCgiApplication::CreateRequestProcessor().
|
friend |
Definition at line 64 of file cgiapp.hpp.
Referenced by CCgiApplication::CreateStat().
|
friend |
Definition at line 482 of file cgiapp.hpp.
|
friend |
Definition at line 152 of file fcgiapp_mt.hpp.
|
friend |
Definition at line 125 of file fcgiapp_mt.hpp.
|
friend |
|
friend |
Definition at line 56 of file fcgiapp_mt.cpp.