Notes.h
Go to the documentation of this file.
89 bool match(HttpRequest *request, HttpReply *reply, const AccessLogEntryPointer &al, SBuf &matched);
91 void updateNotePairs(NotePairsPointer pairs, const CharacterSet *delimiters, const AccessLogEntryPointer &al);
117 explicit Notes(const char *aDescr, const Keys *extraReservedKeys = nullptr, bool allowFormatted = true);
#define RefCountable
The locking interface for use on Reference-Counted classes.
Definition: Lock.h:66
Definition: AccessLogEntry.h:41
optimized set of C chars, with quick membership test and merge support
Definition: CharacterSet.h:18
Definition: ConfigParser.h:46
Definition: Format.h:42
Definition: HttpReply.h:25
Definition: HttpRequest.h:49
MEMPROXY_CLASS(Entry)
Entry & operator=(const Entry &)=delete
Entry(const Entry &)=delete
Definition: Notes.h:173
void append(const NotePairs *src)
Append the entries of the src NotePairs list to our list.
Definition: Notes.cc:374
bool find(SBuf &resultNote, const char *noteKey, const char *sep=",") const
Definition: Notes.cc:272
NotePairs(NotePairs const &)=delete
const Entries & expandListEntries(const CharacterSet *delimiters) const
Definition: Notes.cc:346
void addStrList(const SBuf &key, const SBuf &values, const CharacterSet &delimiters)
Definition: Notes.cc:359
NotePairs & operator=(NotePairs const &)=delete
void replaceOrAddOrAppend(const NotePairs *src, const Names &appendables)
Definition: Notes.cc:390
SBuf theFormattedValue
The expanded value produced by format(), empty for non-quoted values.
Definition: Notes.h:67
Value(const Value &)=delete
ACLList * aclList
The access list used to determine if this value is valid for a request.
Definition: Notes.h:57
Value(const char *aVal, const bool quoted, const char *descr, const Method method=mhReplace)
Definition: Notes.cc:35
Value & operator=(const Value &)=delete
Definition: Notes.h:36
Value::Pointer addValue(const char *value, const bool quoted, const char *descr, const Value::Method m=Value::mhAppend)
Definition: Notes.cc:63
bool match(HttpRequest *request, HttpReply *reply, const AccessLogEntryPointer &al, SBuf &matched)
Definition: Notes.cc:70
void dump(StoreEntry *entry, const char *key)
Dump the single Note to the given StoreEntry object.
Definition: Notes.cc:108
Note(const Note &)=delete
Note & operator=(const Note &)=delete
void updateNotePairs(NotePairsPointer pairs, const CharacterSet *delimiters, const AccessLogEntryPointer &al)
Definition: Notes.cc:94
Definition: Notes.h:109
Note::Pointer parse(ConfigParser &parser)
Parses a notes line and returns a pointer to the parsed Note object.
Definition: Notes.cc:202
Notes()=default
void updateNotePairs(NotePairsPointer pairs, const CharacterSet *delimiters, const AccessLogEntryPointer &al)
Definition: Notes.cc:248
Notes & operator=(const Notes &)=delete
void dump(StoreEntry *entry, const char *name)
Dump the notes list to the given StoreEntry object.
Definition: Notes.cc:255
void banReservedKey(const SBuf &key, const Keys &banned) const
Makes sure the given key is not on the given list of banned names.
Definition: Notes.cc:177
Notes(const Notes &)=delete
void parseKvPair()
Parses an annotate line with "key=value" or "key+=value" formats.
Definition: Notes.cc:223
Definition: Store.h:42