NCBI C++ ToolKit
Classes | Typedefs | Enumerations | Enumerator | Functions | Variables | Friends
CGI Base Classes

@cgi_redirect.hpp Define class CCgiRedirectApplication used to redirect CGI requests. More...

+ Collaboration diagram for CGI Base Classes:

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, stringCCgiApplication::SAcceptEntry::TParams
 
typedef list< SAcceptEntryCCgiApplication::TAcceptEntries
 
typedef map< string, CDiagFactory * > CCgiApplication::TDiagFactoryMap
 
typedef AutoPtr< char, ArrayDeleter< char > > CCgiWatchFile::TBuf
 
typedef map< string, string, PNocaseCCgiStreamWrapper::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< CFastCgiThreadedRequestCFastCgiApplicationMT::TManager
 
typedef CCgiApplication CCgiRedirectApplication::CParent
 

Enumerations

enum  CCgiApplication::EEvent {
  CCgiApplication::eStartRequest , CCgiApplication::eSuccess , CCgiApplication::eError , CCgiApplication::eWaiting ,
  CCgiApplication::eException , CCgiApplication::eEndRequest , CCgiApplication::eExit , CCgiApplication::eExecutable ,
  CCgiApplication::eWatchFile , CCgiApplication::eExitOnFail , CCgiApplication::eExitRequest
}
 
enum  CCgiApplication::ELogOpt { CCgiApplication::eNoLog , CCgiApplication::eLog , CCgiApplication::eLogOnError }
 Analyze registry settings ([CGI] Log) and return current logging option. More...
 
enum  CCgiApplication::EVersionType { CCgiApplication::eVersion_Short , CCgiApplication::eVersion_Full }
 
enum  CCgiApplication::EAdminCommand { CCgiApplication::eAdmin_Health , CCgiApplication::eAdmin_HealthDeep , CCgiApplication::eAdmin_Unknown }
 Admin commands passed through ncbi_admin_cmd argument. More...
 
enum  CCgiApplication::ERestartReason { CCgiApplication::eSR_None = 0 , CCgiApplication::eSR_Executable = 111 , CCgiApplication::eSR_WatchFile = 112 }
 
enum  CCgiStreamWrapper::EStreamMode { CCgiStreamWrapper::eNormal , CCgiStreamWrapper::eBlockWrites , CCgiStreamWrapper::eChunkedWrites }
 
enum  CCgiContext::ESelfUrlPort { CCgiContext::eSelfUrlPort_Use , CCgiContext::eSelfUrlPort_Strip , CCgiContext::eSelfUrlPort_Default }
 Whether to use the port number when composing the CGI's own URL. More...
 
enum  CCgiContext::EStreamStatus { CCgiContext::fInputReady = 0x1 , CCgiContext::fOutputReady = 0x2 }
 
enum  CCgiContext::ESecureMode { CCgiContext::eSecure_NotSet , CCgiContext::eSecure_Off , CCgiContext::eSecure_On }
 

Functions

 CCgiApplication::CCgiApplication (const SBuildInfo &build_info=NCBI_SBUILDINFO_DEFAULT())
 
 CCgiApplication::~CCgiApplication (void)
 
static CCgiApplicationCCgiApplication::Instance (void)
 Singleton. More...
 
const CCgiContextCCgiApplication::GetContext (void) const
 Get current server context. Throw exception if the context is not set. More...
 
CCgiContextCCgiApplication::GetContext (void)
 Get current server context. Throw exception if the context is not set. More...
 
const CNcbiResourceCCgiApplication::GetResource (void) const
 Get server 'resource'. Throw exception if the resource is not set. More...
 
CNcbiResourceCCgiApplication::GetResource (void)
 Get server 'resource'. Throw exception if the resource is not set. More...
 
unsigned int CCgiApplication::GetFCgiIteration (void) const
 Get the # of currently processed HTTP request. More...
 
virtual bool CCgiApplication::IsFastCGI (void) const
 Return TRUE if it is running as a "fast" CGI. More...
 
virtual void CCgiApplication::Init (void)
 This method is called on the CGI application initialization – before starting to process a HTTP request or even receiving one. More...
 
virtual void CCgiApplication::Exit (void)
 This method is called on the CGI application exit. More...
 
virtual int CCgiApplication::Run (void)
 Do not override this method yourself! – it includes all the CGI specific machinery. More...
 
virtual int CCgiApplication::ProcessRequest (CCgiContext &context)=0
 This is the method you should override. More...
 
virtual CNcbiResourceCCgiApplication::LoadResource (void)
 
virtual CCgiServerContextCCgiApplication::LoadServerContext (CCgiContext &context)
 
void CCgiApplication::SetRequestFlags (int flags)
 Set cgi parsing flag. More...
 
virtual void CCgiApplication::SetupArgDescriptions (CArgDescriptions *arg_desc)
 Setup the command line argument descriptions. More...
 
virtual const CArgsCCgiApplication::GetArgs (void) const
 Get parsed command line arguments extended with CGI parameters. More...
 
virtual ICgiSessionStorageCCgiApplication::GetSessionStorage (CCgiSessionParameters &params) const
 Get instance of CGI session storage interface. More...
 
virtual bool CCgiApplication::ValidateSynchronizationToken (void)
 Validate synchronization token (cross-site request forgery prevention). More...
 
virtual EPreparseArgs CCgiApplication::PreparseArgs (int argc, const char *const *argv)
 Check the command line arguments before parsing them. More...
 
void CCgiApplication::SetRequestId (const string &rid, bool is_done)
 
virtual int CCgiApplication::OnException (std::exception &e, CNcbiOstream &os)
 This method is called if an exception is thrown during the processing of HTTP request. More...
 
virtual void CCgiApplication::OnEvent (EEvent event, int status)
 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. More...
 
virtual void CCgiApplication::FASTCGI_ScheduleExit (void)
 Schedule Fast-CGI loop to end as soon as possible, after safely finishing the currently processed request, if any. More...
 
virtual CCgiContextCCgiApplication::CreateContext (CNcbiArguments *args=0, CNcbiEnvironment *env=0, CNcbiIstream *inp=0, CNcbiOstream *out=0, int ifd=-1, int ofd=-1)
 Factory method for the Context object construction. More...
 
virtual CCgiContextCCgiApplication::CreateContextWithFlags (CNcbiArguments *args, CNcbiEnvironment *env, CNcbiIstream *inp, CNcbiOstream *out, int ifd, int ofd, int flags)
 The same as CreateContext(), but allows for a custom set of flags to be specified in the CCgiRequest constructor. More...
 
CCgiContextCCgiApplication::CreateContextWithFlags_Default (CCgiRequestProcessor &processor, CNcbiArguments *args, CNcbiEnvironment *env, CNcbiIstream *inp, CNcbiOstream *out, int ifd, int ofd, int flags)
 Default implementation of CreateContextWithFlags. More...
 
void CCgiApplication::RegisterDiagFactory (const string &key, CDiagFactory *fact)
 
CDiagFactoryCCgiApplication::FindDiagFactory (const string &key)
 
virtual void CCgiApplication::ConfigureDiagnostics (CCgiContext &context)
 
virtual void CCgiApplication::ConfigureDiagDestination (CCgiContext &context)
 
virtual void CCgiApplication::ConfigureDiagThreshold (CCgiContext &context)
 
virtual void CCgiApplication::ConfigureDiagFormat (CCgiContext &context)
 
ELogOpt CCgiApplication::GetLogOpt (void) const
 
virtual CCgiStatisticsCCgiApplication::CreateStat ()
 Class factory for statistics class. More...
 
void CCgiApplication::SetCafService (CCookieAffinity *caf)
 Attach cookie affinity service interface. More...
 
void CCgiApplication::VerifyCgiContext (CCgiContext &context)
 Check CGI context for possible problems, throw exception with HTTP status set if something is wrong. More...
 
virtual string CCgiApplication::GetDefaultLogPath (void) const
 Get default path for the log files. More...
 
virtual void CCgiApplication::AppStart (void)
 Prepare properties and print the application start message. More...
 
virtual void CCgiApplication::AppStop (int exit_code)
 Prepare properties for application stop message. More...
 
void CCgiApplication::SetHTTPStatus (unsigned int status, const string &reason=kEmptyStr)
 Set HTTP status code in the current request context and in the current CHttpResponse if one exists. More...
 
virtual void CCgiApplication::ProcessHelpRequest (const string &format)
 Process help request: set content type, print usage informations etc. More...
 
virtual void CCgiApplication::ProcessVersionRequest (EVersionType ver_type)
 Process version request: set content type, print version informations etc. More...
 
virtual bool CCgiApplication::ProcessAdminRequest (EAdminCommand cmd)
 Process admin command passed through ncbi_admin_cmd argument. More...
 
 CCgiApplication::SAcceptEntry::SAcceptEntry (void)
 
bool CCgiApplication::SAcceptEntry::operator< (const SAcceptEntry &entry) const
 
void CCgiApplication::ParseAcceptHeader (TAcceptEntries &entries) const
 Parse "Accept:" header, put entries to the list, more specific first. More...
 
virtual CCgiRequestProcessorCCgiApplication::CreateRequestProcessor (void)
 Create request processor to process the request. More...
 
void CCgiApplication::ProcessHttpReferer (void)
 Set CONN_HTTP_REFERER, print self-URL and referer to log. More...
 
void CCgiApplication::LogRequest (void) const
 
void CCgiApplication::LogRequest (const CCgiContext &ctx) const
 Write the required values to log (user-agent, self-url, referer etc.) More...
 
virtual bool CCgiApplication::x_RunFastCGI (int *result, unsigned int def_iter=10)
 
string CCgiApplication::GetFastCGIStandaloneServer (void) const
 
bool CCgiApplication::GetFastCGIStatLog (void) const
 
unsigned int CCgiApplication::GetFastCGIIterations (unsigned int def_iter) const
 
bool CCgiApplication::GetFastCGIComplete_Request_On_Sigterm (void) const
 
CCgiWatchFileCCgiApplication::CreateFastCGIWatchFile (void) const
 
unsigned int CCgiApplication::GetFastCGIWatchFileTimeout (bool have_watcher) const
 
int CCgiApplication::GetFastCGIWatchFileRestartDelay (void) const
 
bool CCgiApplication::GetFastCGIChannelErrors (void) const
 
bool CCgiApplication::GetFastCGIHonorExitRequest (void) const
 
bool CCgiApplication::GetFastCGIDebug (void) const
 
bool CCgiApplication::GetFastCGIStopIfFailed (void) const
 
unsigned int CCgiApplication::GetFastCGIMTMaxThreads (void) const
 
static CTime CCgiApplication::GetFileModificationTime (const string &filename)
 
bool CCgiApplication::CheckMemoryLimit (void)
 
void CCgiApplication::InitArgs (CArgs &args, CCgiContext &context) const
 
void CCgiApplication::AddLBCookie (CCgiCookies &cookies)
 
virtual ICacheCCgiApplication::GetCacheStorage (void) const
 
virtual bool CCgiApplication::IsCachingNeeded (const CCgiRequest &request) const
 
bool CCgiApplication::GetResultFromCache (const CCgiRequest &request, CNcbiOstream &os, ICache &cache)
 
void CCgiApplication::SaveResultToCache (const CCgiRequest &request, CNcbiIstream &is, ICache &cache)
 
void CCgiApplication::SaveRequest (const string &rid, const CCgiRequest &request, ICache &cache)
 
CCgiRequestCCgiApplication::GetSavedRequest (const string &rid, ICache &cache)
 
bool CCgiApplication::x_ProcessHelpRequest (CCgiRequestProcessor &processor)
 
bool CCgiApplication::x_ProcessVersionRequest (CCgiRequestProcessor &processor)
 
bool CCgiApplication::x_ProcessAdminRequest (CCgiRequestProcessor &processor)
 
static ERestartReason CCgiApplication::ShouldRestart (CTime &mtime, CCgiWatchFile *watcher, int delay)
 
void CCgiApplication::x_OnEvent (CCgiRequestProcessor *pprocessor, EEvent event, int status)
 
void CCgiApplication::x_OnEvent (EEvent event, int status)
 
CCgiRequestProcessorCCgiApplication::x_CreateProcessor (void)
 
void CCgiApplication::x_AddLBCookie ()
 
CCgiContextCCgiApplication::x_GetContext (void) const
 
CNcbiResourceCCgiApplication::x_GetResource (void) const
 
bool CCgiApplication::x_IsSetProcessor (void) const
 
CCgiRequestProcessorCCgiApplication::x_GetProcessor (void) const
 
CCgiRequestProcessorCCgiApplication::x_GetProcessorOrNull (void) const
 
bool CCgiApplication::x_DoneHeadRequest (CCgiContext &context) const
 
 CCgiApplication::CCgiApplication (const CCgiApplication &)
 
