ErrorDetailManager.h
Go to the documentation of this file.
74 const ErrorDetailEntry *findDetail(Security::ErrorCode value, const HttpRequest::Pointer &request) const;
#define RefCountable
The locking interface for use on Reference-Counted classes.
Definition: Lock.h:66
Definition: HttpHeader.h:75
Definition: HttpRequest.h:49
Definition: ErrorDetailManager.h:27
SBuf descr
short error description (for use in debug messages or error pages)
Definition: ErrorDetailManager.h:34
ErrorDetailEntry(const SBuf &aName, const HttpHeader &)
extracts quoted detail and descr fields from the given header
Definition: ErrorDetailManager.cc:39
Definition: ErrorDetailManager.h:42
RefCount< ErrorDetailsList > Pointer
Definition: ErrorDetailManager.h:44
String errLanguage
The language of the error-details.txt template, if any.
Definition: ErrorDetailManager.h:50
std::map< Security::ErrorCode, ErrorDetailEntry > ErrorDetails
Definition: ErrorDetailManager.h:51
const ErrorDetailEntry * findRecord(Security::ErrorCode) const
Definition: ErrorDetailManager.cc:67
Definition: ErrorDetailManager.h:60
ErrorDetailsManager()
Definition: ErrorDetailManager.cc:90
ErrorDetailsList::Pointer getCachedDetails(const char *lang) const
Return cached error details list for a given language if exist.
Definition: ErrorDetailManager.cc:98
const ErrorDetailEntry * findDefaultDetail(Security::ErrorCode) const
Definition: ErrorDetailManager.cc:158
static ErrorDetailsManager * TheDetailsManager
An instance of ErrorDetailsManager to be used by squid (ssl/ErrorDetails.*)
Definition: ErrorDetailManager.h:92
void cacheDetails(const ErrorDetailsList::Pointer &errorDetails) const
cache the given error details list.
Definition: ErrorDetailManager.cc:111
ErrorDetailsList::Pointer theDefaultErrorDetails
the default error details list
Definition: ErrorDetailManager.h:89
const ErrorDetailEntry * findDetail(Security::ErrorCode value, const HttpRequest::Pointer &request) const
Definition: ErrorDetailManager.cc:120
std::map< std::string, ErrorDetailsList::Pointer > Cache
Definition: ErrorDetailManager.h:87
Definition: SquidString.h:26
int ErrorCode
Squid-defined error code (<0), an error code returned by X.509 API, or zero.
Definition: forward.h:132
Definition: Xaction.cc:40