text
stringlengths 0
2.2M
|
---|
if(url.find("*")==std::string::npos && url.find("regex(")==std::string::npos)
|
{
|
normalizeUrl(name, url);
|
std::string fpath = tmplpath+file;
|
RegexUtil::replace(fpath,"[/]+","/");
|
std::string wbpi = fpath;
|
StringUtil::replaceFirst(wbpi, ConfigurationData::getInstance()->coreServerProperties.webPath, "");
|
RegexUtil::replace(wbpi,"[^a-zA-Z0-9_]+","");
|
ConfigurationData::getInstance()->templateMappingMap[name][url] = clas+";"+wbpi;
|
tpes[fpath] = name;
|
//tpes.push_back(defpath+tmplts.at(tmpn).getAttribute("file"));
|
std::string scope = tmplts.at(tmpn).getAttribute("scope");
|
if(clas!="")
|
{
|
Bean bean(clas,"",clas,scope,false,false,name);
|
ConfigurationData::getInstance()->ffeadContext.addBean(bean);
|
}
|
logger << ("Adding Template for " + (url) + " :: " + clas) << std::endl;
|
}
|
else
|
{
|
logger << ("Skipping Template as path contains */regex function") << std::endl;
|
}
|
}
|
}
|
}
|
else if(eles.at(apps).getTagName()=="dynamic-cpp-pages")
|
{
|
ElementList dycpppgs = eles.at(apps).getChildElements();
|
for (unsigned int tmpn = 0; tmpn < dycpppgs.size(); tmpn++)
|
{
|
if(dycpppgs.at(tmpn).getTagName()=="dynamic-cpp-page")
|
{
|
std::string url = StringUtil::trimCopy(dycpppgs.at(tmpn).getAttribute("path"));
|
std::string file = StringUtil::trimCopy(dycpppgs.at(tmpn).getAttribute("file"));
|
if(url.find("*")==std::string::npos && url.find("regex(")==std::string::npos)
|
{
|
normalizeUrl(name, url);
|
std::string fpath = dcppath+file;
|
RegexUtil::replace(fpath,"[/]+","/");
|
if(dcps.find(fpath)!=dcps.end())
|
{
|
std::string wbpi = fpath;
|
StringUtil::replaceFirst(wbpi, ConfigurationData::getInstance()->coreServerProperties.webPath, "");
|
RegexUtil::replace(wbpi,"[^a-zA-Z0-9_]+","");
|
ConfigurationData::getInstance()->dcpMappingMap[name][url] = wbpi;
|
logger << ("Adding Dynamic C++ Page for " + (url) + " :: " + fpath) << std::endl;
|
}
|
else
|
{
|
logger << ("Could not find Dynamic C++ Page for " + (url) + " :: " + fpath) << std::endl;
|
}
|
}
|
else
|
{
|
logger << ("Skipping Template as path contains */regex function") << std::endl;
|
}
|
}
|
}
|
}
|
else if(eles.at(apps).getTagName()=="web-socket-handlers")
|
{
|
ElementList tmplts = eles.at(apps).getChildElements();
|
for (unsigned int tmpn = 0; tmpn < tmplts.size(); tmpn++)
|
{
|
if(tmplts.at(tmpn).getTagName()=="web-socket-handler")
|
{
|
std::string clas = tmplts.at(tmpn).getAttribute("class");
|
std::string url = StringUtil::trimCopy(tmplts.at(tmpn).getAttribute("path"));
|
if(url.find("*")==std::string::npos && url.find("regex(")==std::string::npos)
|
{
|
normalizeUrl(name, url);
|
ConfigurationData::getInstance()->websocketMappingMap[name][url] = clas;
|
std::string scope = tmplts.at(tmpn).getAttribute("scope");
|
if(clas!="")
|
{
|
Bean bean(clas,"",clas,scope,false,false,name);
|
ConfigurationData::getInstance()->ffeadContext.addBean(bean);
|
}
|
logger << ("Adding WebSocketHandler for " + (url) + " :: " + clas) << std::endl;
|
}
|
else
|
{
|
logger << ("Skipping WebSocketHandler as path contains */regex function") << std::endl;
|
}
|
}
|
}
|
}
|
#ifdef INC_DVIEW
|
else if(eles.at(apps).getTagName()=="dviews")
|
{
|
ElementList dvs = eles.at(apps).getChildElements();
|
for (unsigned int dn = 0; dn < dvs.size(); dn++)
|
{
|
if(dvs.at(dn).getTagName()=="dview")
|
{
|
std::string url = dvs.at(dn).getAttribute("path");
|
normalizeUrl(name, url);
|
std::string clas = dvs.at(dn).getAttribute("class");
|
ConfigurationData::getInstance()->viewMappingMap[name][url] = clas;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.