CCgiApplicationCCgiApplication::operator= (const CCgiApplication &)
 
virtual CCgiStatistics::~CCgiStatistics ()
 
 CCgiStatistics::CCgiStatistics (CCgiApplication &cgi_app)
 
virtual void CCgiStatistics::Reset (const CTime &start_time, int result, const std::exception *ex=0)
 
virtual string CCgiStatistics::Compose (void)
 
virtual void CCgiStatistics::Submit (const string &message)
 
virtual string CCgiStatistics::Compose_ProgramName (void)
 
virtual string CCgiStatistics::Compose_Timing (const CTime &end_time)
 
virtual string CCgiStatistics::Compose_Entries (void)
 
virtual string CCgiStatistics::Compose_Result (void)
 
virtual string CCgiStatistics::Compose_ErrMessage (void)
 
 CCgiWatchFile::CCgiWatchFile (const string &filename, int limit=1024)
 
bool CCgiWatchFile::HasChanged (void)
 
int CCgiWatchFile::x_Read (char *buf)
 
 CCgiStreamWrapper::CCgiStreamWrapper (CNcbiOstream &out)
 
EStreamMode CCgiStreamWrapper::GetWriterMode (void)
 
void CCgiStreamWrapper::SetWriterMode (EStreamMode mode)
 
void CCgiStreamWrapper::SetCacheStream (CNcbiOstream &stream)
 
void CCgiStreamWrapper::FinishChunkedTransfer (const TTrailer *trailer)
 
void CCgiStreamWrapper::AbortChunkedTransfer (void)
 
 CCgiRequestProcessor::CCgiRequestProcessor (CCgiApplication &app)
 
virtual CCgiRequestProcessor::~CCgiRequestProcessor (void)
 
virtual int CCgiRequestProcessor::ProcessRequest (CCgiContext &context)
 Process request provided by the context. By default calls application's ProcessRequest. More...
 
const CNcbiResourceCCgiRequestProcessor::GetResource (void) const
 
CNcbiResourceCCgiRequestProcessor::GetResource (void)
 
virtual bool CCgiRequestProcessor::ValidateSynchronizationToken (void)
 
string CCgiRequestProcessor::GetSelfReferer (void) const
 Get self-URL to be used as referer. More...
 
virtual void CCgiRequestProcessor::ProcessHelpRequest (const string &format)
 
virtual void CCgiRequestProcessor::ProcessVersionRequest (CCgiApplication::EVersionType ver_type)
 
virtual bool CCgiRequestProcessor::ProcessAdminRequest (CCgiApplication::EAdminCommand cmd)
 
virtual int CCgiRequestProcessor::OnException (std::exception &e, CNcbiOstream &os)
 
virtual void CCgiRequestProcessor::OnEvent (CCgiApplication::EEvent event, int status)
 
void CCgiRequestProcessor::SetHTTPStatus (unsigned int status, const string &reason=kEmptyStr)
 
void CCgiRequestProcessor::SetRequestId (const string &rid, bool is_done)
 
void CCgiRequestProcessor::ParseAcceptHeader (TAcceptEntries &entries) const
 
void CCgiRequestProcessor::x_InitArgs (void) const
 
bool CCgiRequestProcessor::ProcessAdminRequest_Base (CCgiApplication::EAdminCommand cmd)
 
CCgiApplicationCCgiRequestProcessor::GetApp (void)
 
const CCgiApplicationCCgiRequestProcessor::GetApp (void) const
 
CCgiContextCCgiRequestProcessor::GetContext (void)
 
const CCgiContextCCgiRequestProcessor::GetContext (void) const
 
void CCgiRequestProcessor::SetContext (shared_ptr< CCgiContext > context)
 
bool CCgiRequestProcessor::IsSetContext (void) const
 
CArgsCCgiRequestProcessor::GetArgs (void)
 
const CArgsCCgiRequestProcessor::GetArgs (void) const
 
bool CCgiRequestProcessor::IsSetArgs (void) const
 
CNcbiIstreamCCgiRequestProcessor::GetInputStream (void)
 
const CNcbiIstreamCCgiRequestProcessor::GetInputStream (void) const
 
void CCgiRequestProcessor::SetInputStream (CNcbiIstream *in)
 
bool CCgiRequestProcessor::IsSetInputStream (void) const
 
CNcbiOstreamCCgiRequestProcessor::GetOutputStream (void)
 
const CNcbiOstreamCCgiRequestProcessor::GetOutputStream (void) const
 
void CCgiRequestProcessor::SetOutputStream (CNcbiOstream *out)
 
bool CCgiRequestProcessor::IsSetOutputStream (void) const
 
bool CCgiRequestProcessor::GetOutputBroken (void) const
 
void CCgiRequestProcessor::SetOutputBroken (bool val)
 
bool CCgiRequestProcessor::GetRequestStartPrinted (void) const
 
void CCgiRequestProcessor::SetRequestStartPrinted (bool val)
 
bool CCgiRequestProcessor::GetErrorStatus (void) const
 
void CCgiRequestProcessor::SetErrorStatus (bool val)
 
string CCgiRequestProcessor::GetRID (void) const
 
void CCgiRequestProcessor::SetRID (const string &val)
 
bool CCgiRequestProcessor::GetResultReady (void) const
 
void CCgiRequestProcessor::SetResultReady (bool val)
 
 CCgiProcessorGuard::CCgiProcessorGuard (CTls< CCgiRequestProcessor > &proc)
 
 CCgiProcessorGuard::~CCgiProcessorGuard (void)
 
typedef NCBI_PARAM_TYPE (CGI, DisableTrackingCookie) TCGI_DisableTrackingCookie
 
typedef NCBI_PARAM_TYPE (CGI, TrackingCookieName) TCGI_TrackingCookieName
 
typedef NCBI_PARAM_TYPE (CGI, TrackingTagName) TCGI_TrackingTagName
 
typedef NCBI_PARAM_TYPE (CGI, TrackingCookieDomain) TCGI_TrackingCookieDomain
 
typedef NCBI_PARAM_TYPE (CGI, TrackingCookiePath) TCGI_TrackingCookiePath
 
typedef NCBI_PARAM_TYPE (CGI, Client_Connection_Interruption_Okay) TClientConnIntOk
 
typedef NCBI_PARAM_TYPE (CGI, Client_Connection_Interruption_Severity) TClientConnIntSeverity
 
 CCgiApplicationCached::CCgiApplicationCached (void)
 
 CCgiApplicationCached::~CCgiApplicationCached (void)
 
void CCgiApplicationCached::Init (void) override
 This method is called on the CGI application initialization – before starting to process a HTTP request or even receiving one. More...
 
ICacheCCgiApplicationCached::GetCacheStorage () const override
 
 CCgiApplicationCached::CCgiApplicationCached (const CCgiApplicationCached &)
 
CCgiApplicationCachedCCgiApplicationCached::operator= (const CCgiApplicationCached &)
 
 NCBI_PARAM_DECL (string, CGI, ResultCacheSectionName)
 
typedef NCBI_PARAM_TYPE (CGI, ResultCacheSectionName) TCGI_ResultCacheSectionName
 
virtual CCgiServerContext::~CCgiServerContext (void)
 
virtual CCtxMsg::~CCtxMsg (void)
 
virtual CNcbiOstreamCCtxMsg::Write (CNcbiOstream &os) const =0
 
CNcbiOstreamoperator<< (CNcbiOstream &os, const CCtxMsg &ctx_msg)
 
 CCtxMsgString::CCtxMsgString (const string &msg)
 
virtual CCtxMsgString::~CCtxMsgString (void)
 
virtual CNcbiOstreamCCtxMsgString::Write (CNcbiOstream &os) const
 
 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)
 
 CCgiContext::CCgiContext (CCgiApplication &app, CNcbiIstream *inp, CNcbiOstream *out, CCgiRequest::TFlags flags=0)
 
 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)
 
virtual CCgiContext::~CCgiContext (void)
 
const CCgiApplicationCCgiContext::GetApp (void) const
 
const CNcbiRegistryCCgiContext::GetConfig (void) const
 
CNcbiRegistryCCgiContext::GetConfig (void)
 
const CNcbiResourceCCgiContext::GetResource (void) const
 
CNcbiResourceCCgiContext::GetResource (void)
 
const CCgiRequestCCgiContext::GetRequest (void) const
 
CCgiRequestCCgiContext::GetRequest (void)
 
const CCgiResponseCCgiContext::GetResponse (void) const
 
CCgiResponseCCgiContext::GetResponse (void)
 
const CCgiServerContextCCgiContext::GetServCtx (void) const
 
CCgiServerContextCCgiContext::GetServCtx (void)
 
CNcbiOstreamCCgiContext::PrintMsg (CNcbiOstream &os)
 
void CCgiContext::PutMsg (const string &msg)
 
void CCgiContext::PutMsg (CCtxMsg *msg)
 
bool CCgiContext::EmptyMsg (void)
 
void CCgiContext::ClearMsg (void)
 
const CCgiEntryCCgiContext::GetRequestValue (const string &name, bool *is_found=0) const
 
void CCgiContext::AddRequestValue (const string &name, const CCgiEntry &value)
 
void CCgiContext::RemoveRequestValues (const string &name)
 
void CCgiContext::ReplaceRequestValue (const string &name, const CCgiEntry &value)
 
const stringCCgiContext::GetSelfURL (ESelfUrlPort) const
 Using HTTP environment variables, compose the CGI's own URL as: SCHEME://SERVER_NAME[:SERVER_PORT]/SCRIPT_NAME. More...
 
const stringCCgiContext::GetSelfURL (void) const
 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. More...
 
bool CCgiContext::IsSecure (void) const
 Check if the current scheme is secure (https) or not (http). More...
 
TStreamStatus CCgiContext::GetStreamStatus (const CTimeout &timeout) const
 
TStreamStatus CCgiContext::GetStreamStatus (void) const
 
string CCgiContext::RetrieveTrackingId () const
 
