Public Member Functions | |
virtual void | get (ResponsePtr response, const LLSD &context) const |
virtual bool | validate (const std::string &name, LLSD &context) const |
Definition at line 249 of file llhttpnode_tut.cpp.
virtual void tut::IntegerNode::get | ( | ResponsePtr | response, | |
const LLSD & | context | |||
) | const [inline, virtual] |
virtual bool tut::IntegerNode::validate | ( | const std::string & | name, | |
LLSD & | context | |||
) | const [inline, virtual] |
called only on wildcard nodes, to check if they will handle the name; default is false; overrides will want to check name, and return true if the name will construct to a valid url. For convenience, the getChild()
method above will automatically insert the name in context["request"]["wildcard"][key] if this method returns true. For example, the node "agent/<agent_id>/detail" will set context["request"]["wildcard"]["agent_id"] eqaul to the value found during traversal.
Reimplemented from LLHTTPNode.
Definition at line 265 of file llhttpnode_tut.cpp.
References n.