| 342 | |
| 343 | |
| 344 | sWebAdminPage cWebAdmin::GetPage(const HTTPRequest & a_Request) |
| 345 | { |
| 346 | sWebAdminPage Page; |
| 347 | AStringVector Split = StringSplit(a_Request.Path, "/"); |
| 348 | |
| 349 | // Find the plugin that corresponds to the requested path |
| 350 | AString FoundPlugin; |
| 351 | if (Split.size() > 1) |
| 352 | { |
| 353 | for (PluginList::iterator itr = m_Plugins.begin(); itr != m_Plugins.end(); ++itr) |
| 354 | { |
| 355 | if ((*itr)->GetWebTitle() == Split[1]) |
| 356 | { |
| 357 | Page.Content = (*itr)->HandleWebRequest(&a_Request); |
| 358 | cWebPlugin * WebPlugin = *itr; |
| 359 | FoundPlugin = WebPlugin->GetWebTitle(); |
| 360 | AString TabName = WebPlugin->GetTabNameForRequest(&a_Request).first; |
| 361 | Page.PluginName = FoundPlugin; |
| 362 | Page.TabName = TabName; |
| 363 | break; |
| 364 | } |
| 365 | } |
| 366 | } |
| 367 | |
| 368 | // Return the page contents |
| 369 | return Page; |
| 370 | } |
| 371 | |
| 372 | |
| 373 |
nothing calls this directly
no test coverage detected