void CCgiContext::CheckStatus (void) const
 Check if the context has any pending errors, perform any required actions (e.g. More...
 
static bool CCgiContext::ProcessCORSRequest (const CCgiRequest &request, CCgiResponse &response)
 Process cross-origin resource sharing (CORS) request. More...
 
CCgiApplicationCCgiContext::x_GetApp (void) const
 
CCgiServerContextCCgiContext::x_GetServerContext (void) const
 
void CCgiContext::x_InitSession (CCgiRequest::TFlags flags, ICgiSessionStorage *session_storage=nullptr)
 
void CCgiContext::x_SetStatus (CCgiException::EStatusCode code, const string &msg) const
 
ESecureMode CCgiContext::x_IsSecure (void) const
 
 CCgiContext::CCgiContext (const CCgiContext &)
 
CCgiContextCCgiContext::operator= (const CCgiContext &)
 
void CCgiSessionParameters::SetImplOwnership (EOwnership owner)
 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. More...
 
void CCgiSessionParameters::DisableCookie ()
 Do not use a cookie to transfer session id between requests By default cookie is enabled. More...
 
void CCgiSessionParameters::SetSessionIdName (const string &name)
 Set name of the cookie with session id. More...
 
void CCgiSessionParameters::SetSessionCookieDomain (const string &domain)
 Set session cookie's domain Default: .ncbi.nlm.nih.gov. More...
 
void CCgiSessionParameters::SetSessionCookiePath (const string &path)
 Set session cookie's path Default: /. More...
 
void CCgiSessionParameters::SetSessionCookieExpTime (const CTime &exp_time)
 Set session cookie's expiration time Default: none. More...
 
 CCgiSessionParameters::CCgiSessionParameters ()
 
 CFastCgiThreadedRequest::CFastCgiThreadedRequest (void)
 
 CFastCgiThreadedRequest::~CFastCgiThreadedRequest (void)
 
bool CFastCgiThreadedRequest::response (void) override
 
void CFastCgiThreadedRequest::errorHandler (void) override
 
bool CFastCgiThreadedRequest::inProcessor (void) override
 
TInputCFastCgiThreadedRequest::in (void)
 
TOutputCFastCgiThreadedRequest::out (void)
 
TOutputCFastCgiThreadedRequest::err (void)
 
const char *constCFastCgiThreadedRequest::env (void) const
 
void CFastCgiThreadedRequest::x_ParseEnv (void) const
 
 CFastCgiThreadedRequest::CEnv::CEnv (void)
 
 CFastCgiThreadedRequest::CEnv::~CEnv (void)
 
void CFastCgiThreadedRequest::CEnv::Set (const string &name, const string &value)
 
 CFastCgiApplicationMT::CFastCgiApplicationMT (const SBuildInfo &build_info=NCBI_SBUILDINFO_DEFAULT())
 
 CFastCgiApplicationMT::~CFastCgiApplicationMT (void)
 
static CFastCgiApplicationMTCFastCgiApplicationMT::Instance (void)
 Singleton. More...
 
int CFastCgiApplicationMT::ProcessRequest (CCgiContext &context) override
 This method is not used by multithreaded FastCGI and should never be called. More...
 
bool CFastCgiApplicationMT::IsFastCGI (void) const override
 Return TRUE if it is running as a "fast" CGI. More...
 
bool CFastCgiApplicationMT::x_RunFastCGI (int *result, unsigned int def_iter=10) override
 
void CFastCgiApplicationMT::FASTCGI_ScheduleExit (void) override
 Schedule Fast-CGI loop to end as soon as possible, after safely finishing the currently processed request, if any. More...
 
void CFastCgiApplicationMT::x_ProcessThreadedRequest (CFastCgiThreadedRequest &req)
 
 CCgiRequestProcessorMT::CCgiRequestProcessorMT (CFastCgiApplicationMT &app)
 
virtual CCgiRequestProcessorMT::~CCgiRequestProcessorMT (void)
 
virtual void CCgiRedirectApplication::Init (void)
 This method is called on the CGI application initialization – before starting to process a HTTP request or even receiving one. More...
 
virtual int CCgiRedirectApplication::ProcessRequest (CCgiContext &ctx)
 This is the method you should override. More...
 
virtual TCgiEntriesCCgiRedirectApplication::RemapEntries (CCgiContext &ctx, TCgiEntries &new_entries)
 Remap CGI entries for the redirection. More...
 
const CHTMLPageCCgiRedirectApplication::GetPage (void) const
 
CHTMLPageCCgiRedirectApplication::GetPage (void)
 

Variables

string CCgiApplication::SAcceptEntry::m_Type
 
string CCgiApplication::SAcceptEntry::m_Subtype
 
float CCgiApplication::SAcceptEntry::m_Quality
 Quality factor or "1" if not set (or not numeric). More...
 
string CCgiApplication::SAcceptEntry::m_MediaRangeParams
 Media range parameters. More...
 
TParams CCgiApplication::SAcceptEntry::m_AcceptParams
 Accept parameters. More...
 
int CCgiApplication::m_RequestFlags
 Bit flags for CCgiRequest. More...
 
bool CCgiApplication::m_CaughtSigterm
 
CRef< CTls< CCgiRequestProcessor > > CCgiApplication::m_Processor
 
CAtomicCounter CCgiApplication::m_Iteration
 
unique_ptr< CNcbiResourceCCgiApplication::m_Resource
 
TDiagFactoryMap CCgiApplication::m_DiagFactories
 
unique_ptr< CCookieAffinityCCgiApplication::m_Caf
 
char * CCgiApplication::m_HostIP
 
string CCgiApplication::m_DiagPrefixEnv
 
bool CCgiApplication::m_ShouldExit = false
 
CCgiApplicationCCgiStatistics::m_CgiApp
 
string CCgiStatistics::m_LogDelim
 
CTime CCgiStatistics::m_StartTime
 
int CCgiStatistics::m_Result
 
string CCgiStatistics::m_ErrMsg
 
string CCgiWatchFile::m_Filename
 
int CCgiWatchFile::m_Limit
 
int CCgiWatchFile::m_Count
 
TBuf CCgiWatchFile::m_Buf
 
CCgiStreamWrapperWriterCCgiStreamWrapper::m_Writer
 
CCgiApplicationCCgiRequestProcessor::m_App
 
shared_ptr< CCgiContextCCgiRequestProcessor::m_Context
 
unique_ptr< CArgsCCgiRequestProcessor::m_CgiArgs
 
unique_ptr< CNcbiIstreamCCgiRequestProcessor::m_InputStream
 
unique_ptr< CNcbiOstreamCCgiRequestProcessor::m_OutputStream
 
bool CCgiRequestProcessor::m_OutputBroken = false
 
bool CCgiRequestProcessor::m_RequestStartPrinted = false
 
bool CCgiRequestProcessor::m_ErrorStatus = false
 
string CCgiRequestProcessor::m_RID
 
bool CCgiRequestProcessor::m_IsResultReady = true
 
CTls< CCgiRequestProcessor > * CCgiProcessorGuard::m_Proc
 
 NCBI_XCGI_EXPORT
 
 bool
 
 CGI
 
 DisableTrackingCookie
 
 string
 
 TrackingCookieName
 
 TrackingTagName
 
 TrackingCookieDomain
 
 TrackingCookiePath
 
 Client_Connection_Interruption_Okay
 
 EDiagSev
 
 Client_Connection_Interruption_Severity
 
const TPluginManagerParamTreeCCgiApplicationCached::m_CacheTreeParams
 
string CCgiApplicationCached::m_CacheDriverName
 
static const char * CCtxMsgString::sm_nl = "\n"
 
string CCtxMsgString::m_Message
 
CCgiApplicationCCgiContext::m_App
 
unique_ptr< CCgiRequestCCgiContext::m_Request
 
CCgiResponse CCgiContext::m_Response
 
unique_ptr< CCgiSessionCCgiContext::m_Session
 
TMessages CCgiContext::m_Messages
 
unique_ptr< CCgiServerContextCCgiContext::m_ServerContext
 
string CCgiContext::m_SelfURL
 
bool CCgiContext::m_IsSecure
 
CCgiException::EStatusCode CCgiContext::m_StatusCode
 
string CCgiContext::m_StatusMessage
 
EOwnership CCgiSessionParameters::m_ImplOwner
 
bool CCgiSessionParameters::m_CookieEnabled
 
string CCgiSessionParameters::m_SessionIdName
 
string CCgiSessionParameters::m_SessionCookieDomain
 
string CCgiSessionParameters::m_SessionCookiePath
 
CTime CCgiSessionParameters::m_SessionCookieExpTime
 
vector< char * > CFastCgiThreadedRequest::CEnv::data
 
shared_ptr< istream > CFastCgiThreadedRequest::m_InputStream
 
CEnv CFastCgiThreadedRequest::m_Env
 
unique_ptr< TManagerCFastCgiApplicationMT::m_Manager
 
CAtomicCounter CFastCgiApplicationMT::m_ErrorCounter
 
bool CFastCgiApplicationMT::m_IsStatLog
 
unique_ptr< CCgiStatisticsCFastCgiApplicationMT::m_Stat
 
unsigned int CFastCgiApplicationMT::m_MaxIterations
 
unique_ptr< CCgiWatchFileCFastCgiApplicationMT::m_Watcher
 
unsigned int CFastCgiApplicationMT::m_WatchTimeout
 
int CFastCgiApplicationMT::m_RestartDelay
 
bool CFastCgiApplicationMT::m_StopIfFailed
 
CTime CFastCgiApplicationMT::m_ModTime
 
bool CFastCgiApplicationMT::m_ManagerStopped
 
unique_ptr< CNcbiResourceCCgiRequestProcessorMT::m_Resource
 
CHTMLPage CCgiRedirectApplication::m_Page
 HTML page used to send back the redirect information. More...
 

Friends

class CCgiApplication::CCgiStatistics
 
class CCgiApplication::CCgiRequestProcessor
 
class CCgiStatistics::CCgiApplication
 
class CCgiStatistics::CFastCgiApplicationMT
 
class CCgiRequestProcessor::CCgiApplication
 
class CCgiSessionParameters::CCgiContext
 
class CFastCgiApplicationMT::CFastCgiThreadedRequest
 
class CCgiRequestProcessorMT::CFastCgiApplicationMT
 
void CCgiApplication::s_ScheduleFastCGIExit (void)
 
void CFastCgiApplicationMT::s_ScheduleFastCGIMTExit (void)
 

Detailed Description

@cgi_redirect.hpp Define class CCgiRedirectApplication used to redirect CGI requests.

Typedef Documentation

◆ CParent [1/2]

Definition at line 69 of file cgiapp.hpp.

◆ CParent [2/2]

Definition at line 85 of file redirect.hpp.

◆ TAcceptEntries [1/2]

Definition at line 354 of file cgiapp.hpp.

◆ TAcceptEntries [2/2]

Definition at line 607 of file cgiapp.hpp.

◆ TAcceptEntry

Definition at line 608 of file cgiapp.hpp.

◆ TBuf

typedef AutoPtr<char, ArrayDeleter<char> > CCgiWatchFile::TBuf
private

Definition at line 531 of file cgiapp.hpp.

◆ TDiagFactoryMap

Definition at line 452 of file cgiapp.hpp.

◆ TInput

Definition at line 60 of file fcgiapp_mt.hpp.

◆ TManager

typedef Fastcgipp::Manager<CFastCgiThreadedRequest> CFastCgiApplicationMT::TManager
private

Definition at line 130 of file fcgiapp_mt.hpp.

◆ TMessages

typedef list< AutoPtr<CCtxMsg> > CCgiContext::TMessages
private

Definition at line 274 of file cgictx.hpp.

◆ TOutput

Definition at line 59 of file fcgiapp_mt.hpp.

◆ TParams

Definition at line 343 of file cgiapp.hpp.

◆ TParent

typedef Fastcgipp::Request<char> CFastCgiThreadedRequest::TParent

Definition at line 58 of file fcgiapp_mt.hpp.

◆ TStreamStatus

Definition at line 234 of file cgictx.hpp.

◆ TTrailer

Definition at line 562 of file cgiapp.hpp.

Enumeration Type Documentation

◆ EAdminCommand

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_Unknown 

Unrecognized command.

Overriden ProcessAdminRequest() can use GetEntry() to fetch command name if necessary.

Definition at line 327 of file cgiapp.hpp.

◆ EEvent

enum CCgiApplication::EEvent
protected
See also
OnEvent, ProcessRequest
Enumerator
eStartRequest 
eSuccess 

The HTTP request was processed, with zero exit code.

eError 

The HTTP request was processed, non-zero exit code.

eWaiting 

Periodic awakening while waiting for the next request.

eException 

An exception occured during the request processing.

eEndRequest 

HTTP request processed, all results sent to client.

eExit 

No more iterations, exiting (called the very last)

eExecutable 

FCGI forced to exit as its modif. time has changed.

eWatchFile 

FCGI forced to exit as its "watch file" has changed.

eExitOnFail 

[FastCGI].StopIfFailed set, and the iteration failed

eExitRequest 

FCGI forced to exit by client's 'exitfastcgi' request.

Definition at line 188 of file cgiapp.hpp.

◆ ELogOpt

enum CCgiApplication::ELogOpt
protected

Analyze registry settings ([CGI] Log) and return current logging option.

Enumerator
eNoLog 
eLog 
eLogOnError 

Definition at line 256 of file cgiapp.hpp.

◆ ERestartReason

Enumerator
eSR_None 
eSR_Executable 
eSR_WatchFile 

Definition at line 413 of file cgiapp.hpp.

◆ ESecureMode

Enumerator
eSecure_NotSet 
eSecure_Off 
eSecure_On 

Definition at line 261 of file cgictx.hpp.

◆ ESelfUrlPort

Whether to use the port number when composing the CGI's own URL.

See also
GetSelfURL()
Deprecated:
The flag is ignored, use GetSelfURL(void).
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.

◆ EStreamMode

Enumerator
eNormal 
eBlockWrites 
eChunkedWrites 

Definition at line 554 of file cgiapp.hpp.

◆ EStreamStatus

Enumerator
fInputReady 
fOutputReady 

Definition at line 230 of file cgictx.hpp.

◆ EVersionType

Enumerator
eVersion_Short 
eVersion_Full 

Definition at line 309 of file cgiapp.hpp.

Function Documentation

◆ AbortChunkedTransfer()

void CCgiStreamWrapper::AbortChunkedTransfer ( void  )

◆ AddLBCookie()

void CCgiApplication::AddLBCookie ( CCgiCookies cookies)
protected

◆ AddRequestValue()

void CCgiContext::AddRequestValue ( const string name,
const CCgiEntry value 
)

◆ AppStart()

void CCgiApplication::AppStart ( void  )
protectedvirtual

Prepare properties and print the application start message.

Reimplemented from CNcbiApplicationAPI.

Definition at line 1574 of file cgiapp.cpp.

References GetDiagContext(), CDiagContext::IsSetOldPostFormat(), kEmptyStr, and CDiagContext::PrintStart().

◆ AppStop()

void CCgiApplication::AppStop ( int  exit_code)
protectedvirtual

Prepare properties for application stop message.

Reimplemented from CNcbiApplicationAPI.

Definition at line 1583 of file cgiapp.cpp.

References GetDiagContext(), and CDiagContext::SetExitCode().

◆ CCgiApplication() [1/2]

CCgiApplication::CCgiApplication ( const CCgiApplication )
private

◆ CCgiApplication() [2/2]

CCgiApplication::CCgiApplication ( const SBuildInfo build_info = NCBI_SBUILDINFO_DEFAULT())

◆ CCgiApplicationCached() [1/2]

CCgiApplicationCached::CCgiApplicationCached ( const CCgiApplicationCached )
private

◆ CCgiApplicationCached() [2/2]

CCgiApplicationCached::CCgiApplicationCached ( void  )

Definition at line 42 of file cgiapp_cached.cpp.

◆ CCgiContext() [1/4]

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() [2/4]

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 
)

