Fixed bad cache because missing pathinfo parameters.
This commit is contained in:
parent
e9e5bcebd7
commit
f7eafcf23f
23 changed files with 314 additions and 281 deletions
|
@ -64,18 +64,19 @@ public class CategoryPage extends HttpServlet
|
||||||
{
|
{
|
||||||
logger.info("PAGE Federation > Categories > Category");
|
logger.info("PAGE Federation > Categories > Category");
|
||||||
|
|
||||||
String html = StatoolInfosWeb.instance().getHtmlCache().get(this.getClass().getCanonicalName());
|
// Get parameters.
|
||||||
|
// ===============
|
||||||
|
|
||||||
|
// Use parameters.
|
||||||
|
// ===============
|
||||||
|
Federation federation = StatoolInfosWeb.instance().getFederation();
|
||||||
|
UptimeJournal uptimes = StatoolInfosWeb.instance().getUptimeJournal();
|
||||||
|
Category category = StatoolInfosWeb.instance().getCategoryFromPathinfo(request.getPathInfo());
|
||||||
|
|
||||||
|
String key = this.getClass().getCanonicalName() + "?category=" + category.getTechnicalName();
|
||||||
|
String html = StatoolInfosWeb.instance().getHtmlCache().get(key);
|
||||||
if (html == null)
|
if (html == null)
|
||||||
{
|
{
|
||||||
// Get parameters.
|
|
||||||
// ===============
|
|
||||||
|
|
||||||
// Use parameters.
|
|
||||||
// ===============
|
|
||||||
Federation federation = StatoolInfosWeb.instance().getFederation();
|
|
||||||
UptimeJournal uptimes = StatoolInfosWeb.instance().getUptimeJournal();
|
|
||||||
Category category = StatoolInfosWeb.instance().getCategoryFromPathinfo(request.getPathInfo());
|
|
||||||
|
|
||||||
// Send response.
|
// Send response.
|
||||||
// ==============
|
// ==============
|
||||||
String headerView = FederationHeaderView.htmlize(federation, uptimes);
|
String headerView = FederationHeaderView.htmlize(federation, uptimes);
|
||||||
|
@ -89,7 +90,7 @@ public class CategoryPage extends HttpServlet
|
||||||
trail.add(category.getName(), "/federation/categories/" + category.getTechnicalName() + ".xhtml");
|
trail.add(category.getName(), "/federation/categories/" + category.getTechnicalName() + ".xhtml");
|
||||||
|
|
||||||
html = WebCharterView.build(headerView, contentView, trail);
|
html = WebCharterView.build(headerView, contentView, trail);
|
||||||
StatoolInfosWeb.instance().getHtmlCache().put(this.getClass().getCanonicalName(), html);
|
StatoolInfosWeb.instance().getHtmlCache().put(key, html);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Display page.
|
// Display page.
|
||||||
|
@ -123,7 +124,7 @@ public class CategoryPage extends HttpServlet
|
||||||
|
|
||||||
TagDataManager data = new TagDataManager();
|
TagDataManager data = new TagDataManager();
|
||||||
|
|
||||||
data.setAttribute("categoryLogo", "src", category.getLogoPath());
|
data.setAttribute("categoryLogo", "src", "/commons/categories/" + category.getLogoPath());
|
||||||
data.setEscapedContent("categoryName", category.getName());
|
data.setEscapedContent("categoryName", category.getName());
|
||||||
data.setEscapedContent("categoryDescription", category.getDescription());
|
data.setEscapedContent("categoryDescription", category.getDescription());
|
||||||
data.setEscapedContent("categorySoftwares", category.getSoftwares().sort().toStringWithFrenchCommas());
|
data.setEscapedContent("categorySoftwares", category.getSoftwares().sort().toStringWithFrenchCommas());
|
||||||
|
|
|
@ -128,7 +128,8 @@ public class IndexPage extends HttpServlet
|
||||||
data.setEscapedContent("categoryListLine", index, "categoryListLineNameValue", stat.getCategory().getName());
|
data.setEscapedContent("categoryListLine", index, "categoryListLineNameValue", stat.getCategory().getName());
|
||||||
data.setAttribute("categoryListLine", index, "categoryListLineNameLink", "href", stat.getCategory().getTechnicalName() + ".xhtml");
|
data.setAttribute("categoryListLine", index, "categoryListLineNameLink", "href", stat.getCategory().getTechnicalName() + ".xhtml");
|
||||||
data.setAttribute("categoryListLine", index, "categoryListLineNameLink", "title", stat.getCategory().getDescription());
|
data.setAttribute("categoryListLine", index, "categoryListLineNameLink", "title", stat.getCategory().getDescription());
|
||||||
data.setAttribute("categoryListLine", index, "categoryListLineNameLogo", "src", stat.getCategory().getLogoPath());
|
data.setAttribute("categoryListLine", index, "categoryListLineNameLogo", "src",
|
||||||
|
"/commons/categories/" + stat.getCategory().getLogoPath());
|
||||||
|
|
||||||
data.setEscapedContent("categoryListLine", index, "categoryListLineSoftwares",
|
data.setEscapedContent("categoryListLine", index, "categoryListLineSoftwares",
|
||||||
stat.getCategory().getSoftwares().sort().toStringWithFrenchCommas());
|
stat.getCategory().getSoftwares().sort().toStringWithFrenchCommas());
|
||||||
|
|
|
@ -56,19 +56,20 @@ public class CrawlPage extends HttpServlet
|
||||||
{
|
{
|
||||||
logger.info("PAGE Organization > Crawl");
|
logger.info("PAGE Organization > Crawl");
|
||||||
|
|
||||||
String html = StatoolInfosWeb.instance().getHtmlCache().get(this.getClass().getCanonicalName());
|
// Get parameters.
|
||||||
|
// ===============
|
||||||
|
|
||||||
|
// Use parameters.
|
||||||
|
// ===============
|
||||||
|
Organization organization = StatoolInfosWeb.instance().getOrganizationFromPathinfo(request.getPathInfo());
|
||||||
|
UptimeJournal uptimes = StatoolInfosWeb.instance().getUptimeJournal();
|
||||||
|
|
||||||
|
// Send response.
|
||||||
|
// ==============
|
||||||
|
String key = this.getClass().getCanonicalName() + "?organization=" + organization.getTechnicalName();
|
||||||
|
String html = StatoolInfosWeb.instance().getHtmlCache().get(key);
|
||||||
if (html == null)
|
if (html == null)
|
||||||
{
|
{
|
||||||
// Get parameters.
|
|
||||||
// ===============
|
|
||||||
|
|
||||||
// Use parameters.
|
|
||||||
// ===============
|
|
||||||
Organization organization = StatoolInfosWeb.instance().getOrganizationFromPathinfo(request.getPathInfo());
|
|
||||||
UptimeJournal uptimes = StatoolInfosWeb.instance().getUptimeJournal();
|
|
||||||
|
|
||||||
// Send response.
|
|
||||||
// ==============
|
|
||||||
String headerView = OrganizationHeaderView.htmlize(organization, uptimes);
|
String headerView = OrganizationHeaderView.htmlize(organization, uptimes);
|
||||||
String contentView = CrawlView.htmlize(organization.getCrawlJournal());
|
String contentView = CrawlView.htmlize(organization.getCrawlJournal());
|
||||||
|
|
||||||
|
@ -79,7 +80,7 @@ public class CrawlPage extends HttpServlet
|
||||||
trail.add("Journal", "/federation/organizations/" + organization.getTechnicalName() + "/crawl.xhtml");
|
trail.add("Journal", "/federation/organizations/" + organization.getTechnicalName() + "/crawl.xhtml");
|
||||||
|
|
||||||
html = WebCharterView.build(headerView, contentView, trail);
|
html = WebCharterView.build(headerView, contentView, trail);
|
||||||
StatoolInfosWeb.instance().getHtmlCache().put(this.getClass().getCanonicalName(), html);
|
StatoolInfosWeb.instance().getHtmlCache().put(key, html);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Display page.
|
// Display page.
|
||||||
|
|
|
@ -56,19 +56,20 @@ public class PropertyAlertPage extends HttpServlet
|
||||||
{
|
{
|
||||||
logger.info("PAGE Organization > PropertyAlert");
|
logger.info("PAGE Organization > PropertyAlert");
|
||||||
|
|
||||||
String html = StatoolInfosWeb.instance().getHtmlCache().get(this.getClass().getCanonicalName());
|
// Get parameters.
|
||||||
|
// ===============
|
||||||
|
|
||||||
|
// Use parameters.
|
||||||
|
// ===============
|
||||||
|
Organization organization = StatoolInfosWeb.instance().getOrganizationFromPathinfo(request.getPathInfo());
|
||||||
|
UptimeJournal uptimes = StatoolInfosWeb.instance().getUptimeJournal();
|
||||||
|
|
||||||
|
// Send response.
|
||||||
|
// ==============
|
||||||
|
String key = this.getClass().getCanonicalName() + "?organization=" + organization.getTechnicalName();
|
||||||
|
String html = StatoolInfosWeb.instance().getHtmlCache().get(key);
|
||||||
if (html == null)
|
if (html == null)
|
||||||
{
|
{
|
||||||
// Get parameters.
|
|
||||||
// ===============
|
|
||||||
|
|
||||||
// Use parameters.
|
|
||||||
// ===============
|
|
||||||
Organization organization = StatoolInfosWeb.instance().getOrganizationFromPathinfo(request.getPathInfo());
|
|
||||||
UptimeJournal uptimes = StatoolInfosWeb.instance().getUptimeJournal();
|
|
||||||
|
|
||||||
// Send response.
|
|
||||||
// ==============
|
|
||||||
String headerView = OrganizationHeaderView.htmlize(organization, uptimes);
|
String headerView = OrganizationHeaderView.htmlize(organization, uptimes);
|
||||||
String contentView = PropertyAlertView.htmlize(organization.getInputChecksAll().getAlertLines());
|
String contentView = PropertyAlertView.htmlize(organization.getInputChecksAll().getAlertLines());
|
||||||
|
|
||||||
|
@ -79,7 +80,7 @@ public class PropertyAlertPage extends HttpServlet
|
||||||
trail.add("Alertes", "/federation/organizations/" + organization.getTechnicalName() + "/propertyAlert.xhtml");
|
trail.add("Alertes", "/federation/organizations/" + organization.getTechnicalName() + "/propertyAlert.xhtml");
|
||||||
|
|
||||||
html = WebCharterView.build(headerView, contentView, trail);
|
html = WebCharterView.build(headerView, contentView, trail);
|
||||||
StatoolInfosWeb.instance().getHtmlCache().put(this.getClass().getCanonicalName(), html);
|
StatoolInfosWeb.instance().getHtmlCache().put(key, html);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Display page.
|
// Display page.
|
||||||
|
|
|
@ -56,19 +56,20 @@ public class PropertyCheckPage extends HttpServlet
|
||||||
{
|
{
|
||||||
logger.info("PAGE Organization > PropertyCheck");
|
logger.info("PAGE Organization > PropertyCheck");
|
||||||
|
|
||||||
String html = StatoolInfosWeb.instance().getHtmlCache().get(this.getClass().getCanonicalName());
|
// Get parameters.
|
||||||
|
// ===============
|
||||||
|
|
||||||
|
// Use parameters.
|
||||||
|
// ===============
|
||||||
|
Organization organization = StatoolInfosWeb.instance().getOrganizationFromPathinfo(request.getPathInfo());
|
||||||
|
UptimeJournal uptimes = StatoolInfosWeb.instance().getUptimeJournal();
|
||||||
|
|
||||||
|
// Send response.
|
||||||
|
// ==============
|
||||||
|
String key = this.getClass().getCanonicalName() + "?organization=" + organization.getTechnicalName();
|
||||||
|
String html = StatoolInfosWeb.instance().getHtmlCache().get(key);
|
||||||
if (html == null)
|
if (html == null)
|
||||||
{
|
{
|
||||||
// Get parameters.
|
|
||||||
// ===============
|
|
||||||
|
|
||||||
// Use parameters.
|
|
||||||
// ===============
|
|
||||||
Organization organization = StatoolInfosWeb.instance().getOrganizationFromPathinfo(request.getPathInfo());
|
|
||||||
UptimeJournal uptimes = StatoolInfosWeb.instance().getUptimeJournal();
|
|
||||||
|
|
||||||
// Send response.
|
|
||||||
// ==============
|
|
||||||
String headerView = OrganizationHeaderView.htmlize(organization, uptimes);
|
String headerView = OrganizationHeaderView.htmlize(organization, uptimes);
|
||||||
String contentView = PropertyCheckView.htmlize(organization.getInputChecks());
|
String contentView = PropertyCheckView.htmlize(organization.getInputChecks());
|
||||||
|
|
||||||
|
|
|
@ -56,19 +56,20 @@ public class ServicesPage extends HttpServlet
|
||||||
{
|
{
|
||||||
logger.info("PAGE Organization > Services");
|
logger.info("PAGE Organization > Services");
|
||||||
|
|
||||||
String html = StatoolInfosWeb.instance().getHtmlCache().get(this.getClass().getCanonicalName());
|
// Get parameters.
|
||||||
|
// ===============
|
||||||
|
|
||||||
|
// Use parameters.
|
||||||
|
// ===============
|
||||||
|
Organization organization = StatoolInfosWeb.instance().getOrganizationFromPathinfo(request.getPathInfo());
|
||||||
|
|
||||||
|
// Send response.
|
||||||
|
// ==============
|
||||||
|
String key = this.getClass().getCanonicalName() + "?organization=" + organization.getTechnicalName();
|
||||||
|
String html = StatoolInfosWeb.instance().getHtmlCache().get(key);
|
||||||
if (html == null)
|
if (html == null)
|
||||||
{
|
{
|
||||||
// Get parameters.
|
|
||||||
// ===============
|
|
||||||
|
|
||||||
// Use parameters.
|
|
||||||
// ===============
|
|
||||||
Organization organization = StatoolInfosWeb.instance().getOrganizationFromPathinfo(request.getPathInfo());
|
|
||||||
UptimeJournal uptimes = StatoolInfosWeb.instance().getUptimeJournal();
|
UptimeJournal uptimes = StatoolInfosWeb.instance().getUptimeJournal();
|
||||||
|
|
||||||
// Send response.
|
|
||||||
// ==============
|
|
||||||
String headerView = OrganizationHeaderView.htmlize(organization, uptimes);
|
String headerView = OrganizationHeaderView.htmlize(organization, uptimes);
|
||||||
String contentView = ServiceListView.htmlize(organization.getServices());
|
String contentView = ServiceListView.htmlize(organization.getServices());
|
||||||
|
|
||||||
|
|
|
@ -64,19 +64,20 @@ public class StatsPage extends HttpServlet
|
||||||
{
|
{
|
||||||
logger.info("PAGE Organization > Stats");
|
logger.info("PAGE Organization > Stats");
|
||||||
|
|
||||||
String html = StatoolInfosWeb.instance().getHtmlCache().get(this.getClass().getCanonicalName());
|
// Get parameters.
|
||||||
|
// ===============
|
||||||
|
|
||||||
|
// Use parameters.
|
||||||
|
// ===============
|
||||||
|
Organization organization = StatoolInfosWeb.instance().getOrganizationFromPathinfo(request.getPathInfo());
|
||||||
|
UptimeJournal uptimes = StatoolInfosWeb.instance().getUptimeJournal();
|
||||||
|
|
||||||
|
// Send response.
|
||||||
|
// ==============
|
||||||
|
String key = this.getClass().getCanonicalName() + "?organization=" + organization.getTechnicalName();
|
||||||
|
String html = StatoolInfosWeb.instance().getHtmlCache().get(key);
|
||||||
if (html == null)
|
if (html == null)
|
||||||
{
|
{
|
||||||
// Get parameters.
|
|
||||||
// ===============
|
|
||||||
|
|
||||||
// Use parameters.
|
|
||||||
// ===============
|
|
||||||
Organization organization = StatoolInfosWeb.instance().getOrganizationFromPathinfo(request.getPathInfo());
|
|
||||||
UptimeJournal uptimes = StatoolInfosWeb.instance().getUptimeJournal();
|
|
||||||
|
|
||||||
// Send response.
|
|
||||||
// ==============
|
|
||||||
String headerView = OrganizationHeaderView.htmlize(organization, uptimes);
|
String headerView = OrganizationHeaderView.htmlize(organization, uptimes);
|
||||||
String contentView = htmlize(organization);
|
String contentView = htmlize(organization);
|
||||||
|
|
||||||
|
|
|
@ -56,19 +56,20 @@ public class UptimePage extends HttpServlet
|
||||||
{
|
{
|
||||||
logger.info("PAGE Organization > Uptime");
|
logger.info("PAGE Organization > Uptime");
|
||||||
|
|
||||||
String html = StatoolInfosWeb.instance().getHtmlCache().get(this.getClass().getCanonicalName());
|
// Get parameters.
|
||||||
|
// ===============
|
||||||
|
|
||||||
|
// Use parameters.
|
||||||
|
// ===============
|
||||||
|
Organization organization = StatoolInfosWeb.instance().getOrganizationFromPathinfo(request.getPathInfo());
|
||||||
|
UptimeJournal uptimes = StatoolInfosWeb.instance().getUptimeJournal();
|
||||||
|
|
||||||
|
// Send response.
|
||||||
|
// ==============
|
||||||
|
String key = this.getClass().getCanonicalName() + "?organization=" + organization.getTechnicalName();
|
||||||
|
String html = StatoolInfosWeb.instance().getHtmlCache().get(key);
|
||||||
if (html == null)
|
if (html == null)
|
||||||
{
|
{
|
||||||
// Get parameters.
|
|
||||||
// ===============
|
|
||||||
|
|
||||||
// Use parameters.
|
|
||||||
// ===============
|
|
||||||
Organization organization = StatoolInfosWeb.instance().getOrganizationFromPathinfo(request.getPathInfo());
|
|
||||||
UptimeJournal uptimes = StatoolInfosWeb.instance().getUptimeJournal();
|
|
||||||
|
|
||||||
// Send response.
|
|
||||||
// ==============
|
|
||||||
String headerView = OrganizationHeaderView.htmlize(organization, uptimes);
|
String headerView = OrganizationHeaderView.htmlize(organization, uptimes);
|
||||||
String contentView = UptimeView.htmlize(organization.getServices(), uptimes);
|
String contentView = UptimeView.htmlize(organization.getServices(), uptimes);
|
||||||
|
|
||||||
|
|
|
@ -66,21 +66,22 @@ public class MetricGenericPage extends HttpServlet
|
||||||
{
|
{
|
||||||
logger.info("PAGE Organization > Metrics > Summary");
|
logger.info("PAGE Organization > Metrics > Summary");
|
||||||
|
|
||||||
String html = StatoolInfosWeb.instance().getHtmlCache().get(this.getClass().getCanonicalName());
|
// Get parameters.
|
||||||
|
// ===============
|
||||||
|
|
||||||
|
// Use parameters.
|
||||||
|
// ===============
|
||||||
|
Organization organization = StatoolInfosWeb.instance().getOrganizationFromPathinfo(request.getPathInfo());
|
||||||
|
UptimeJournal uptimes = StatoolInfosWeb.instance().getUptimeJournal();
|
||||||
|
ViewMenu viewMenu = ViewMenu.valueFrom(request.getParameter("view"));
|
||||||
|
PeriodMenu periodMenu = PeriodMenu.valueFrom(request.getParameter("period"));
|
||||||
|
|
||||||
|
// Send response.
|
||||||
|
// ==============
|
||||||
|
String key = this.getClass().getCanonicalName() + "?organization=" + organization.getTechnicalName();
|
||||||
|
String html = StatoolInfosWeb.instance().getHtmlCache().get(key);
|
||||||
if (html == null)
|
if (html == null)
|
||||||
{
|
{
|
||||||
// Get parameters.
|
|
||||||
// ===============
|
|
||||||
|
|
||||||
// Use parameters.
|
|
||||||
// ===============
|
|
||||||
Organization organization = StatoolInfosWeb.instance().getOrganizationFromPathinfo(request.getPathInfo());
|
|
||||||
UptimeJournal uptimes = StatoolInfosWeb.instance().getUptimeJournal();
|
|
||||||
ViewMenu viewMenu = ViewMenu.valueFrom(request.getParameter("view"));
|
|
||||||
PeriodMenu periodMenu = PeriodMenu.valueFrom(request.getParameter("period"));
|
|
||||||
|
|
||||||
// Send response.
|
|
||||||
// ==============
|
|
||||||
String headerView = OrganizationHeaderView.htmlize(organization, uptimes);
|
String headerView = OrganizationHeaderView.htmlize(organization, uptimes);
|
||||||
String contentView = htmlize(organization, viewMenu, periodMenu);
|
String contentView = htmlize(organization, viewMenu, periodMenu);
|
||||||
|
|
||||||
|
|
|
@ -64,21 +64,22 @@ public class MetricSpecificPage extends HttpServlet
|
||||||
{
|
{
|
||||||
logger.info("PAGE Organization > Metrics > Specific");
|
logger.info("PAGE Organization > Metrics > Specific");
|
||||||
|
|
||||||
String html = StatoolInfosWeb.instance().getHtmlCache().get(this.getClass().getCanonicalName());
|
// Get parameters.
|
||||||
|
// ===============
|
||||||
|
|
||||||
|
// Use parameters.
|
||||||
|
// ===============
|
||||||
|
Organization organization = StatoolInfosWeb.instance().getOrganizationFromPathinfo(request.getPathInfo());
|
||||||
|
UptimeJournal uptimes = StatoolInfosWeb.instance().getUptimeJournal();
|
||||||
|
ViewMenu viewMenu = ViewMenu.valueFrom(request.getParameter("view"));
|
||||||
|
PeriodMenu periodMenu = PeriodMenu.valueFrom(request.getParameter("period"));
|
||||||
|
|
||||||
|
// Send response.
|
||||||
|
// ==============
|
||||||
|
String key = this.getClass().getCanonicalName() + "?organization=" + organization.getTechnicalName();
|
||||||
|
String html = StatoolInfosWeb.instance().getHtmlCache().get(key);
|
||||||
if (html == null)
|
if (html == null)
|
||||||
{
|
{
|
||||||
// Get parameters.
|
|
||||||
// ===============
|
|
||||||
|
|
||||||
// Use parameters.
|
|
||||||
// ===============
|
|
||||||
Organization organization = StatoolInfosWeb.instance().getOrganizationFromPathinfo(request.getPathInfo());
|
|
||||||
UptimeJournal uptimes = StatoolInfosWeb.instance().getUptimeJournal();
|
|
||||||
ViewMenu viewMenu = ViewMenu.valueFrom(request.getParameter("view"));
|
|
||||||
PeriodMenu periodMenu = PeriodMenu.valueFrom(request.getParameter("period"));
|
|
||||||
|
|
||||||
// Send response.
|
|
||||||
// ==============
|
|
||||||
String headerView = OrganizationHeaderView.htmlize(organization, uptimes);
|
String headerView = OrganizationHeaderView.htmlize(organization, uptimes);
|
||||||
String contentView = htmlize(organization, viewMenu, periodMenu);
|
String contentView = htmlize(organization, viewMenu, periodMenu);
|
||||||
|
|
||||||
|
|
|
@ -66,21 +66,22 @@ public class MetricSummaryPage extends HttpServlet
|
||||||
{
|
{
|
||||||
logger.info("PAGE Organization > Metrics > Summary");
|
logger.info("PAGE Organization > Metrics > Summary");
|
||||||
|
|
||||||
String html = StatoolInfosWeb.instance().getHtmlCache().get(this.getClass().getCanonicalName());
|
// Get parameters.
|
||||||
|
// ===============
|
||||||
|
|
||||||
|
// Use parameters.
|
||||||
|
// ===============
|
||||||
|
Organization organization = StatoolInfosWeb.instance().getOrganizationFromPathinfo(request.getPathInfo());
|
||||||
|
UptimeJournal uptimes = StatoolInfosWeb.instance().getUptimeJournal();
|
||||||
|
ViewMenu viewMenu = ViewMenu.valueFrom(request.getParameter("view"));
|
||||||
|
PeriodMenu periodMenu = PeriodMenu.valueFrom(request.getParameter("period"));
|
||||||
|
|
||||||
|
// Send response.
|
||||||
|
// ==============
|
||||||
|
String key = this.getClass().getCanonicalName() + "?organization=" + organization.getTechnicalName();
|
||||||
|
String html = StatoolInfosWeb.instance().getHtmlCache().get(key);
|
||||||
if (html == null)
|
if (html == null)
|
||||||
{
|
{
|
||||||
// Get parameters.
|
|
||||||
// ===============
|
|
||||||
|
|
||||||
// Use parameters.
|
|
||||||
// ===============
|
|
||||||
Organization organization = StatoolInfosWeb.instance().getOrganizationFromPathinfo(request.getPathInfo());
|
|
||||||
UptimeJournal uptimes = StatoolInfosWeb.instance().getUptimeJournal();
|
|
||||||
ViewMenu viewMenu = ViewMenu.valueFrom(request.getParameter("view"));
|
|
||||||
PeriodMenu periodMenu = PeriodMenu.valueFrom(request.getParameter("period"));
|
|
||||||
|
|
||||||
// Send response.
|
|
||||||
// ==============
|
|
||||||
String headerView = OrganizationHeaderView.htmlize(organization, uptimes);
|
String headerView = OrganizationHeaderView.htmlize(organization, uptimes);
|
||||||
String contentView = htmlize(organization, viewMenu, periodMenu);
|
String contentView = htmlize(organization, viewMenu, periodMenu);
|
||||||
|
|
||||||
|
|
|
@ -65,21 +65,22 @@ public class MetricWebPage extends HttpServlet
|
||||||
{
|
{
|
||||||
logger.info("PAGE Organization > Metrics > Web");
|
logger.info("PAGE Organization > Metrics > Web");
|
||||||
|
|
||||||
String html = StatoolInfosWeb.instance().getHtmlCache().get(this.getClass().getCanonicalName());
|
// Get parameters.
|
||||||
|
// ===============
|
||||||
|
|
||||||
|
// Use parameters.
|
||||||
|
// ===============
|
||||||
|
Organization organization = StatoolInfosWeb.instance().getOrganizationFromPathinfo(request.getPathInfo());
|
||||||
|
UptimeJournal uptimes = StatoolInfosWeb.instance().getUptimeJournal();
|
||||||
|
ViewMenu viewMenu = ViewMenu.valueFrom(request.getParameter("view"));
|
||||||
|
PeriodMenu periodMenu = PeriodMenu.valueFrom(request.getParameter("period"));
|
||||||
|
|
||||||
|
// Send response.
|
||||||
|
// ==============
|
||||||
|
String key = this.getClass().getCanonicalName() + "?organization=" + organization.getTechnicalName();
|
||||||
|
String html = StatoolInfosWeb.instance().getHtmlCache().get(key);
|
||||||
if (html == null)
|
if (html == null)
|
||||||
{
|
{
|
||||||
// Get parameters.
|
|
||||||
// ===============
|
|
||||||
|
|
||||||
// Use parameters.
|
|
||||||
// ===============
|
|
||||||
Organization organization = StatoolInfosWeb.instance().getOrganizationFromPathinfo(request.getPathInfo());
|
|
||||||
UptimeJournal uptimes = StatoolInfosWeb.instance().getUptimeJournal();
|
|
||||||
ViewMenu viewMenu = ViewMenu.valueFrom(request.getParameter("view"));
|
|
||||||
PeriodMenu periodMenu = PeriodMenu.valueFrom(request.getParameter("period"));
|
|
||||||
|
|
||||||
// Send response.
|
|
||||||
// ==============
|
|
||||||
String headerView = OrganizationHeaderView.htmlize(organization, uptimes);
|
String headerView = OrganizationHeaderView.htmlize(organization, uptimes);
|
||||||
String contentView = htmlize(organization, viewMenu, periodMenu);
|
String contentView = htmlize(organization, viewMenu, periodMenu);
|
||||||
|
|
||||||
|
|
|
@ -57,20 +57,22 @@ public class CrawlPage extends HttpServlet
|
||||||
{
|
{
|
||||||
logger.info("PAGE Service > Crawl");
|
logger.info("PAGE Service > Crawl");
|
||||||
|
|
||||||
String html = StatoolInfosWeb.instance().getHtmlCache().get(this.getClass().getCanonicalName());
|
// Get parameters.
|
||||||
|
// ===============
|
||||||
|
|
||||||
|
// Use parameters.
|
||||||
|
// ===============
|
||||||
|
Service service = StatoolInfosWeb.instance().getServiceFromPathinfo(request.getPathInfo());
|
||||||
|
Organization organization = service.getOrganization();
|
||||||
|
UptimeJournal uptimeJournal = StatoolInfosWeb.instance().getUptimeJournal();
|
||||||
|
|
||||||
|
// Send response.
|
||||||
|
// ==============
|
||||||
|
String key = this.getClass().getCanonicalName() + "?organization=" + organization.getTechnicalName() + "&service="
|
||||||
|
+ service.getTechnicalName();
|
||||||
|
String html = StatoolInfosWeb.instance().getHtmlCache().get(key);
|
||||||
if (html == null)
|
if (html == null)
|
||||||
{
|
{
|
||||||
// Get parameters.
|
|
||||||
// ===============
|
|
||||||
|
|
||||||
// Use parameters.
|
|
||||||
// ===============
|
|
||||||
Service service = StatoolInfosWeb.instance().getServiceFromPathinfo(request.getPathInfo());
|
|
||||||
Organization organization = service.getOrganization();
|
|
||||||
UptimeJournal uptimeJournal = StatoolInfosWeb.instance().getUptimeJournal();
|
|
||||||
|
|
||||||
// Send response.
|
|
||||||
// ==============
|
|
||||||
String headerView = ServiceHeaderView.htmlize(service, uptimeJournal);
|
String headerView = ServiceHeaderView.htmlize(service, uptimeJournal);
|
||||||
String contentView = CrawlView.htmlize(service.getCrawlJournal());
|
String contentView = CrawlView.htmlize(service.getCrawlJournal());
|
||||||
|
|
||||||
|
|
|
@ -57,20 +57,22 @@ public class PropertyAlertPage extends HttpServlet
|
||||||
{
|
{
|
||||||
logger.info("PAGE Service > PropertyAlert");
|
logger.info("PAGE Service > PropertyAlert");
|
||||||
|
|
||||||
String html = StatoolInfosWeb.instance().getHtmlCache().get(this.getClass().getCanonicalName());
|
// Get parameters.
|
||||||
|
// ===============
|
||||||
|
|
||||||
|
// Use parameters.
|
||||||
|
// ===============
|
||||||
|
Service service = StatoolInfosWeb.instance().getServiceFromPathinfo(request.getPathInfo());
|
||||||
|
Organization organization = service.getOrganization();
|
||||||
|
UptimeJournal uptimeJournal = StatoolInfosWeb.instance().getUptimeJournal();
|
||||||
|
|
||||||
|
// Send response.
|
||||||
|
// ==============
|
||||||
|
String key = this.getClass().getCanonicalName() + "?organization=" + organization.getTechnicalName() + "&service="
|
||||||
|
+ service.getTechnicalName();
|
||||||
|
String html = StatoolInfosWeb.instance().getHtmlCache().get(key);
|
||||||
if (html == null)
|
if (html == null)
|
||||||
{
|
{
|
||||||
// Get parameters.
|
|
||||||
// ===============
|
|
||||||
|
|
||||||
// Use parameters.
|
|
||||||
// ===============
|
|
||||||
Service service = StatoolInfosWeb.instance().getServiceFromPathinfo(request.getPathInfo());
|
|
||||||
Organization organization = service.getOrganization();
|
|
||||||
UptimeJournal uptimeJournal = StatoolInfosWeb.instance().getUptimeJournal();
|
|
||||||
|
|
||||||
// Send response.
|
|
||||||
// ==============
|
|
||||||
String headerView = ServiceHeaderView.htmlize(service, uptimeJournal);
|
String headerView = ServiceHeaderView.htmlize(service, uptimeJournal);
|
||||||
String contentView = PropertyAlertView.htmlize(service.getInputChecksAll().getAlertLines());
|
String contentView = PropertyAlertView.htmlize(service.getInputChecksAll().getAlertLines());
|
||||||
|
|
||||||
|
|
|
@ -57,20 +57,22 @@ public class PropertyCheckPage extends HttpServlet
|
||||||
{
|
{
|
||||||
logger.info("PAGE Service > PropertyCheck");
|
logger.info("PAGE Service > PropertyCheck");
|
||||||
|
|
||||||
String html = StatoolInfosWeb.instance().getHtmlCache().get(this.getClass().getCanonicalName());
|
// Get parameters.
|
||||||
|
// ===============
|
||||||
|
|
||||||
|
// Use parameters.
|
||||||
|
// ===============
|
||||||
|
Service service = StatoolInfosWeb.instance().getServiceFromPathinfo(request.getPathInfo());
|
||||||
|
Organization organization = service.getOrganization();
|
||||||
|
UptimeJournal uptimeJournal = StatoolInfosWeb.instance().getUptimeJournal();
|
||||||
|
|
||||||
|
// Send response.
|
||||||
|
// ==============
|
||||||
|
String key = this.getClass().getCanonicalName() + "?organization=" + organization.getTechnicalName() + "&service="
|
||||||
|
+ service.getTechnicalName();
|
||||||
|
String html = StatoolInfosWeb.instance().getHtmlCache().get(key);
|
||||||
if (html == null)
|
if (html == null)
|
||||||
{
|
{
|
||||||
// Get parameters.
|
|
||||||
// ===============
|
|
||||||
|
|
||||||
// Use parameters.
|
|
||||||
// ===============
|
|
||||||
Service service = StatoolInfosWeb.instance().getServiceFromPathinfo(request.getPathInfo());
|
|
||||||
Organization organization = service.getOrganization();
|
|
||||||
UptimeJournal uptimeJournal = StatoolInfosWeb.instance().getUptimeJournal();
|
|
||||||
|
|
||||||
// Send response.
|
|
||||||
// ==============
|
|
||||||
String headerView = ServiceHeaderView.htmlize(service, uptimeJournal);
|
String headerView = ServiceHeaderView.htmlize(service, uptimeJournal);
|
||||||
String contentView = PropertyCheckView.htmlize(service.getInputChecks());
|
String contentView = PropertyCheckView.htmlize(service.getInputChecks());
|
||||||
|
|
||||||
|
|
|
@ -58,20 +58,22 @@ public class ServicesPage extends HttpServlet
|
||||||
{
|
{
|
||||||
logger.info("PAGE Service > Services");
|
logger.info("PAGE Service > Services");
|
||||||
|
|
||||||
String html = StatoolInfosWeb.instance().getHtmlCache().get(this.getClass().getCanonicalName());
|
// Get parameters.
|
||||||
|
// ===============
|
||||||
|
|
||||||
|
// Use parameters.
|
||||||
|
// ===============
|
||||||
|
Service service = StatoolInfosWeb.instance().getServiceFromPathinfo(request.getPathInfo());
|
||||||
|
Organization organization = service.getOrganization();
|
||||||
|
UptimeJournal uptimeJournal = StatoolInfosWeb.instance().getUptimeJournal();
|
||||||
|
|
||||||
|
// Send response.
|
||||||
|
// ==============
|
||||||
|
String key = this.getClass().getCanonicalName() + "?organization=" + organization.getTechnicalName() + "&service="
|
||||||
|
+ service.getTechnicalName();
|
||||||
|
String html = StatoolInfosWeb.instance().getHtmlCache().get(key);
|
||||||
if (html == null)
|
if (html == null)
|
||||||
{
|
{
|
||||||
// Get parameters.
|
|
||||||
// ===============
|
|
||||||
|
|
||||||
// Use parameters.
|
|
||||||
// ===============
|
|
||||||
Service service = StatoolInfosWeb.instance().getServiceFromPathinfo(request.getPathInfo());
|
|
||||||
Organization organization = service.getOrganization();
|
|
||||||
UptimeJournal uptimeJournal = StatoolInfosWeb.instance().getUptimeJournal();
|
|
||||||
|
|
||||||
// Send response.
|
|
||||||
// ==============
|
|
||||||
String headerView = ServiceHeaderView.htmlize(service, uptimeJournal);
|
String headerView = ServiceHeaderView.htmlize(service, uptimeJournal);
|
||||||
String contentView = ServiceListView.htmlize(new Services(service));
|
String contentView = ServiceListView.htmlize(new Services(service));
|
||||||
|
|
||||||
|
|
|
@ -65,20 +65,22 @@ public class StatsPage extends HttpServlet
|
||||||
{
|
{
|
||||||
logger.info("PAGE Service > Stats");
|
logger.info("PAGE Service > Stats");
|
||||||
|
|
||||||
String html = StatoolInfosWeb.instance().getHtmlCache().get(this.getClass().getCanonicalName());
|
// Get parameters.
|
||||||
|
// ===============
|
||||||
|
|
||||||
|
// Use parameters.
|
||||||
|
// ===============
|
||||||
|
Service service = StatoolInfosWeb.instance().getServiceFromPathinfo(request.getPathInfo());
|
||||||
|
Organization organization = service.getOrganization();
|
||||||
|
UptimeJournal uptimeJournal = StatoolInfosWeb.instance().getUptimeJournal();
|
||||||
|
|
||||||
|
// Send response.
|
||||||
|
// ==============
|
||||||
|
String key = this.getClass().getCanonicalName() + "?organization=" + organization.getTechnicalName() + "&service="
|
||||||
|
+ service.getTechnicalName();
|
||||||
|
String html = StatoolInfosWeb.instance().getHtmlCache().get(key);
|
||||||
if (html == null)
|
if (html == null)
|
||||||
{
|
{
|
||||||
// Get parameters.
|
|
||||||
// ===============
|
|
||||||
|
|
||||||
// Use parameters.
|
|
||||||
// ===============
|
|
||||||
Service service = StatoolInfosWeb.instance().getServiceFromPathinfo(request.getPathInfo());
|
|
||||||
Organization organization = service.getOrganization();
|
|
||||||
UptimeJournal uptimeJournal = StatoolInfosWeb.instance().getUptimeJournal();
|
|
||||||
|
|
||||||
// Send response.
|
|
||||||
// ==============
|
|
||||||
String headerView = ServiceHeaderView.htmlize(service, uptimeJournal);
|
String headerView = ServiceHeaderView.htmlize(service, uptimeJournal);
|
||||||
String contentView = htmlize(service);
|
String contentView = htmlize(service);
|
||||||
|
|
||||||
|
|
|
@ -58,20 +58,22 @@ public class UptimePage extends HttpServlet
|
||||||
{
|
{
|
||||||
logger.info("PAGE Service > Uptime");
|
logger.info("PAGE Service > Uptime");
|
||||||
|
|
||||||
String html = StatoolInfosWeb.instance().getHtmlCache().get(this.getClass().getCanonicalName());
|
// Get parameters.
|
||||||
|
// ===============
|
||||||
|
|
||||||
|
// Use parameters.
|
||||||
|
// ===============
|
||||||
|
Service service = StatoolInfosWeb.instance().getServiceFromPathinfo(request.getPathInfo());
|
||||||
|
Organization organization = service.getOrganization();
|
||||||
|
UptimeJournal uptimeJournal = StatoolInfosWeb.instance().getUptimeJournal();
|
||||||
|
|
||||||
|
// Send response.
|
||||||
|
// ==============
|
||||||
|
String key = this.getClass().getCanonicalName() + "?organization=" + organization.getTechnicalName() + "&service="
|
||||||
|
+ service.getTechnicalName();
|
||||||
|
String html = StatoolInfosWeb.instance().getHtmlCache().get(key);
|
||||||
if (html == null)
|
if (html == null)
|
||||||
{
|
{
|
||||||
// Get parameters.
|
|
||||||
// ===============
|
|
||||||
|
|
||||||
// Use parameters.
|
|
||||||
// ===============
|
|
||||||
Service service = StatoolInfosWeb.instance().getServiceFromPathinfo(request.getPathInfo());
|
|
||||||
Organization organization = service.getOrganization();
|
|
||||||
UptimeJournal uptimeJournal = StatoolInfosWeb.instance().getUptimeJournal();
|
|
||||||
|
|
||||||
// Send response.
|
|
||||||
// ==============
|
|
||||||
String headerView = ServiceHeaderView.htmlize(service, uptimeJournal);
|
String headerView = ServiceHeaderView.htmlize(service, uptimeJournal);
|
||||||
String contentView = UptimeView.htmlize(new Services(service), uptimeJournal);
|
String contentView = UptimeView.htmlize(new Services(service), uptimeJournal);
|
||||||
|
|
||||||
|
|
|
@ -67,22 +67,24 @@ public class MetricGenericPage extends HttpServlet
|
||||||
{
|
{
|
||||||
logger.info("PAGE Service > MetricGenericPage");
|
logger.info("PAGE Service > MetricGenericPage");
|
||||||
|
|
||||||
String html = StatoolInfosWeb.instance().getHtmlCache().get(this.getClass().getCanonicalName());
|
// Get parameters.
|
||||||
|
// ===============
|
||||||
|
|
||||||
|
// Use parameters.
|
||||||
|
// ===============
|
||||||
|
Service service = StatoolInfosWeb.instance().getServiceFromPathinfo(request.getPathInfo());
|
||||||
|
Organization organization = service.getOrganization();
|
||||||
|
UptimeJournal uptimeJournal = StatoolInfosWeb.instance().getUptimeJournal();
|
||||||
|
ViewMenu viewMenu = ViewMenu.valueFrom(request.getParameter("view"));
|
||||||
|
PeriodMenu periodMenu = PeriodMenu.valueFrom(request.getParameter("period"));
|
||||||
|
|
||||||
|
// Send response.
|
||||||
|
// ==============
|
||||||
|
String key = this.getClass().getCanonicalName() + "?organization=" + organization.getTechnicalName() + "&service="
|
||||||
|
+ service.getTechnicalName();
|
||||||
|
String html = StatoolInfosWeb.instance().getHtmlCache().get(key);
|
||||||
if (html == null)
|
if (html == null)
|
||||||
{
|
{
|
||||||
// Get parameters.
|
|
||||||
// ===============
|
|
||||||
|
|
||||||
// Use parameters.
|
|
||||||
// ===============
|
|
||||||
Service service = StatoolInfosWeb.instance().getServiceFromPathinfo(request.getPathInfo());
|
|
||||||
Organization organization = service.getOrganization();
|
|
||||||
UptimeJournal uptimeJournal = StatoolInfosWeb.instance().getUptimeJournal();
|
|
||||||
ViewMenu viewMenu = ViewMenu.valueFrom(request.getParameter("view"));
|
|
||||||
PeriodMenu periodMenu = PeriodMenu.valueFrom(request.getParameter("period"));
|
|
||||||
|
|
||||||
// Send response.
|
|
||||||
// ==============
|
|
||||||
String headerView = ServiceHeaderView.htmlize(service, uptimeJournal);
|
String headerView = ServiceHeaderView.htmlize(service, uptimeJournal);
|
||||||
String contentView = htmlize(service, viewMenu, periodMenu);
|
String contentView = htmlize(service, viewMenu, periodMenu);
|
||||||
|
|
||||||
|
|
|
@ -67,22 +67,24 @@ public class MetricSpecificPage extends HttpServlet
|
||||||
{
|
{
|
||||||
logger.info("PAGE Service > MetricGenericPage");
|
logger.info("PAGE Service > MetricGenericPage");
|
||||||
|
|
||||||
String html = StatoolInfosWeb.instance().getHtmlCache().get(this.getClass().getCanonicalName());
|
// Get parameters.
|
||||||
|
// ===============
|
||||||
|
|
||||||
|
// Use parameters.
|
||||||
|
// ===============
|
||||||
|
Service service = StatoolInfosWeb.instance().getServiceFromPathinfo(request.getPathInfo());
|
||||||
|
Organization organization = service.getOrganization();
|
||||||
|
UptimeJournal uptimeJournal = StatoolInfosWeb.instance().getUptimeJournal();
|
||||||
|
ViewMenu viewMenu = ViewMenu.valueFrom(request.getParameter("view"));
|
||||||
|
PeriodMenu periodMenu = PeriodMenu.valueFrom(request.getParameter("period"));
|
||||||
|
|
||||||
|
// Send response.
|
||||||
|
// ==============
|
||||||
|
String key = this.getClass().getCanonicalName() + "?organization=" + organization.getTechnicalName() + "&service="
|
||||||
|
+ service.getTechnicalName();
|
||||||
|
String html = StatoolInfosWeb.instance().getHtmlCache().get(key);
|
||||||
if (html == null)
|
if (html == null)
|
||||||
{
|
{
|
||||||
// Get parameters.
|
|
||||||
// ===============
|
|
||||||
|
|
||||||
// Use parameters.
|
|
||||||
// ===============
|
|
||||||
Service service = StatoolInfosWeb.instance().getServiceFromPathinfo(request.getPathInfo());
|
|
||||||
Organization organization = service.getOrganization();
|
|
||||||
UptimeJournal uptimeJournal = StatoolInfosWeb.instance().getUptimeJournal();
|
|
||||||
ViewMenu viewMenu = ViewMenu.valueFrom(request.getParameter("view"));
|
|
||||||
PeriodMenu periodMenu = PeriodMenu.valueFrom(request.getParameter("period"));
|
|
||||||
|
|
||||||
// Send response.
|
|
||||||
// ==============
|
|
||||||
String headerView = ServiceHeaderView.htmlize(service, uptimeJournal);
|
String headerView = ServiceHeaderView.htmlize(service, uptimeJournal);
|
||||||
String contentView = htmlize(service, viewMenu, periodMenu);
|
String contentView = htmlize(service, viewMenu, periodMenu);
|
||||||
|
|
||||||
|
|
|
@ -67,22 +67,24 @@ public class MetricSummaryPage extends HttpServlet
|
||||||
{
|
{
|
||||||
logger.info("PAGE Service > MetricSummaryPage");
|
logger.info("PAGE Service > MetricSummaryPage");
|
||||||
|
|
||||||
String html = StatoolInfosWeb.instance().getHtmlCache().get(this.getClass().getCanonicalName());
|
// Get parameters.
|
||||||
|
// ===============
|
||||||
|
|
||||||
|
// Use parameters.
|
||||||
|
// ===============
|
||||||
|
Service service = StatoolInfosWeb.instance().getServiceFromPathinfo(request.getPathInfo());
|
||||||
|
Organization organization = service.getOrganization();
|
||||||
|
UptimeJournal uptimeJournal = StatoolInfosWeb.instance().getUptimeJournal();
|
||||||
|
ViewMenu viewMenu = ViewMenu.valueFrom(request.getParameter("view"));
|
||||||
|
PeriodMenu periodMenu = PeriodMenu.valueFrom(request.getParameter("period"));
|
||||||
|
|
||||||
|
// Send response.
|
||||||
|
// ==============
|
||||||
|
String key = this.getClass().getCanonicalName() + "?organization=" + organization.getTechnicalName() + "&service="
|
||||||
|
+ service.getTechnicalName();
|
||||||
|
String html = StatoolInfosWeb.instance().getHtmlCache().get(key);
|
||||||
if (html == null)
|
if (html == null)
|
||||||
{
|
{
|
||||||
// Get parameters.
|
|
||||||
// ===============
|
|
||||||
|
|
||||||
// Use parameters.
|
|
||||||
// ===============
|
|
||||||
Service service = StatoolInfosWeb.instance().getServiceFromPathinfo(request.getPathInfo());
|
|
||||||
Organization organization = service.getOrganization();
|
|
||||||
UptimeJournal uptimeJournal = StatoolInfosWeb.instance().getUptimeJournal();
|
|
||||||
ViewMenu viewMenu = ViewMenu.valueFrom(request.getParameter("view"));
|
|
||||||
PeriodMenu periodMenu = PeriodMenu.valueFrom(request.getParameter("period"));
|
|
||||||
|
|
||||||
// Send response.
|
|
||||||
// ==============
|
|
||||||
String headerView = ServiceHeaderView.htmlize(service, uptimeJournal);
|
String headerView = ServiceHeaderView.htmlize(service, uptimeJournal);
|
||||||
String contentView = htmlize(service, viewMenu, periodMenu);
|
String contentView = htmlize(service, viewMenu, periodMenu);
|
||||||
|
|
||||||
|
|
|
@ -67,22 +67,24 @@ public class MetricWebPage extends HttpServlet
|
||||||
{
|
{
|
||||||
logger.info("PAGE Service > MetricGenericPage");
|
logger.info("PAGE Service > MetricGenericPage");
|
||||||
|
|
||||||
String html = StatoolInfosWeb.instance().getHtmlCache().get(this.getClass().getCanonicalName());
|
// Get parameters.
|
||||||
|
// ===============
|
||||||
|
|
||||||
|
// Use parameters.
|
||||||
|
// ===============
|
||||||
|
Service service = StatoolInfosWeb.instance().getServiceFromPathinfo(request.getPathInfo());
|
||||||
|
Organization organization = service.getOrganization();
|
||||||
|
UptimeJournal uptimeJournal = StatoolInfosWeb.instance().getUptimeJournal();
|
||||||
|
ViewMenu viewMenu = ViewMenu.valueFrom(request.getParameter("view"));
|
||||||
|
PeriodMenu periodMenu = PeriodMenu.valueFrom(request.getParameter("period"));
|
||||||
|
|
||||||
|
// Send response.
|
||||||
|
// ==============
|
||||||
|
String key = this.getClass().getCanonicalName() + "?organization=" + organization.getTechnicalName() + "&service="
|
||||||
|
+ service.getTechnicalName();
|
||||||
|
String html = StatoolInfosWeb.instance().getHtmlCache().get(key);
|
||||||
if (html == null)
|
if (html == null)
|
||||||
{
|
{
|
||||||
// Get parameters.
|
|
||||||
// ===============
|
|
||||||
|
|
||||||
// Use parameters.
|
|
||||||
// ===============
|
|
||||||
Service service = StatoolInfosWeb.instance().getServiceFromPathinfo(request.getPathInfo());
|
|
||||||
Organization organization = service.getOrganization();
|
|
||||||
UptimeJournal uptimeJournal = StatoolInfosWeb.instance().getUptimeJournal();
|
|
||||||
ViewMenu viewMenu = ViewMenu.valueFrom(request.getParameter("view"));
|
|
||||||
PeriodMenu periodMenu = PeriodMenu.valueFrom(request.getParameter("period"));
|
|
||||||
|
|
||||||
// Send response.
|
|
||||||
// ==============
|
|
||||||
String headerView = ServiceHeaderView.htmlize(service, uptimeJournal);
|
String headerView = ServiceHeaderView.htmlize(service, uptimeJournal);
|
||||||
String contentView = htmlize(service, viewMenu, periodMenu);
|
String contentView = htmlize(service, viewMenu, periodMenu);
|
||||||
|
|
||||||
|
|
|
@ -64,27 +64,28 @@ public class SoftwarePage extends HttpServlet
|
||||||
{
|
{
|
||||||
logger.info("PAGE Federation > Softwares > Software");
|
logger.info("PAGE Federation > Softwares > Software");
|
||||||
|
|
||||||
String html = StatoolInfosWeb.instance().getHtmlCache().get(this.getClass().getCanonicalName());
|
// Get parameters.
|
||||||
if (html == null)
|
// ===============
|
||||||
|
|
||||||
|
// Use parameters.
|
||||||
|
// ===============
|
||||||
|
Federation federation = StatoolInfosWeb.instance().getFederation();
|
||||||
|
UptimeJournal uptimes = StatoolInfosWeb.instance().getUptimeJournal();
|
||||||
|
Software software = StatoolInfosWeb.instance().getSoftwareFromPathinfo(request.getPathInfo());
|
||||||
|
|
||||||
|
// Send response.
|
||||||
|
// ==============
|
||||||
|
String headerView = FederationHeaderView.htmlize(federation, uptimes);
|
||||||
|
|
||||||
|
if (software == null)
|
||||||
{
|
{
|
||||||
// Get parameters.
|
throw new StatoolInfosWebException("Illegal software name.");
|
||||||
// ===============
|
}
|
||||||
|
else
|
||||||
// Use parameters.
|
{
|
||||||
// ===============
|
String key = this.getClass().getCanonicalName() + "?software=" + software.getTechnicalName();
|
||||||
Federation federation = StatoolInfosWeb.instance().getFederation();
|
String html = StatoolInfosWeb.instance().getHtmlCache().get(key);
|
||||||
UptimeJournal uptimes = StatoolInfosWeb.instance().getUptimeJournal();
|
if (html == null)
|
||||||
|
|
||||||
// Send response.
|
|
||||||
// ==============
|
|
||||||
String headerView = FederationHeaderView.htmlize(federation, uptimes);
|
|
||||||
|
|
||||||
Software software = StatoolInfosWeb.instance().getSoftwareFromPathinfo(request.getPathInfo());
|
|
||||||
if (software == null)
|
|
||||||
{
|
|
||||||
throw new StatoolInfosWebException("Illegal software name.");
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
Services services = federation.getServices().getBy(software);
|
Services services = federation.getServices().getBy(software);
|
||||||
String contentView = htmlize(software, services);
|
String contentView = htmlize(software, services);
|
||||||
|
@ -94,7 +95,7 @@ public class SoftwarePage extends HttpServlet
|
||||||
trail.add("Logiciels", "/federation/softwares/");
|
trail.add("Logiciels", "/federation/softwares/");
|
||||||
|
|
||||||
html = WebCharterView.build(headerView, contentView, trail);
|
html = WebCharterView.build(headerView, contentView, trail);
|
||||||
StatoolInfosWeb.instance().getHtmlCache().put(this.getClass().getCanonicalName(), html);
|
StatoolInfosWeb.instance().getHtmlCache().put(key, html);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Display page.
|
// Display page.
|
||||||
|
|
Loading…
Reference in a new issue