summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
bace5c0)
Set as value of attribute 'timeout' in element 'zoom' of configuration.
tmp_file="/tmp/cf.XXXXXX.p"
/>
<log apdu="true"/>
tmp_file="/tmp/cf.XXXXXX.p"
/>
<log apdu="true"/>
</filter>
</filters>
<routes>
</filter>
</filters>
<routes>
std::string proxy;
xsltStylesheetPtr explain_xsp;
std::map<std::string,SearchablePtr> s_map;
std::string proxy;
xsltStylesheetPtr explain_xsp;
std::map<std::string,SearchablePtr> s_map;
+ std::string zoom_timeout;
}
yf::Zoom::Impl::Impl() :
}
yf::Zoom::Impl::Impl() :
- apdu_log(false), element_transform("pz2") , element_raw("raw")
+ apdu_log(false), element_transform("pz2") , element_raw("raw"),
+ zoom_timeout("40")
{
bibset = ccl_qual_mk();
{
bibset = ccl_qual_mk();
+ else if (!strcmp((const char *) ptr->name, "zoom"))
+ {
+ const struct _xmlAttr *attr;
+ for (attr = ptr->properties; attr; attr = attr->next)
+ {
+ if (!strcmp((const char *) attr->name, "timeout"))
+ zoom_timeout = mp::xml::get_text(attr->children);
+ else
+ throw mp::filter::FilterException(
+ "Bad attribute " + std::string((const char *)
+ attr->name));
+ }
+ }
else
{
throw mp::filter::FilterException
else
{
throw mp::filter::FilterException
if (sptr->query_encoding.length())
b->set_option("rpnCharset", sptr->query_encoding);
if (sptr->query_encoding.length())
b->set_option("rpnCharset", sptr->query_encoding);
- b->set_option("timeout", "40");
+ b->set_option("timeout", m_p->zoom_timeout.c_str());
if (m_p->apdu_log)
b->set_option("apdulog", "1");
if (m_p->apdu_log)
b->set_option("apdulog", "1");
}?,
element mp:log {
attribute apdu { xsd:boolean }?
}?,
element mp:log {
attribute apdu { xsd:boolean }?
+ }?,
+ element mp:zoom {
+ attribute timeout { xsd:integer }?