◆ CCgiContext() [3/4]

CCgiContext::CCgiContext ( const CCgiContext )
private

◆ CCgiContext() [4/4]

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 
)

◆ CCgiProcessorGuard()

CCgiProcessorGuard::CCgiProcessorGuard ( CTls< CCgiRequestProcessor > &  proc)
inline

Definition at line 675 of file cgiapp.hpp.

◆ CCgiRequestProcessor()

CCgiRequestProcessor::CCgiRequestProcessor ( CCgiApplication app)

Definition at line 2252 of file cgiapp.cpp.

◆ CCgiRequestProcessorMT()

CCgiRequestProcessorMT::CCgiRequestProcessorMT ( CFastCgiApplicationMT app)

◆ CCgiSessionParameters()

CCgiSessionParameters::CCgiSessionParameters ( )
inlineprivate

Definition at line 337 of file cgictx.hpp.

◆ CCgiStatistics()

CCgiStatistics::CCgiStatistics ( CCgiApplication cgi_app)
protected

Definition at line 2048 of file cgiapp.cpp.

◆ CCgiStreamWrapper()

CCgiStreamWrapper::CCgiStreamWrapper ( CNcbiOstream out)

Definition at line 414 of file cgiapp.cpp.

◆ CCgiWatchFile()

CCgiWatchFile::CCgiWatchFile ( const string filename,
int  limit = 1024 
)

◆ CCtxMsgString()

CCtxMsgString::CCtxMsgString ( const string msg)
inline

Definition at line 102 of file cgictx.hpp.

◆ CEnv()

CFastCgiThreadedRequest::CEnv::CEnv ( void  )
inline

Definition at line 82 of file fcgiapp_mt.hpp.

◆ CFastCgiApplicationMT()

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::CFastCgiThreadedRequest ( void  )

Definition at line 445 of file fcgiapp_mt.cpp.

◆ CheckMemoryLimit()

bool CCgiApplication::CheckMemoryLimit ( void  )
protected

◆ CheckStatus()

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.

◆ ClearMsg()

void CCgiContext::ClearMsg ( void  )
inline

Definition at line 447 of file cgictx.hpp.

References CCgiContext::m_Messages.

◆ Compose()

string CCgiStatistics::Compose ( void  )
protectedvirtual

◆ Compose_Entries()

string CCgiStatistics::Compose_Entries ( void  )
protectedvirtual

◆ Compose_ErrMessage()

string CCgiStatistics::Compose_ErrMessage ( void  )
protectedvirtual

Definition at line 2203 of file cgiapp.cpp.

References CCgiStatistics::m_ErrMsg.

Referenced by CCgiStatistics::Compose().

◆ Compose_ProgramName()

string CCgiStatistics::Compose_ProgramName ( void  )
protectedvirtual

◆ Compose_Result()

string CCgiStatistics::Compose_Result ( void  )
protectedvirtual

Definition at line 2197 of file cgiapp.cpp.

References NStr::IntToString(), and CCgiStatistics::m_Result.

Referenced by CCgiStatistics::Compose().

◆ Compose_Timing()

string CCgiStatistics::Compose_Timing ( const CTime end_time)
protectedvirtual

◆ ConfigureDiagDestination()

void CCgiApplication::ConfigureDiagDestination ( CCgiContext context)
protectedvirtual

◆ ConfigureDiagFormat()

void CCgiApplication::ConfigureDiagFormat ( CCgiContext context)
protectedvirtual

◆ ConfigureDiagnostics()

void CCgiApplication::ConfigureDiagnostics ( CCgiContext context)
protectedvirtual

◆ ConfigureDiagThreshold()

void CCgiApplication::ConfigureDiagThreshold ( CCgiContext context)
protectedvirtual

◆ CreateContext()

CCgiContext * CCgiApplication::CreateContext ( CNcbiArguments args = 0,
CNcbiEnvironment env = 0,
CNcbiIstream inp = 0,
CNcbiOstream out = 0,
int  ifd = -1,
int  ofd = -1 
)
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().

◆ CreateContextWithFlags()

CCgiContext * CCgiApplication::CreateContextWithFlags ( CNcbiArguments args,
CNcbiEnvironment env,
CNcbiIstream inp,
CNcbiOstream out,
int  ifd,
int  ofd,
int  flags 
)
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().

◆ CreateContextWithFlags_Default()

CCgiContext * CCgiApplication::CreateContextWithFlags_Default ( CCgiRequestProcessor processor,
CNcbiArguments args,
CNcbiEnvironment env,
CNcbiIstream inp,
CNcbiOstream out,
int  ifd,
int  ofd,
int  flags 
)
protected

◆ CreateFastCGIWatchFile()

CCgiWatchFile * CCgiApplication::CreateFastCGIWatchFile ( void  ) const
protected

◆ CreateRequestProcessor()

CCgiRequestProcessor * CCgiApplication::CreateRequestProcessor ( void  )
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.

See also
CCgiRequestProcessor

Reimplemented in CFastCgiMTSampleApplication.

Definition at line 981 of file cgiapp.cpp.

References CCgiApplication::CCgiRequestProcessor.

Referenced by CCgiApplication::x_CreateProcessor().

◆ CreateStat()

CCgiStatistics * CCgiApplication::CreateStat ( )
protectedvirtual

Class factory for statistics class.

Definition at line 1362 of file cgiapp.cpp.

References CCgiApplication::CCgiStatistics.

Referenced by CCgiApplication::Run(), and CFastCgiApplicationMT::x_RunFastCGI().

◆ DisableCookie()

void CCgiSessionParameters::DisableCookie ( )
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.

◆ EmptyMsg()

bool CCgiContext::EmptyMsg ( void  )
inline

Definition at line 440 of file cgictx.hpp.

References CCgiContext::m_Messages.

◆ env()

const char* const* CFastCgiThreadedRequest::env ( void  ) const
inline

◆ err()

TOutput& CFastCgiThreadedRequest::err ( void  )
inline

Definition at line 71 of file fcgiapp_mt.hpp.

◆ errorHandler()

void CFastCgiThreadedRequest::errorHandler ( void  )
override

Definition at line 464 of file fcgiapp_mt.cpp.

References ERR_POST_X.

◆ Exit()

void CCgiApplication::Exit ( void  )
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().

◆ FASTCGI_ScheduleExit() [1/2]

virtual void CCgiApplication::FASTCGI_ScheduleExit ( void  )
inlineprotectedvirtual

Schedule Fast-CGI loop to end as soon as possible, after safely finishing the currently processed request, if any.

Note
Calling it from inside OnEvent(eWaiting) will end the Fast-CGI loop immediately.
It is a no-op for the regular CGI.

Reimplemented in CFastCgiApplicationMT.

Definition at line 225 of file cgiapp.hpp.

References CCgiApplication::m_ShouldExit.

◆ FASTCGI_ScheduleExit() [2/2]

void CFastCgiApplicationMT::FASTCGI_ScheduleExit ( void  )
overrideprotectedvirtual

Schedule Fast-CGI loop to end as soon as possible, after safely finishing the currently processed request, if any.

Note
Calling it from inside OnEvent(eWaiting) will end the Fast-CGI loop immediately.
It is a no-op for the regular CGI.

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().

◆ FindDiagFactory()

CDiagFactory * CCgiApplication::FindDiagFactory ( const string key)
protected

◆ FinishChunkedTransfer()

void CCgiStreamWrapper::FinishChunkedTransfer ( const TTrailer trailer)

◆ GetApp() [1/3]

CCgiApplication& CCgiRequestProcessor::GetApp ( void  )
inline

◆ GetApp() [2/3]

const CCgiApplication& CCgiRequestProcessor::GetApp ( void  ) const
inline

Definition at line 633 of file cgiapp.hpp.

References CCgiRequestProcessor::m_App.

◆ GetApp() [3/3]

const CCgiApplication & CCgiContext::GetApp ( void  ) const
inline

Definition at line 367 of file cgictx.hpp.

References CCgiContext::x_GetApp().

◆ GetArgs() [1/3]

CArgs& CCgiRequestProcessor::GetArgs ( void  )
inline

◆ GetArgs() [2/3]

const CArgs & CCgiApplication::GetArgs ( void  ) const
virtual

Get parsed command line arguments extended with CGI parameters.

Returns
The CArgs object containing parsed cmd.-line arguments and 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().

◆ GetArgs() [3/3]

const CArgs& CCgiRequestProcessor::GetArgs ( void  ) const
inline

◆ GetCacheStorage() [1/2]

ICache * CCgiApplicationCached::GetCacheStorage ( void  ) const
overrideprotectedvirtual

◆ GetCacheStorage() [2/2]

ICache * CCgiApplication::GetCacheStorage ( void  ) const
protectedvirtual

Reimplemented in CCgiApplicationCached.

Definition at line 1381 of file cgiapp.cpp.

References NULL.

Referenced by CCgiApplication::Run(), and CFastCgiApplicationMT::x_ProcessThreadedRequest().

◆ GetConfig() [1/2]

CNcbiRegistry & CCgiContext::GetConfig ( void  )

Definition at line 255 of file cgictx.cpp.

References CNcbiApplicationAPI::GetConfig(), and CCgiContext::x_GetApp().

◆ GetConfig() [2/2]

const CNcbiRegistry & CCgiContext::GetConfig ( void  ) const

Definition at line 249 of file cgictx.cpp.

References CNcbiApplicationAPI::GetConfig(), and CCgiContext::x_GetApp().

◆ GetContext() [1/4]

CCgiContext& CCgiApplication::GetContext ( void  )
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().

◆ GetContext() [2/4]

CCgiContext& CCgiRequestProcessor::GetContext ( void  )
inline

◆ GetContext() [3/4]

const CCgiContext& CCgiApplication::GetContext ( void  ) const
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().

◆ GetContext() [4/4]

const CCgiContext& CCgiRequestProcessor::GetContext ( void  ) const
inline

Definition at line 636 of file cgiapp.hpp.

References CCgiRequestProcessor::m_Context.

◆ GetDefaultLogPath()

string CCgiApplication::GetDefaultLogPath ( void  ) const
protectedvirtual

◆ GetErrorStatus()

bool CCgiRequestProcessor::GetErrorStatus ( void  ) const
inline

Definition at line 660 of file cgiapp.hpp.

References CCgiRequestProcessor::m_ErrorStatus.

Referenced by CCgiApplication::x_OnEvent().

◆ GetFastCGIChannelErrors()

bool CCgiApplication::GetFastCGIChannelErrors ( void  ) const
protected

◆ GetFastCGIComplete_Request_On_Sigterm()

bool CCgiApplication::GetFastCGIComplete_Request_On_Sigterm ( void  ) const
protected

◆ GetFastCGIDebug()

bool CCgiApplication::GetFastCGIDebug ( void  ) const
protected

◆ GetFastCGIHonorExitRequest()

bool CCgiApplication::GetFastCGIHonorExitRequest ( void  ) const
protected

◆ GetFastCGIIterations()

unsigned int CCgiApplication::GetFastCGIIterations ( unsigned int  def_iter) const
protected

◆ GetFastCGIMTMaxThreads()

unsigned int CCgiApplication::GetFastCGIMTMaxThreads ( void  ) const
protected

◆ GetFastCGIStandaloneServer()

string CCgiApplication::GetFastCGIStandaloneServer ( void  ) const
protected

Definition at line 1829 of file cgiapp.cpp.

References IRegistry::Get(), and CNcbiApplicationAPI::GetConfig().

Referenced by CFastCgiApplicationMT::x_RunFastCGI().

◆ GetFastCGIStatLog()

bool CCgiApplication::GetFastCGIStatLog ( void  ) const
protected

◆ GetFastCGIStopIfFailed()

bool CCgiApplication::GetFastCGIStopIfFailed ( void  ) const
protected

◆ GetFastCGIWatchFileRestartDelay()

int CCgiApplication::GetFastCGIWatchFileRestartDelay ( void  ) const
protected

◆ GetFastCGIWatchFileTimeout()

unsigned int CCgiApplication::GetFastCGIWatchFileTimeout ( bool  have_watcher) const
protected

◆ GetFCgiIteration()

unsigned int CCgiApplication::GetFCgiIteration ( void  ) const
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.

◆ GetFileModificationTime()

