#include "apache_config.h"
Classes | |
class | ApacheOption |
Public Types | |
enum | RefererStatisticsOutputLevel { kFast, kSimple, kOrganized } |
Public Member Functions | |
ApacheConfig (const StringPiece &dir) | |
StringPiece | description () const |
void | set_description (const StringPiece &x) |
int64 | file_cache_clean_interval_ms () const |
void | set_file_cache_clean_interval_ms (int64 x) |
int64 | file_cache_clean_size_kb () const |
void | set_file_cache_clean_size_kb (int64 x) |
int64 | lru_cache_byte_limit () const |
void | set_lru_cache_byte_limit (int64 x) |
int64 | lru_cache_kb_per_process () const |
void | set_lru_cache_kb_per_process (int64 x) |
int64 | fetcher_time_out_ms () const |
void | set_fetcher_time_out_ms (int64 x) |
int64 | slurp_flush_limit () const |
void | set_slurp_flush_limit (int64 x) |
bool | use_shared_mem_locking () const |
void | set_use_shared_mem_locking (bool x) |
bool | collect_referer_statistics () const |
void | set_collect_referer_statistics (bool x) |
bool | hash_referer_statistics () const |
void | set_hash_referer_statistics (bool x) |
bool | statistics_enabled () const |
void | set_statistics_enabled (bool x) |
bool | slurp_read_only () const |
void | set_slurp_read_only (bool x) |
RefererStatisticsOutputLevel | referer_statistics_output_level () const |
void | set_referer_statistics_output_level (RefererStatisticsOutputLevel x) |
const GoogleString & | file_cache_path () const |
void | set_file_cache_path (GoogleString x) |
const GoogleString & | filename_prefix () const |
void | set_filename_prefix (GoogleString x) |
const GoogleString & | slurp_directory () const |
void | set_slurp_directory (GoogleString x) |
const GoogleString & | fetcher_proxy () const |
void | set_fetcher_proxy (GoogleString x) |
bool | test_proxy () const |
void | set_test_proxy (bool x) |
bool | slurping_enabled () const |
Helper functions. | |
bool | slurping_enabled_read_only () const |
virtual RewriteOptions * | Clone () const |
Make an identical copy of these options and return it. | |
virtual const char * | class_name () const |
Name of the actual type of this instance as a poor man's RTTI. | |
Static Public Member Functions | |
static bool | ParseRefererStatisticsOutputLevel (const StringPiece &in, RefererStatisticsOutputLevel *out) |
static const ApacheConfig * | DynamicCast (const RewriteOptions *instance) |
static ApacheConfig * | DynamicCast (RewriteOptions *instance) |
Static Public Attributes | |
static const char | kClassName [] |
Establishes a context for VirtualHosts and directory-scoped options, either via .htaccess or <Directory>...</Directory>.
StringPiece net_instaweb::ApacheConfig::description | ( | ) | const [inline] |
Human-readable description of what this configuration is for. This may be a directory, or a string indicating a combination of directives for multiple directories.
static const ApacheConfig* net_instaweb::ApacheConfig::DynamicCast | ( | const RewriteOptions * | instance | ) | [static] |
Returns a suitably down cast version of 'instance' if it is an instance of this class, NULL if not.
bool net_instaweb::ApacheConfig::test_proxy | ( | ) | const [inline] |
Controls whether we act as a rewriting proxy, fetching URLs from origin without managing a slurp dump.