|
Squid Web Cache v8/master
|
#include <QueryParams.h>
Public Types | |
| typedef std::pair< String, QueryParam::Pointer > | Param |
| typedef std::vector< Param > | Params |
Public Member Functions | |
| QueryParam::Pointer | get (const String &name) const |
| returns query parameter by name | |
| void | pack (Ipc::TypedMsgHdr &msg) const |
| store params into msg | |
| void | unpack (const Ipc::TypedMsgHdr &msg) |
Static Public Member Functions | |
| static void | Parse (Parser::Tokenizer &, QueryParams &) |
| parses the query string parameters | |
Private Member Functions | |
| Params::const_iterator | find (const String &name) const |
| find query parameter by name | |
Static Private Member Functions | |
| static QueryParam::Pointer | CreateParam (QueryParam::Type aType) |
| creates a parameter of the specified type | |
Private Attributes | |
| Params | params |
Definition at line 25 of file QueryParams.h.
| typedef std::pair<String, QueryParam::Pointer> Mgr::QueryParams::Param |
Definition at line 28 of file QueryParams.h.
| typedef std::vector<Param> Mgr::QueryParams::Params |
Definition at line 29 of file QueryParams.h.
|
staticprivate |
Definition at line 145 of file QueryParams.cc.
References Mgr::QueryParam::ptInt, Mgr::QueryParam::ptString, and TexcHere.
|
private |
Definition at line 61 of file QueryParams.cc.
References String::caseCmp(), Must, and String::size().
Referenced by get().
| Mgr::QueryParam::Pointer Mgr::QueryParams::get | ( | const String & | name | ) | const |
Definition at line 23 of file QueryParams.cc.
References find(), Must, params, and String::size().
Referenced by Mgr::Inquirer::applyQueryParams().
| void Mgr::QueryParams::pack | ( | Ipc::TypedMsgHdr & | msg | ) | const |
Definition at line 31 of file QueryParams.cc.
References Must, Ipc::TypedMsgHdr::putInt(), and Ipc::TypedMsgHdr::putString().
|
static |
Syntax: query = [ param *( '&' param ) ] param = name '=' value name = [a-zA-Z0-9]+ value = *pchar | ( 1*DIGIT *( ',' 1*DIGIT ) )
Definition at line 112 of file QueryParams.cc.
References CharacterSet::ALPHA, CharacterSet::complement(), CharacterSet::DIGIT, Here, params, ParseParamValue(), and SBufToString().
Referenced by CacheManager::ParseUrl().
| void Mgr::QueryParams::unpack | ( | const Ipc::TypedMsgHdr & | msg | ) |
load params from msg
Definition at line 43 of file QueryParams.cc.
References Ipc::TypedMsgHdr::getInt(), Ipc::TypedMsgHdr::getPod(), Ipc::TypedMsgHdr::getString(), Must, and String::size().
|
private |
Definition at line 46 of file QueryParams.h.