CTime CCgiApplication::GetFileModificationTime ( const string filename)
staticprotected

Definition at line 1959 of file cgiapp.cpp.

References NCBI_THROW.

Referenced by CCgiApplication::ShouldRestart(), and CFastCgiApplicationMT::x_RunFastCGI().

◆ GetInputStream() [1/2]

CNcbiIstream& CCgiRequestProcessor::GetInputStream ( void  )
inline

◆ GetInputStream() [2/2]

const CNcbiIstream& CCgiRequestProcessor::GetInputStream ( void  ) const
inline

Definition at line 645 of file cgiapp.hpp.

References CCgiRequestProcessor::m_InputStream.

◆ GetLogOpt()

CCgiApplication::ELogOpt CCgiApplication::GetLogOpt ( void  ) const
protected

◆ GetOutputBroken()

bool CCgiRequestProcessor::GetOutputBroken ( void  ) const
inline

◆ GetOutputStream() [1/2]

CNcbiOstream& CCgiRequestProcessor::GetOutputStream ( void  )
inline

◆ GetOutputStream() [2/2]

const CNcbiOstream& CCgiRequestProcessor::GetOutputStream ( void  ) const
inline

Definition at line 650 of file cgiapp.hpp.

References CCgiRequestProcessor::m_OutputStream.

◆ GetPage() [1/2]

CHTMLPage& CCgiRedirectApplication::GetPage ( void  )
protected

◆ GetPage() [2/2]

const CHTMLPage& CCgiRedirectApplication::GetPage ( void  ) const
protected

◆ GetRequest() [1/2]

CCgiRequest & CCgiContext::GetRequest ( void  )
inline

Definition at line 381 of file cgictx.hpp.

References CCgiContext::m_Request.

◆ GetRequest() [2/2]

const CCgiRequest & CCgiContext::GetRequest ( void  ) const
inline

◆ GetRequestStartPrinted()

bool CCgiRequestProcessor::GetRequestStartPrinted ( void  ) const
inline

Definition at line 657 of file cgiapp.hpp.

References CCgiRequestProcessor::m_RequestStartPrinted.

Referenced by CCgiApplication::x_OnEvent().

◆ GetRequestValue()

const CCgiEntry & CCgiContext::GetRequestValue ( const string name,
bool is_found = 0 
) const

◆ GetResource() [1/6]

CNcbiResource& CCgiApplication::GetResource ( void  )
inline

Get server 'resource'. Throw exception if the resource is not set.

Definition at line 85 of file cgiapp.hpp.

References CCgiApplication::x_GetResource().

◆ GetResource() [2/6]

CNcbiResource& CCgiRequestProcessor::GetResource ( void  )
inline

Definition at line 590 of file cgiapp.hpp.

References CCgiApplication::GetResource(), and CCgiRequestProcessor::m_App.

◆ GetResource() [3/6]

CNcbiResource & CCgiContext::GetResource ( void  )

Definition at line 267 of file cgictx.cpp.

References CCgiApplication::GetResource(), and CCgiContext::x_GetApp().

◆ GetResource() [4/6]

const CNcbiResource& CCgiApplication::GetResource ( void  ) const
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().

◆ GetResource() [5/6]

const CNcbiResource& CCgiRequestProcessor::GetResource ( void  ) const
inline

Definition at line 589 of file cgiapp.hpp.

References CCgiApplication::GetResource(), and CCgiRequestProcessor::m_App.

◆ GetResource() [6/6]

const CNcbiResource & CCgiContext::GetResource ( void  ) const

Definition at line 261 of file cgictx.cpp.

References CCgiApplication::GetResource(), and CCgiContext::x_GetApp().

◆ GetResponse() [1/2]

CCgiResponse & CCgiContext::GetResponse ( void  )
inline

Definition at line 395 of file cgictx.hpp.

References CCgiContext::m_Response.

◆ GetResponse() [2/2]

const CCgiResponse & CCgiContext::GetResponse ( void  ) const
inline

◆ GetResultFromCache()

bool CCgiApplication::GetResultFromCache ( const CCgiRequest request,
CNcbiOstream os,
ICache cache 
)
protected

◆ GetResultReady()

bool CCgiRequestProcessor::GetResultReady ( void  ) const
inline

◆ GetRID()

string CCgiRequestProcessor::GetRID ( void  ) const
inline

◆ GetSavedRequest()

CCgiRequest * CCgiApplication::GetSavedRequest ( const string rid,
ICache cache 
)
protected

◆ GetSelfReferer()

string CCgiRequestProcessor::GetSelfReferer ( void  ) const

Get self-URL to be used as referer.

Definition at line 2465 of file cgiapp.cpp.

References eCgi_QueryString, and CCgiRequestProcessor::m_Context.

Referenced by CCgiApplication::ProcessHttpReferer(), and CFastCgiApplicationMT::x_ProcessThreadedRequest().

◆ GetSelfURL() [1/2]

const string& CCgiContext::GetSelfURL ( ESelfUrlPort  ) const
inline

Using HTTP environment variables, compose the CGI's own URL as: SCHEME://SERVER_NAME[:SERVER_PORT]/SCRIPT_NAME.

Deprecated:
The flag is ignored, use GetSelfURL(void).

Definition at line 217 of file cgictx.hpp.

References CCgiContext::GetSelfURL().

Referenced by CGridCgiContext::GetSelfURL().

◆ GetSelfURL() [2/2]

const string & CCgiContext::GetSelfURL ( void  ) const

◆ GetServCtx() [1/2]

CCgiServerContext & CCgiContext::GetServCtx ( void  )
inline

Definition at line 409 of file cgictx.hpp.

References CCgiContext::x_GetServerContext().

◆ GetServCtx() [2/2]

const CCgiServerContext & CCgiContext::GetServCtx ( void  ) const
inline

Definition at line 402 of file cgictx.hpp.

References CCgiContext::x_GetServerContext().

◆ GetSessionStorage()

ICgiSessionStorage * CCgiApplication::GetSessionStorage ( CCgiSessionParameters params) const
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.

Parameters
paramsOptional parameters

Reimplemented in CCgiSessionSampleApplication.

Definition at line 1369 of file cgiapp.cpp.

Referenced by CCgiContext::x_InitSession().

◆ GetStreamStatus() [1/2]

CCgiContext::TStreamStatus CCgiContext::GetStreamStatus ( const CTimeout timeout) const

◆ GetStreamStatus() [2/2]

CCgiContext::TStreamStatus CCgiContext::GetStreamStatus ( void  ) const
inline

Definition at line 454 of file cgictx.hpp.

◆ GetWriterMode()

CCgiStreamWrapper::EStreamMode CCgiStreamWrapper::GetWriterMode ( void  )

◆ HasChanged()

bool CCgiWatchFile::HasChanged ( void  )

◆ in()

TInput& CFastCgiThreadedRequest::in ( void  )
inline

◆ Init() [1/3]

void CCgiApplication::Init ( void  )
virtual

◆ Init() [2/3]

void CCgiRedirectApplication::Init ( void  )
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().

◆ Init() [3/3]

void CCgiApplicationCached::Init ( void  )
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().

◆ InitArgs()

void CCgiApplication::InitArgs ( CArgs args,
CCgiContext context 
) const
protected

◆ inProcessor()

bool CFastCgiThreadedRequest::inProcessor ( void  )
override

Definition at line 471 of file fcgiapp_mt.cpp.

References buf, and CFastCgiThreadedRequest::m_InputStream.

◆ Instance() [1/2]

CCgiApplication * CCgiApplication::Instance ( void  )
static

◆ Instance() [2/2]

CFastCgiApplicationMT * CFastCgiApplicationMT::Instance ( void  )
static

Singleton.

Definition at line 88 of file fcgiapp_mt.cpp.

References CCgiApplication::Instance().

Referenced by CFastCgiThreadedRequest::response(), and s_ScheduleFastCGIMTExit().

◆ IsCachingNeeded()

bool CCgiApplication::IsCachingNeeded ( const CCgiRequest request) const
protectedvirtual

Reimplemented in CGridCgiApplication.

Definition at line 1375 of file cgiapp.cpp.

Referenced by CCgiApplication::Run(), and CFastCgiApplicationMT::x_ProcessThreadedRequest().

◆ IsFastCGI() [1/2]

bool CCgiApplication::IsFastCGI ( void  ) const
virtual

Return TRUE if it is running as a "fast" CGI.

Reimplemented in CFastCgiApplicationMT.

Definition at line 39 of file cgi_run.cpp.

◆ IsFastCGI() [2/2]

bool CFastCgiApplicationMT::IsFastCGI ( void  ) const
inlineoverridevirtual

Return TRUE if it is running as a "fast" CGI.

Reimplemented from CCgiApplication.

Definition at line 118 of file fcgiapp_mt.hpp.

◆ IsSecure()

bool CCgiContext::IsSecure ( void  ) const
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().

◆ IsSetArgs()

bool CCgiRequestProcessor::IsSetArgs ( void  ) const
inline

Definition at line 642 of file cgiapp.hpp.

References bool, and CCgiRequestProcessor::m_CgiArgs.

◆ IsSetContext()

bool CCgiRequestProcessor::IsSetContext ( void  ) const
inline

◆ IsSetInputStream()

bool CCgiRequestProcessor::IsSetInputStream ( void  ) const
inline

◆ IsSetOutputStream()

bool CCgiRequestProcessor::IsSetOutputStream ( void  ) const
inline

◆ LoadResource()

CNcbiResource * CCgiApplication::LoadResource ( void  )
virtual

Reimplemented in CHelloApp.

Definition at line 887 of file cgiapp.cpp.

Referenced by CCgiApplication::Init().

◆ LoadServerContext()

CCgiServerContext * CCgiApplication::LoadServerContext ( CCgiContext context)
virtual

Definition at line 893 of file cgiapp.cpp.

Referenced by CCgiContext::x_GetServerContext().

◆ LogRequest() [1/2]

void CCgiApplication::LogRequest ( const CCgiContext ctx) const
protected

◆ LogRequest() [2/2]

void CCgiApplication::LogRequest ( void  ) const
protected
Deprecated:
Use LogRequest(const CCgiContext&) instead.

Definition at line 715 of file cgiapp.cpp.

References CCgiApplication::GetContext().

Referenced by CCgiApplication::Run(), and CFastCgiApplicationMT::x_ProcessThreadedRequest().

◆ NCBI_PARAM_DECL()

NCBI_PARAM_DECL ( string  ,
CGI  ,
ResultCacheSectionName   
)

◆ NCBI_PARAM_TYPE() [1/8]

typedef NCBI_PARAM_TYPE ( CGI  ,
Client_Connection_Interruption_Okay   
)

◆ NCBI_PARAM_TYPE() [2/8]

typedef NCBI_PARAM_TYPE ( CGI  ,
Client_Connection_Interruption_Severity   
)

◆ NCBI_PARAM_TYPE() [3/8]

typedef NCBI_PARAM_TYPE ( CGI  ,
DisableTrackingCookie   
)

◆ NCBI_PARAM_TYPE() [4/8]

typedef NCBI_PARAM_TYPE ( CGI  ,
ResultCacheSectionName   
)

◆ NCBI_PARAM_TYPE() [5/8]

typedef NCBI_PARAM_TYPE ( CGI  ,
TrackingCookieDomain   
)

◆ NCBI_PARAM_TYPE() [6/8]

typedef NCBI_PARAM_TYPE ( CGI  ,
TrackingCookieName   
)

◆ NCBI_PARAM_TYPE() [7/8]

typedef NCBI_PARAM_TYPE ( CGI  ,
TrackingCookiePath   
)

◆ NCBI_PARAM_TYPE() [8/8]

typedef NCBI_PARAM_TYPE ( CGI  ,
TrackingTagName   
)

◆ OnEvent() [1/2]

void CCgiRequestProcessor::OnEvent ( CCgiApplication::EEvent  event,
int  status 
)
protectedvirtual

Definition at line 2559 of file cgiapp.cpp.

Referenced by CCgiApplication::OnEvent().

◆ OnEvent() [2/2]

void CCgiApplication::OnEvent ( EEvent  event,
int  status 
)
protectedvirtual

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.

Parameters
eventCGI framework event
status
  • eSuccess, eError: the value returned by ProcessRequest()
  • eException: the value returned by OnException()
  • eExit: exit code of the CGI application
  • others: non-zero, and different for any one status

Definition at line 1202 of file cgiapp.cpp.

References CCgiRequestProcessor::OnEvent(), CCgiApplication::x_GetProcessor(), and CCgiApplication::x_IsSetProcessor().

Referenced by CRemoteCgiApp::RunJob(), and CCgiApplication::x_OnEvent().

◆ OnException() [1/2]

