Provides test code access to CacheManager internal symbols. More...

Inheritance diagram for CacheManagerInternals:
Collaboration diagram for CacheManagerInternals:

Public Types

typedef std::vector< Mgr::ActionProfilePointerMenu

Public Member Functions

void ParseUrl (const AnyP::Uri &u)
void registerProfile (char const *action, char const *desc, OBJH *handler, int pw_req_flag, int atomic)
void registerProfile (char const *action, char const *desc, Mgr::ClassActionCreationHandler *handler, int pw_req_flag, int atomic)
Mgr::ActionProfilePointer findAction (char const *action) const
Mgr::Action::Pointer createNamedAction (const char *actionName)
Mgr::Action::Pointer createRequestedAction (const Mgr::ActionParams &)
const Menumenu () const
void start (const Comm::ConnectionPointer &client, HttpRequest *request, StoreEntry *entry, const AccessLogEntryPointer &ale)
const char * ActionProtection (const Mgr::ActionProfilePointer &profile)

Static Public Member Functions

static CacheManagerGetInstance ()

Protected Member Functions

void registerProfile (const Mgr::ActionProfilePointer &profile)
 Registers new profiles, ignoring attempts to register a duplicate. More...
void ParseHeaders (const HttpRequest *request, Mgr::ActionParams &params)
int CheckPassword (const Mgr::Command &cmd)
char * PasswdGet (Mgr::ActionPasswordList *, const char *)

Protected Attributes

Menu menu_

Detailed Description

Definition at line 22 of file

Member Typedef Documentation

◆ Menu

Definition at line 34 of file CacheManager.h.

Member Function Documentation

◆ ActionProtection()

const char * CacheManager::ActionProtection ( const Mgr::ActionProfilePointer profile)

◆ CheckPassword()

int CacheManager::CheckPassword ( const Mgr::Command cmd)
Return values
0if mgr->password is good or "none"
1if mgr->password is "disable"
!0if mgr->password does not match configured password

Definition at line 284 of file

References action(), assert, Config, debugs, NULL, Mgr::Command::params, SquidConfig::passwd_list, CacheManager::PasswdGet(), Mgr::ActionParams::password, Mgr::Command::profile, and String::size().

Referenced by CacheManager::start().

◆ createNamedAction()

Mgr::Action::Pointer CacheManager::createNamedAction ( const char *  actionName)

Definition at line 131 of file

References CacheManager::findAction(), Must, and NULL.

Referenced by Mgr::Response::Response(), and testCacheManager::testRegister().

◆ createRequestedAction()

Mgr::Action::Pointer CacheManager::createRequestedAction ( const Mgr::ActionParams params)

◆ findAction()

Mgr::ActionProfile::Pointer CacheManager::findAction ( char const *  action) const

Locates an action in the actions registry ActionsList.

Return values
NULLif Action not found
CacheManagerAction*if the action was found

Definition at line 113 of file

References action(), debugs, CacheManager::menu_, Must, and NULL.

Referenced by CacheManager::createNamedAction(), CacheManager::createRequestedAction(), CacheManager::ParseUrl(), and CacheManager::registerProfile().

◆ GetInstance()

◆ menu()

const Menu& CacheManager::menu ( ) const

Definition at line 45 of file CacheManager.h.

References CacheManager::menu_.

Referenced by Mgr::MenuAction::dump().

◆ ParseHeaders()

◆ ParseUrl()

void CacheManagerInternals::ParseUrl ( const AnyP::Uri u)

Definition at line 25 of file

References CacheManager::ParseUrl().

◆ PasswdGet()

char * CacheManager::PasswdGet ( Mgr::ActionPasswordList a,
const char *  action 

◆ registerProfile() [1/3]

void CacheManager::registerProfile ( char const *  action,
char const *  desc,
Mgr::ClassActionCreationHandler handler,
int  pw_req_flag,
int  atomic 

◆ registerProfile() [2/3]

void CacheManager::registerProfile ( char const *  action,
char const *  desc,
OBJH handler,
int  pw_req_flag,
int  atomic 

Registers a C-style action, which is implemented as a pointer to a function taking as argument a pointer to a StoreEntry and returning void. Implemented via CacheManagerActionLegacy.

Definition at line 82 of file

References action(), debugs, and handler().

Referenced by Mgr::RegisterAction(), and testCacheManager::testRegister().

◆ registerProfile() [3/3]

void CacheManager::registerProfile ( const Mgr::ActionProfilePointer profile)

Definition at line 64 of file

References debugs, CacheManager::findAction(), CacheManager::menu_, Must, and NULL.

◆ start()

Member Data Documentation

◆ menu_

Menu CacheManager::menu_

The documentation for this class was generated from the following file:






Web Site Translations