int CCgiApplication::OnException ( std::exception &  e,
CNcbiOstream os 
)
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.

Parameters
eThe exception thrown
osOutput stream to the client.
Returns
Value to use as the CGI's (or FCGI iteration's) exit code
See also
OnEvent

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().

◆ OnException() [2/2]

int CCgiRequestProcessor::OnException ( std::exception &  e,
CNcbiOstream os 
)
protectedvirtual

◆ operator<()

bool CCgiApplication::SAcceptEntry::operator< ( const SAcceptEntry entry) const
inline

◆ operator<<()

CNcbiOstream& operator<< ( CNcbiOstream os,
const CCtxMsg ctx_msg 
)
inline

Definition at line 82 of file cgictx.hpp.

References CCtxMsg::Write().

◆ operator=() [1/3]

CCgiApplication& CCgiApplication::operator= ( const CCgiApplication )
private

◆ operator=() [2/3]

CCgiApplicationCached& CCgiApplicationCached::operator= ( const CCgiApplicationCached )
private

◆ operator=() [3/3]

CCgiContext& CCgiContext::operator= ( const CCgiContext )
private

◆ out()

TOutput& CFastCgiThreadedRequest::out ( void  )
inline

Definition at line 70 of file fcgiapp_mt.hpp.

References out().

Referenced by CFastCgiApplicationMT::x_ProcessThreadedRequest().

◆ ParseAcceptHeader() [1/2]

void CCgiApplication::ParseAcceptHeader ( TAcceptEntries entries) const
protected

Parse "Accept:" header, put entries to the list, more specific first.

Definition at line 1683 of file cgiapp.cpp.

References entries, CCgiRequestProcessor::ParseAcceptHeader(), and CCgiApplication::x_GetProcessor().

◆ ParseAcceptHeader() [2/2]

void CCgiRequestProcessor::ParseAcceptHeader ( TAcceptEntries entries) const
protected

◆ PreparseArgs()

CCgiApplication::EPreparseArgs CCgiApplication::PreparseArgs ( int  argc,
const char *const argv 
)
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 1388 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().

◆ PrintMsg()

CNcbiOstream & CCgiContext::PrintMsg ( CNcbiOstream os)
inline

Definition at line 416 of file cgictx.hpp.

References ITERATE, and CCgiContext::m_Messages.

◆ ProcessAdminRequest() [1/2]

bool CCgiRequestProcessor::ProcessAdminRequest ( CCgiApplication::EAdminCommand  cmd)
protectedvirtual

◆ ProcessAdminRequest() [2/2]

bool CCgiApplication::ProcessAdminRequest ( EAdminCommand  cmd)
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 1810 of file cgiapp.cpp.

References cmd, CCgiRequestProcessor::ProcessAdminRequest(), and CCgiApplication::x_GetProcessor().

◆ ProcessAdminRequest_Base()

bool CCgiRequestProcessor::ProcessAdminRequest_Base ( CCgiApplication::EAdminCommand  cmd)
private

◆ ProcessCORSRequest()

bool CCgiContext::ProcessCORSRequest ( const CCgiRequest request,
CCgiResponse response 
)
static

◆ ProcessHelpRequest() [1/2]

void CCgiApplication::ProcessHelpRequest ( const string format)
protectedvirtual

Process help request: set content type, print usage informations etc.

For automatic handling of help request all of the following conditions must be met:

  • CGI_ENABLE_HELP_REQUEST=t must be set in the environment or EnableHelpRequest=t in [CGI] section of the INI file.
  • REQUEST_METHOD must be GET
  • query string must include ncbi_help[=<format>] argument (all other arguments are ignored). The default implementation looks for <appname>.help.<format> files in the app directory, then for help.<format>. The formats are checked in the following order: 1. If format argument is present, try to open <appname>.help.<format>, then help.<format>. 2. Check 'Accept:' http header; for each 'type/subtype' entry try to open <appname>.help.<subtype> and help.<subtype>. 3. Check availability of help files for html, xml, and json formats. 4. Use CArgDescriptions to print help in XML format. If a help file starts with 'Content-type: ...' followed by double- newline, the specified content type is sent in the response regardless of the actual format selected.

Definition at line 1719 of file cgiapp.cpp.

References format, CCgiRequestProcessor::ProcessHelpRequest(), and CCgiApplication::x_GetProcessor().

◆ ProcessHelpRequest() [2/2]

void CCgiRequestProcessor::ProcessHelpRequest ( const string format)
protectedvirtual

◆ ProcessHttpReferer()

void CCgiApplication::ProcessHttpReferer ( void  )
protected

◆ ProcessRequest() [1/4]

int CCgiRequestProcessor::ProcessRequest ( CCgiContext context)
virtual

Process request provided by the context. By default calls application's ProcessRequest.

Reimplemented in CFastCgiMTSampleRequestProcessor.

Definition at line 2263 of file cgiapp.cpp.

References _ASSERT, context, CCgiRequestProcessor::m_App, CCgiRequestProcessor::m_Context, and CCgiApplication::ProcessRequest().

Referenced by CCgiApplication::Run(), and CFastCgiApplicationMT::x_ProcessThreadedRequest().

◆ ProcessRequest() [2/4]

int CFastCgiApplicationMT::ProcessRequest ( CCgiContext context)
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.

◆ ProcessRequest() [3/4]

virtual int CCgiApplication::ProcessRequest ( CCgiContext context)
pure virtual

This is the method you should override.

It is called whenever the CGI application gets a syntaxically valid HTTP request.

Parameters
contextContains the parameters of the HTTP request
Returns
Exit code; it must be zero on success

Implemented in CPsgCgiApp, CCgiSampleApplication, CCgiSampleApplication, CCgiSessionSampleApplication, CCgiSampleApplication, CBlastHitMatrixCGIApplication, CNetCacheBlobFetchApp, CCgi2RCgiApp, CSoapServerApplication, CGridCgiApplication, CCgiRedirectApplication, CGlCgiImageApplication, CFastCgiApplicationMT, and CHelloApp.

Referenced by CCgiRequestProcessor::ProcessRequest(), and CRemoteCgiApp::RunJob().

◆ ProcessRequest() [4/4]

int CCgiRedirectApplication::ProcessRequest ( CCgiContext context)
virtual

This is the method you should override.

It is called whenever the CGI application gets a syntaxically valid HTTP request.

Parameters
contextContains the parameters of the HTTP request
Returns
Exit code; it must be zero on success

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().

◆ ProcessVersionRequest() [1/2]

void CCgiRequestProcessor::ProcessVersionRequest ( CCgiApplication::EVersionType  ver_type)
protectedvirtual

◆ ProcessVersionRequest() [2/2]

void CCgiApplication::ProcessVersionRequest ( EVersionType  ver_type)
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:

  • CGI_ENABLE_VERSION_REQUEST=t must be set in the environment or EnableVersionRequest=t in [CGI] section of the INI file.
  • REQUEST_METHOD must be GET
  • query string must include ncbi_version=[short|full] argument (all other arguments are ignored). The default implementation prints GetVersion/GetFullVersion as plain text (default), XML or JSON depending on the 'Accept:' HTTP header, if any.

Definition at line 1776 of file cgiapp.cpp.

References CCgiRequestProcessor::ProcessVersionRequest(), and CCgiApplication::x_GetProcessor().

◆ PutMsg() [1/2]

void CCgiContext::PutMsg ( CCtxMsg msg)
inline

Definition at line 433 of file cgictx.hpp.

References CCgiContext::m_Messages.

◆ PutMsg() [2/2]

void CCgiContext::PutMsg ( const string msg)
inline

Definition at line 426 of file cgictx.hpp.

References CCgiContext::m_Messages.

◆ RegisterDiagFactory()

void CCgiApplication::RegisterDiagFactory ( const string key,
CDiagFactory fact 
)
protected

◆ RemapEntries()

TCgiEntries & CCgiRedirectApplication::RemapEntries ( CCgiContext ctx,
TCgiEntries new_entries 
)
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.

Parameters
ctxCurrent CGI context. Can be used to get original entries and server context.
new_entriesStorage 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.
Returns
Reference to "new_entries" parameter.
See also
ProcessRequest()

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().

◆ RemoveRequestValues()

void CCgiContext::RemoveRequestValues ( const string name)

◆ ReplaceRequestValue()

void CCgiContext::ReplaceRequestValue ( const string name,
const CCgiEntry value 
)

◆ Reset()

void CCgiStatistics::Reset ( const CTime start_time,
int  result,
const std::exception *  ex = 0 
)
protectedvirtual

◆ response()

bool CFastCgiThreadedRequest::response ( void  )
override

◆ RetrieveTrackingId()

string CCgiContext::RetrieveTrackingId ( ) const

◆ Run()

int CCgiApplication::Run ( void  )
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.

See also
ProcessRequest

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, 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().

◆ SAcceptEntry()

CCgiApplication::SAcceptEntry::SAcceptEntry ( void  )
inline

Definition at line 341 of file cgiapp.hpp.

◆ SaveRequest()

void CCgiApplication::SaveRequest ( const string rid,
const CCgiRequest request,
ICache cache 
)
protected

◆ SaveResultToCache()

void CCgiApplication::SaveResultToCache ( const CCgiRequest request,
CNcbiIstream is,
ICache cache 
)
protected

◆ Set()

void CFastCgiThreadedRequest::CEnv::Set ( const string name,
const string value 
)
inline

◆ SetCacheStream()

void CCgiStreamWrapper::SetCacheStream ( CNcbiOstream stream)

◆ SetCafService()

void CCgiApplication::SetCafService ( CCookieAffinity caf)
protected

Attach cookie affinity service interface.

Pointer ownership goes to the CCgiApplication.

Definition at line 987 of file cgiapp.cpp.

References CCgiApplication::m_Caf.

◆ SetContext()

void CCgiRequestProcessor::SetContext ( shared_ptr< CCgiContext context)
inline

◆ SetErrorStatus()

void CCgiRequestProcessor::SetErrorStatus ( bool  val)
inline

◆ SetHTTPStatus() [1/2]

void CCgiApplication::SetHTTPStatus ( unsigned int  status,
const string reason = kEmptyStr 
)
protected

Set HTTP status code in the current request context and in the current CHttpResponse if one exists.

See also
CHttpResponse::SetStatus()

Definition at line 1634 of file cgiapp.cpp.

References CDiagContext::GetRequestContext(), CCgiRequestProcessor::SetHTTPStatus(), CRequestContext::SetRequestStatus(), CCgiApplication::x_GetProcessor(), and CCgiApplication::x_IsSetProcessor().

Referenced by CNetCacheBlobFetchApp::OnException().

◆ SetHTTPStatus() [2/2]

void CCgiRequestProcessor::SetHTTPStatus ( unsigned int  status,
const string reason = kEmptyStr 
)
protected

◆ SetImplOwnership()

void CCgiSessionParameters::SetImplOwnership ( EOwnership  owner)
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.

◆ SetInputStream()

void CCgiRequestProcessor::SetInputStream ( CNcbiIstream in)
inline

◆ SetOutputBroken()

void CCgiRequestProcessor::SetOutputBroken ( bool  val)
inline

◆ SetOutputStream()

void CCgiRequestProcessor::SetOutputStream ( CNcbiOstream out)
inline

◆ SetRequestFlags()

void CCgiApplication::SetRequestFlags ( int  flags)
inline

◆ SetRequestId() [1/2]

void CCgiApplication::SetRequestId ( const string rid,
bool  is_done 
)
protected

◆ SetRequestId() [2/2]

void CCgiRequestProcessor::SetRequestId ( const string rid,
bool  is_done 
)
protected

◆ SetRequestStartPrinted()

void CCgiRequestProcessor::SetRequestStartPrinted ( bool  val)
inline

Definition at line 658 of file cgiapp.hpp.

References CCgiRequestProcessor::m_RequestStartPrinted, and val.

Referenced by CCgiApplication::x_OnEvent().

◆ SetResultReady()

void CCgiRequestProcessor::SetResultReady ( bool  val)
inline

Definition at line 667 of file cgiapp.hpp.

References CCgiRequestProcessor::m_IsResultReady, and val.

◆ SetRID()

void CCgiRequestProcessor::SetRID ( const string val)
inline

Definition at line 664 of file cgiapp.hpp.

References CCgiRequestProcessor::m_RID, and val.

◆ SetSessionCookieDomain()

void CCgiSessionParameters::SetSessionCookieDomain ( const string domain)
inline

Set session cookie's domain Default: .ncbi.nlm.nih.gov.

Definition at line 320 of file cgictx.hpp.

References CCgiSessionParameters::m_SessionCookieDomain.

◆ SetSessionCookieExpTime()

void CCgiSessionParameters::SetSessionCookieExpTime ( const CTime exp_time)
inline

Set session cookie's expiration time Default: none.

Definition at line 330 of file cgictx.hpp.

References CCgiSessionParameters::m_SessionCookieExpTime.

◆ SetSessionCookiePath()

void CCgiSessionParameters::SetSessionCookiePath ( const string path)
inline

Set session cookie's path Default: /.

Definition at line 325 of file cgictx.hpp.

References CCgiSessionParameters::m_SessionCookiePath.

◆ SetSessionIdName()

void CCgiSessionParameters::SetSessionIdName ( const string name)
inline

Set name of the cookie with session id.

Default: ncbi_sessionid

Definition at line 316 of file cgictx.hpp.

References CCgiSessionParameters::m_SessionIdName.

◆ SetupArgDescriptions()

void CCgiApplication::SetupArgDescriptions ( CArgDescriptions arg_desc)
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().

◆ SetWriterMode()

void CCgiStreamWrapper::SetWriterMode ( CCgiStreamWrapper::EStreamMode  mode)

◆ ShouldRestart()

CCgiApplication::ERestartReason CCgiApplication::ShouldRestart ( CTime mtime,
CCgiWatchFile watcher,
int  delay 
)
staticprotected

◆ Submit()

void CCgiStatistics::Submit ( const string message)
protectedvirtual

Definition at line 2124 of file cgiapp.cpp.

References LOG_POST_X.

◆ ValidateSynchronizationToken() [1/2]

bool CCgiApplication::ValidateSynchronizationToken ( void  )
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.

Returns
  • true if the token passes validation or if CSRF prevention is disabled.
  • false if the token does not pass validation; the CGI will return status "403 Forbidden".
See also
CCgiSession

Definition at line 1823 of file cgiapp.cpp.

References CCgiRequestProcessor::ValidateSynchronizationToken(), and CCgiApplication::x_GetProcessor().

Referenced by CCgiApplication::Run().

◆ ValidateSynchronizationToken() [2/2]

bool CCgiRequestProcessor::ValidateSynchronizationToken ( void  )
virtual

◆ VerifyCgiContext()

void CCgiApplication::VerifyCgiContext ( CCgiContext context)
protected

Check CGI context for possible problems, throw exception with HTTP status set if something is wrong.

Definition at line 1561 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().

◆ Write() [1/2]

CNcbiOstream & CCtxMsgString::Write ( CNcbiOstream os) const
virtual

Implements CCtxMsg.

Definition at line 101 of file cgictx.cpp.

References CCtxMsgString::m_Message, and CCtxMsgString::sm_nl.

◆ Write() [2/2]

virtual CNcbiOstream& CCtxMsg::Write ( CNcbiOstream os) const
pure virtual

Implemented in CCtxMsgString.

Referenced by operator<<().

◆ x_AddLBCookie()

void CCgiApplication::x_AddLBCookie ( )
private

Definition at line 1555 of file cgiapp.cpp.

References CCgiApplication::AddLBCookie(), and CCgiApplication::GetContext().

Referenced by CCgiApplication::Run().

◆ x_CreateProcessor()

CCgiRequestProcessor & CCgiApplication::x_CreateProcessor ( void  )
protected

◆ x_DoneHeadRequest()

bool CCgiApplication::x_DoneHeadRequest ( CCgiContext context) const
private

◆ x_GetApp()

CCgiApplication & CCgiContext::x_GetApp ( void  ) const
private

◆ x_GetContext()

CCgiContext & CCgiApplication::x_GetContext ( void  ) const
private

◆ x_GetProcessor()

CCgiRequestProcessor & CCgiApplication::x_GetProcessor ( void  ) const
private

◆ x_GetProcessorOrNull()

CCgiRequestProcessor * CCgiApplication::x_GetProcessorOrNull ( void  ) const
private

Definition at line 839 of file cgiapp.cpp.

References CTls< TValue >::GetValue(), and CCgiApplication::m_Processor.

Referenced by CCgiApplication::x_OnEvent().

◆ x_GetResource()

CNcbiResource & CCgiApplication::x_GetResource ( void  ) const
private

Definition at line 812 of file cgiapp.cpp.

References ERR_POST_X, and CCgiApplication::m_Resource.

Referenced by CCgiApplication::GetResource().

◆ x_GetServerContext()

CCgiServerContext & CCgiContext::x_GetServerContext ( void  ) const
private

◆ x_InitArgs()

void CCgiRequestProcessor::x_InitArgs ( void  ) const
private

◆ x_InitSession()

void CCgiContext::x_InitSession ( CCgiRequest::TFlags  flags,
ICgiSessionStorage session_storage = nullptr 
)
private

◆ x_IsSecure()

CCgiContext::ESecureMode CCgiContext::x_IsSecure ( void  ) const
private

◆ x_IsSetProcessor()

bool CCgiApplication::x_IsSetProcessor ( void  ) const
private

◆ x_OnEvent() [1/2]

void CCgiApplication::x_OnEvent ( CCgiRequestProcessor pprocessor,
EEvent  event,
int  status 
)
protected

Definition at line 1073 of file cgiapp.cpp.

References CCgiResponse::AcceptRangesBytes(), CRequestStatus::e299_PartialContentBrokenConnection, CRequestStatus::e499_BrokenConnection, CCgiApplication::eEndRequest, CCgiApplication::eError, CCgiApplication::eException, CCgiApplication::eExecutable, CCgiApplication::eExit, CCgiApplication::eExitOnFail, CCgiApplication::eExitRequest, eNcbiStrings_Stat, CCgiApplication::eStartRequest, CCgiApplication::eSuccess, 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(), CRequestContext::GetHitID(), CCgiRequestProcessor::GetInputStream(), CCgiResponse::GetOutput(), CCgiRequestProcessor::GetOutputBroken(), CCgiRequestProcessor::GetOutputStream(), CCgiContext::GetRequest(), CDiagContext::GetRequestContext(), CCgiRequestProcessor::GetRequestStartPrinted(), CCgiContext::GetResponse(), CCgiCookie::GetValue(), 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(), and CRequestContext::SetRequestStatus().

Referenced by CCgiApplication::Run(), CFastCgiApplicationMT::x_ProcessThreadedRequest(), and CFastCgiApplicationMT::x_RunFastCGI().

◆ x_OnEvent() [2/2]

void CCgiApplication::x_OnEvent ( EEvent  event,
int  status 
)
inlineprotected

◆ x_ParseEnv()

void CFastCgiThreadedRequest::x_ParseEnv ( void  ) const
private

◆ x_ProcessAdminRequest()

bool CCgiApplication::x_ProcessAdminRequest ( CCgiRequestProcessor processor)
protected

◆ x_ProcessHelpRequest()

bool CCgiApplication::x_ProcessHelpRequest ( CCgiRequestProcessor processor)
protected

◆ x_ProcessThreadedRequest()

void CFastCgiApplicationMT::x_ProcessThreadedRequest ( CFastCgiThreadedRequest req)
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, 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().

◆ x_ProcessVersionRequest()

bool CCgiApplication::x_ProcessVersionRequest ( CCgiRequestProcessor processor)
protected

◆ x_Read()

int CCgiWatchFile::x_Read ( char *  buf)
private

◆ x_RunFastCGI() [1/2]

bool CCgiApplication::x_RunFastCGI ( int result,
unsigned int  def_iter = 10 
)
protectedvirtual

Reimplemented in CFastCgiApplicationMT.

Definition at line 44 of file cgi_run.cpp.

Referenced by CCgiApplication::Run().

◆ x_RunFastCGI() [2/2]

bool CFastCgiApplicationMT::x_RunFastCGI ( int result,
unsigned int  def_iter = 10 
)
overrideprotectedvirtual

◆ x_SetStatus()

void CCgiContext::x_SetStatus ( CCgiException::EStatusCode  code,
const string msg 
) const
private

Definition at line 614 of file cgictx.cpp.

References CCgiContext::m_StatusCode, and CCgiContext::m_StatusMessage.

Referenced by CCgiContext::x_InitSession().

◆ ~CCgiApplication()

CCgiApplication::~CCgiApplication ( void  )

◆ ~CCgiApplicationCached()

CCgiApplicationCached::~CCgiApplicationCached ( void  )

Definition at line 47 of file cgiapp_cached.cpp.

◆ ~CCgiContext()

CCgiContext::~CCgiContext ( void  )
virtual

Definition at line 243 of file cgictx.cpp.

◆ ~CCgiProcessorGuard()

CCgiProcessorGuard::~CCgiProcessorGuard ( void  )
inline

Definition at line 676 of file cgiapp.hpp.

References CCgiProcessorGuard::m_Proc, and CTls< TValue >::Reset().

◆ ~CCgiRequestProcessor()

CCgiRequestProcessor::~CCgiRequestProcessor ( void  )
virtual

Definition at line 2258 of file cgiapp.cpp.

◆ ~CCgiRequestProcessorMT()

CCgiRequestProcessorMT::~CCgiRequestProcessorMT ( void  )
virtual

Definition at line 592 of file fcgiapp_mt.cpp.

◆ ~CCgiServerContext()

CCgiServerContext::~CCgiServerContext ( void  )
virtual

Definition at line 70 of file cgictx.cpp.

◆ ~CCgiStatistics()

CCgiStatistics::~CCgiStatistics ( )
virtual

Definition at line 2054 of file cgiapp.cpp.

◆ ~CCtxMsg()

CCtxMsg::~CCtxMsg ( void  )
virtual

Definition at line 81 of file cgictx.cpp.

◆ ~CCtxMsgString()

CCtxMsgString::~CCtxMsgString ( void  )
virtual

Definition at line 95 of file cgictx.cpp.

◆ ~CEnv()

CFastCgiThreadedRequest::CEnv::~CEnv ( void  )
inline

Definition at line 83 of file fcgiapp_mt.hpp.

References CFastCgiThreadedRequest::CEnv::data, and free().

◆ ~CFastCgiApplicationMT()

CFastCgiApplicationMT::~CFastCgiApplicationMT ( void  )

Definition at line 83 of file fcgiapp_mt.cpp.

◆ ~CFastCgiThreadedRequest()

CFastCgiThreadedRequest::~CFastCgiThreadedRequest ( void  )

Definition at line 450 of file fcgiapp_mt.cpp.

Variable Documentation

◆ bool

bool ( void  )

◆ CGI

CGI

Definition at line 685 of file cgiapp.hpp.

Referenced by CCgiUserAgent::x_CheckPattern().

◆ Client_Connection_Interruption_Okay

Client_Connection_Interruption_Okay

Definition at line 696 of file cgiapp.hpp.

◆ Client_Connection_Interruption_Severity

Client_Connection_Interruption_Severity

Definition at line 700 of file cgiapp.hpp.

◆ data

vector<char*> CFastCgiThreadedRequest::CEnv::data

◆ DisableTrackingCookie

DisableTrackingCookie

Definition at line 685 of file cgiapp.hpp.

◆ EDiagSev

Definition at line 699 of file cgiapp.hpp.

◆ m_AcceptParams

TParams CCgiApplication::SAcceptEntry::m_AcceptParams

Accept parameters.

Definition at line 349 of file cgiapp.hpp.

Referenced by CCgiRequestProcessor::ParseAcceptHeader().

◆ m_App [1/2]

CCgiApplication& CCgiRequestProcessor::m_App
private

◆ m_App [2/2]

CCgiApplication* CCgiContext::m_App
private

Definition at line 268 of file cgictx.hpp.

Referenced by CCgiContext::x_GetApp(), and CCgiContext::x_InitSession().

◆ m_Buf

TBuf CCgiWatchFile::m_Buf
private

Definition at line 536 of file cgiapp.hpp.

Referenced by CCgiWatchFile::CCgiWatchFile(), and CCgiWatchFile::HasChanged().

◆ m_CacheDriverName

string CCgiApplicationCached::m_CacheDriverName
private

◆ m_CacheTreeParams

const TPluginManagerParamTree* CCgiApplicationCached::m_CacheTreeParams
private

◆ m_Caf

unique_ptr<CCookieAffinity> CCgiApplication::m_Caf
private

Definition at line 455 of file cgiapp.hpp.

Referenced by CCgiApplication::AddLBCookie(), and CCgiApplication::SetCafService().

◆ m_CaughtSigterm

bool CCgiApplication::m_CaughtSigterm
protected

Definition at line 432 of file cgiapp.hpp.

Referenced by s_ScheduleFastCGIMTExit(), and CFastCgiApplicationMT::x_RunFastCGI().

◆ m_CgiApp

CCgiApplication& CCgiStatistics::m_CgiApp
protected

◆ m_CgiArgs

unique_ptr<CArgs> CCgiRequestProcessor::m_CgiArgs
mutableprivate

◆ m_Context

shared_ptr<CCgiContext> CCgiRequestProcessor::m_Context
private

◆ m_CookieEnabled

bool CCgiSessionParameters::m_CookieEnabled
private

Definition at line 344 of file cgictx.hpp.

Referenced by CCgiSessionParameters::DisableCookie(), and CCgiContext::x_InitSession().

◆ m_Count

int CCgiWatchFile::m_Count
private

Definition at line 535 of file cgiapp.hpp.

Referenced by CCgiWatchFile::CCgiWatchFile(), and CCgiWatchFile::HasChanged().

◆ m_DiagFactories

TDiagFactoryMap CCgiApplication::m_DiagFactories
private

◆ m_DiagPrefixEnv

string CCgiApplication::m_DiagPrefixEnv
private

Definition at line 459 of file cgiapp.hpp.

Referenced by CCgiApplication::Init(), and CCgiApplication::Run().

◆ m_Env

CEnv CFastCgiThreadedRequest::m_Env
mutableprivate

◆ m_ErrMsg

string CCgiStatistics::m_ErrMsg
protected

Definition at line 513 of file cgiapp.hpp.

Referenced by CCgiStatistics::Compose_ErrMessage(), and CCgiStatistics::Reset().

◆ m_ErrorCounter

CAtomicCounter CFastCgiApplicationMT::m_ErrorCounter
private

◆ m_ErrorStatus

bool CCgiRequestProcessor::m_ErrorStatus = false
private

◆ m_Filename

string CCgiWatchFile::m_Filename
private

Definition at line 533 of file cgiapp.hpp.

Referenced by CCgiWatchFile::x_Read().

◆ m_HostIP

char* CCgiApplication::m_HostIP
private

Definition at line 456 of file cgiapp.hpp.

Referenced by CCgiApplication::AddLBCookie(), and CCgiApplication::~CCgiApplication().

◆ m_ImplOwner

EOwnership CCgiSessionParameters::m_ImplOwner
private

◆ m_InputStream [1/2]

unique_ptr<CNcbiIstream> CCgiRequestProcessor::m_InputStream
private

◆ m_InputStream [2/2]

shared_ptr<istream> CFastCgiThreadedRequest::m_InputStream
private

◆ m_IsResultReady

bool CCgiRequestProcessor::m_IsResultReady = true
private

◆ m_IsSecure

bool CCgiContext::m_IsSecure
mutableprivate

Definition at line 281 of file cgictx.hpp.

Referenced by CCgiContext::GetSelfURL(), and CCgiContext::IsSecure().

◆ m_IsStatLog

bool CFastCgiApplicationMT::m_IsStatLog
private

◆ m_Iteration

CAtomicCounter CCgiApplication::m_Iteration
protected

◆ m_Limit

int CCgiWatchFile::m_Limit
private

Definition at line 534 of file cgiapp.hpp.

Referenced by CCgiWatchFile::HasChanged(), and CCgiWatchFile::x_Read().

◆ m_LogDelim

string CCgiStatistics::m_LogDelim
protected

◆ m_Manager

unique_ptr<TManager> CFastCgiApplicationMT::m_Manager
private

◆ m_ManagerStopped

bool CFastCgiApplicationMT::m_ManagerStopped
private

Definition at line 142 of file fcgiapp_mt.hpp.

Referenced by CFastCgiApplicationMT::FASTCGI_ScheduleExit().

◆ m_MaxIterations

unsigned int CFastCgiApplicationMT::m_MaxIterations
private

◆ m_MediaRangeParams

string CCgiApplication::SAcceptEntry::m_MediaRangeParams

Media range parameters.

Definition at line 348 of file cgiapp.hpp.

Referenced by CCgiApplication::SAcceptEntry::operator<(), and CCgiRequestProcessor::ParseAcceptHeader().

◆ m_Message

string CCtxMsgString::m_Message
private

Definition at line 109 of file cgictx.hpp.

Referenced by CCtxMsgString::Write().

◆ m_Messages

TMessages CCgiContext::m_Messages
private

◆ m_ModTime

CTime CFastCgiApplicationMT::m_ModTime
private

◆ m_OutputBroken

bool CCgiRequestProcessor::m_OutputBroken = false
private

◆ m_OutputStream

unique_ptr<CNcbiOstream> CCgiRequestProcessor::m_OutputStream
private

◆ m_Page

CHTMLPage CCgiRedirectApplication::m_Page
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().

◆ m_Proc

CTls<CCgiRequestProcessor>* CCgiProcessorGuard::m_Proc
private

Definition at line 678 of file cgiapp.hpp.

Referenced by CCgiProcessorGuard::~CCgiProcessorGuard().

◆ m_Processor

CRef<CTls<CCgiRequestProcessor> > CCgiApplication::m_Processor
protected

◆ m_Quality

float CCgiApplication::SAcceptEntry::m_Quality

Quality factor or "1" if not set (or not numeric).

Definition at line 347 of file cgiapp.hpp.

Referenced by CCgiApplication::SAcceptEntry::operator<(), and CCgiRequestProcessor::ParseAcceptHeader().

◆ m_Request

unique_ptr<CCgiRequest> CCgiContext::m_Request
private

◆ m_RequestFlags

int CCgiApplication::m_RequestFlags
protected

◆ m_RequestStartPrinted

bool CCgiRequestProcessor::m_RequestStartPrinted = false
private

◆ m_Resource [1/2]

unique_ptr<CNcbiResource> CCgiApplication::m_Resource
private

◆ m_Resource [2/2]

unique_ptr<CNcbiResource> CCgiRequestProcessorMT::m_Resource
private

Definition at line 159 of file fcgiapp_mt.hpp.

Referenced by CCgiRequestProcessorMT::CCgiRequestProcessorMT().

◆ m_Response

CCgiResponse CCgiContext::m_Response
private

◆ m_RestartDelay

int CFastCgiApplicationMT::m_RestartDelay
private

◆ m_Result

int CCgiStatistics::m_Result
protected

Definition at line 512 of file cgiapp.hpp.

Referenced by CCgiStatistics::Compose_Result(), and CCgiStatistics::Reset().

◆ m_RID

string CCgiRequestProcessor::m_RID
private

◆ m_SelfURL

string CCgiContext::m_SelfURL
mutableprivate

Definition at line 280 of file cgictx.hpp.

Referenced by CCgiContext::GetSelfURL().

◆ m_ServerContext

unique_ptr<CCgiServerContext> CCgiContext::m_ServerContext
private

Definition at line 278 of file cgictx.hpp.

Referenced by CCgiContext::x_GetServerContext().

◆ m_Session

unique_ptr<CCgiSession> CCgiContext::m_Session
private

Definition at line 271 of file cgictx.hpp.

Referenced by CCgiContext::x_InitSession().

◆ m_SessionCookieDomain

string CCgiSessionParameters::m_SessionCookieDomain
private

◆ m_SessionCookieExpTime

CTime CCgiSessionParameters::m_SessionCookieExpTime
private

◆ m_SessionCookiePath

string CCgiSessionParameters::m_SessionCookiePath
private

◆ m_SessionIdName

string CCgiSessionParameters::m_SessionIdName
private

◆ m_ShouldExit

bool CCgiApplication::m_ShouldExit = false
private
See also
FASTCGI_ScheduleExit()

Definition at line 462 of file cgiapp.hpp.

Referenced by CCgiApplication::FASTCGI_ScheduleExit().

◆ m_StartTime

CTime CCgiStatistics::m_StartTime
protected

◆ m_Stat

unique_ptr<CCgiStatistics> CFastCgiApplicationMT::m_Stat
private

◆ m_StatusCode

CCgiException::EStatusCode CCgiContext::m_StatusCode
mutableprivate

Definition at line 285 of file cgictx.hpp.

Referenced by CCgiContext::CheckStatus(), and CCgiContext::x_SetStatus().

◆ m_StatusMessage

string CCgiContext::m_StatusMessage
mutableprivate

Definition at line 286 of file cgictx.hpp.

Referenced by CCgiContext::CheckStatus(), and CCgiContext::x_SetStatus().

◆ m_StopIfFailed

bool CFastCgiApplicationMT::m_StopIfFailed
private

◆ m_Subtype

string CCgiApplication::SAcceptEntry::m_Subtype

◆ m_Type

string CCgiApplication::SAcceptEntry::m_Type

◆ m_Watcher

unique_ptr<CCgiWatchFile> CFastCgiApplicationMT::m_Watcher
private

◆ m_WatchTimeout

unsigned int CFastCgiApplicationMT::m_WatchTimeout
private

Definition at line 138 of file fcgiapp_mt.hpp.

Referenced by CFastCgiApplicationMT::x_RunFastCGI().

◆ m_Writer

CCgiStreamWrapperWriter* CCgiStreamWrapper::m_Writer
private

◆ NCBI_XCGI_EXPORT

NCBI_XCGI_EXPORT

Definition at line 685 of file cgiapp.hpp.

◆ sm_nl

const char * CCtxMsgString::sm_nl = "\n"
static

Definition at line 106 of file cgictx.hpp.

Referenced by CCtxMsgString::Write().

◆ string

string
Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp, /home/coremake/doxygen/cxx/include/util/buffer_writer.hpp, and /home/coremake/doxygen/cxx/src/objtools/data_loaders/asn_cache/buffer_writer.hpp.

Definition at line 687 of file cgiapp.hpp.

Referenced by abort(), CAlnMix::Add(), CAlnMixSequences::Add(), 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(), CLatLonCountryMap::CLatLonCountryMap(), clean_up(), CNcbiApplogApp::Cmd_Health(), CMsvcPrjGeneralContext::CMsvcPrjGeneralContext(), xml::xpath_expression::compile_expression(), CSeq_id::ComposeOSLT(), CSeqDBAliasNode::ComputeMasks(), 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(), CNcbiEncrypt::Decrypt(), CRawSeqToDeltaByN::DeltaSeqToRaw(), CVDBCacheWithExpiration::CExpirationInfo::DereferncePath(), SQueueParameters::Diff(), 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(), 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(), 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(), 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(), PrettyPrint(), CBiosampleFieldDiff::PrettyPrint(), CPluginValue::Print(), xml::error_messages::print(), PrintASNNewLine(), CHTML_table::PrintBegin(), CHttpRequest::PrintLogFields(), CCgiRequestProcessor::ProcessHelpRequest(), Prosite2Regex(), NSnpGui::PValueToString(), 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(), 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_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_SimulateFailure(), 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(), 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(), 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(), CSeqDBImpl::x_FixString(), CEntrez2ClientApp::x_FormatReply(), CGenomeAnnotComment::x_GatherInfo(), CGuiObjectInfoSeq_feat::x_GetAccession(), CGuiObjectInfoSeq_align::x_GetAlignmentTooltip_Insert(), CPSGDataLoader_Impl::x_GetCachedBlobId(), 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(), 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(), COSGServiceMapper::x_SetRating(), 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

TrackingCookieDomain

Definition at line 691 of file cgiapp.hpp.

◆ TrackingCookieName

TrackingCookieName

Definition at line 687 of file cgiapp.hpp.

◆ TrackingCookiePath

TrackingCookiePath

Definition at line 693 of file cgiapp.hpp.

◆ TrackingTagName

TrackingTagName

Definition at line 689 of file cgiapp.hpp.

Friends

◆ CCgiApplication [1/2]

friend class CCgiApplication
friend

Definition at line 478 of file cgiapp.hpp.

◆ CCgiApplication [2/2]

friend class CCgiApplication
friend

Definition at line 580 of file cgiapp.hpp.

◆ CCgiContext

friend class CCgiContext
friend

Definition at line 336 of file cgictx.hpp.

◆ CCgiRequestProcessor

friend class CCgiRequestProcessor
friend

Definition at line 65 of file cgiapp.hpp.

Referenced by CCgiApplication::CreateRequestProcessor().

◆ CCgiStatistics

friend class CCgiStatistics
friend

Definition at line 64 of file cgiapp.hpp.

Referenced by CCgiApplication::CreateStat().

◆ CFastCgiApplicationMT [1/2]

friend class CFastCgiApplicationMT
friend

Definition at line 479 of file cgiapp.hpp.

◆ CFastCgiApplicationMT [2/2]

friend class CFastCgiApplicationMT
friend

Definition at line 152 of file fcgiapp_mt.hpp.

◆ CFastCgiThreadedRequest

friend class CFastCgiThreadedRequest
friend

Definition at line 125 of file fcgiapp_mt.hpp.

◆ s_ScheduleFastCGIExit

void s_ScheduleFastCGIExit ( void  )
friend

◆ s_ScheduleFastCGIMTExit

void s_ScheduleFastCGIMTExit ( void  )
friend

Definition at line 56 of file fcgiapp_mt.cpp.

Modified on Sat Apr 13 11:43:30 2024 by modify_doxy.py rev. 669887