Activated HTML cache for many pages.
This commit is contained in:
parent
633ceced4b
commit
7fc958696a
49 changed files with 1219 additions and 911 deletions
|
@ -51,6 +51,9 @@ public class CrawlPage extends HttpServlet
|
|||
public void doGet(final HttpServletRequest request, final HttpServletResponse response) throws IOException, ServletException
|
||||
{
|
||||
try
|
||||
{
|
||||
String html = StatoolInfosWeb.instance().getHtmlCache().get(this.getClass().getCanonicalName());
|
||||
if (html == null)
|
||||
{
|
||||
// Get parameters.
|
||||
// ===============
|
||||
|
@ -69,7 +72,9 @@ public class CrawlPage extends HttpServlet
|
|||
trail.add(StatoolInfosWeb.instance().getFederation().getName(), "/federation/");
|
||||
trail.add("Journal", "/federation/crawl.xhtml");
|
||||
|
||||
String html = WebCharterView.build(headerView, contentView, trail);
|
||||
html = WebCharterView.build(headerView, contentView, trail);
|
||||
StatoolInfosWeb.instance().getHtmlCache().put(this.getClass().getCanonicalName(), html);
|
||||
}
|
||||
|
||||
// Display page.
|
||||
response.setContentType("application/xhtml+xml; charset=UTF-8");
|
||||
|
|
|
@ -54,6 +54,9 @@ public class LastStatsPage extends HttpServlet
|
|||
{
|
||||
logger.info("PAGE Federation > Last Stats");
|
||||
|
||||
String html = StatoolInfosWeb.instance().getHtmlCache().get(this.getClass().getCanonicalName());
|
||||
if (html == null)
|
||||
{
|
||||
// Get parameters.
|
||||
// ===============
|
||||
|
||||
|
@ -71,7 +74,9 @@ public class LastStatsPage extends HttpServlet
|
|||
trail.add(StatoolInfosWeb.instance().getFederation().getName(), "/federation/");
|
||||
trail.add("Chiffres", "/federation/servicesFigures.xhtml");
|
||||
|
||||
String html = WebCharterView.build(headerView, contentView, trail);
|
||||
html = WebCharterView.build(headerView, contentView, trail);
|
||||
StatoolInfosWeb.instance().getHtmlCache().put(this.getClass().getCanonicalName(), html);
|
||||
}
|
||||
|
||||
// Display page.
|
||||
response.setContentType("application/xhtml+xml; charset=UTF-8");
|
||||
|
|
|
@ -63,6 +63,9 @@ public class PropertiesFilesPage extends HttpServlet
|
|||
{
|
||||
logger.info("PAGE Federation > propertiesFiles");
|
||||
|
||||
String html = StatoolInfosWeb.instance().getHtmlCache().get(this.getClass().getCanonicalName());
|
||||
if (html == null)
|
||||
{
|
||||
// Get parameters.
|
||||
// ===============
|
||||
|
||||
|
@ -82,7 +85,9 @@ public class PropertiesFilesPage extends HttpServlet
|
|||
trail.add(StatoolInfosWeb.instance().getFederation().getName(), "/federation/");
|
||||
trail.add("Fichiers", "/federation/propertiesFiles.xhtml");
|
||||
|
||||
String html = WebCharterView.build(headerView, contentView, trail);
|
||||
html = WebCharterView.build(headerView, contentView, trail);
|
||||
StatoolInfosWeb.instance().getHtmlCache().put(this.getClass().getCanonicalName(), html);
|
||||
}
|
||||
|
||||
// Display page.
|
||||
response.setContentType("application/xhtml+xml; charset=UTF-8");
|
||||
|
@ -129,7 +134,8 @@ public class PropertiesFilesPage extends HttpServlet
|
|||
data.setAttribute("fileListLine", index, "fileListLineNameLink", "href", stat.getURLName());
|
||||
data.setEscapedContent("fileListLine", index, "fileListLineNameLink", stat.getURLName());
|
||||
|
||||
data.setAttribute("fileListLine", index, "fileListLineOwnerLink", "href", "/federation/organizations/" + stat.getOrganization().getTechnicalName() + "/");
|
||||
data.setAttribute("fileListLine", index, "fileListLineOwnerLink", "href",
|
||||
"/federation/organizations/" + stat.getOrganization().getTechnicalName() + "/");
|
||||
data.setEscapedContent("fileListLine", index, "fileListLineNameValue", stat.getOrganization().getName());
|
||||
data.setAttribute("fileListLine", index, "fileListLineOwnerLogo", "src", stat.getOrganization().getLogoFileName());
|
||||
|
||||
|
@ -142,7 +148,8 @@ public class PropertiesFilesPage extends HttpServlet
|
|||
String propertyCheckURL;
|
||||
if (stat.getService() != null)
|
||||
{
|
||||
propertyCheckURL = "/federation/organizations/" + stat.getOrganization().getTechnicalName() + "/services/" + stat.getService().getTechnicalName() + "/propertyCheck.xhtml";
|
||||
propertyCheckURL = "/federation/organizations/" + stat.getOrganization().getTechnicalName() + "/services/"
|
||||
+ stat.getService().getTechnicalName() + "/propertyCheck.xhtml";
|
||||
}
|
||||
else if (stat.getOrganization() != null)
|
||||
{
|
||||
|
@ -188,7 +195,8 @@ public class PropertiesFilesPage extends HttpServlet
|
|||
}
|
||||
|
||||
data.setContent("fileListLine", index, "fileListLineDate", stat.getUpdateDate().format(DateTimeFormatter.ofPattern("dd/MM/YYYY")));
|
||||
data.setAttribute("fileListLine", index, "fileListLineDate", "title", stat.getUpdateDate().format(DateTimeFormatter.ofPattern("HH:mm:ss")));
|
||||
data.setAttribute("fileListLine", index, "fileListLineDate", "title",
|
||||
stat.getUpdateDate().format(DateTimeFormatter.ofPattern("HH:mm:ss")));
|
||||
|
||||
index += 1;
|
||||
}
|
||||
|
|
|
@ -56,6 +56,9 @@ public class PropertyAlertFederationPage extends HttpServlet
|
|||
{
|
||||
logger.info("PAGE Fédération > PropertyAlert");
|
||||
|
||||
String html = StatoolInfosWeb.instance().getHtmlCache().get(this.getClass().getCanonicalName());
|
||||
if (html == null)
|
||||
{
|
||||
// Get parameters.
|
||||
// ===============
|
||||
|
||||
|
@ -75,7 +78,9 @@ public class PropertyAlertFederationPage extends HttpServlet
|
|||
trail.add(StatoolInfosWeb.instance().getFederation().getName(), "/federation/organizations/");
|
||||
trail.add("Disponibilités", "/federation/uptimes.xhtml");
|
||||
|
||||
String html = WebCharterView.build(headerView, contentView, trail);
|
||||
html = WebCharterView.build(headerView, contentView, trail);
|
||||
StatoolInfosWeb.instance().getHtmlCache().put(this.getClass().getCanonicalName(), html);
|
||||
}
|
||||
|
||||
// Display page.
|
||||
response.setContentType("application/xhtml+xml; charset=UTF-8");
|
||||
|
|
|
@ -57,6 +57,9 @@ public class PropertyAlertOrganizationsPage extends HttpServlet
|
|||
{
|
||||
logger.info("PAGE Fédération > PropertyAlert");
|
||||
|
||||
String html = StatoolInfosWeb.instance().getHtmlCache().get(this.getClass().getCanonicalName());
|
||||
if (html == null)
|
||||
{
|
||||
// Get parameters.
|
||||
// ===============
|
||||
|
||||
|
@ -80,7 +83,9 @@ public class PropertyAlertOrganizationsPage extends HttpServlet
|
|||
trail.add(StatoolInfosWeb.instance().getFederation().getName(), "/federation/organizations/");
|
||||
trail.add("Disponibilités", "/federation/uptimes.xhtml");
|
||||
|
||||
String html = WebCharterView.build(headerView, contentView, trail);
|
||||
html = WebCharterView.build(headerView, contentView, trail);
|
||||
StatoolInfosWeb.instance().getHtmlCache().put(this.getClass().getCanonicalName(), html);
|
||||
}
|
||||
|
||||
// Display page.
|
||||
response.setContentType("application/xhtml+xml; charset=UTF-8");
|
||||
|
|
|
@ -56,6 +56,9 @@ public class PropertyAlertPage extends HttpServlet
|
|||
{
|
||||
logger.info("PAGE Fédération > PropertyAlerts");
|
||||
|
||||
String html = StatoolInfosWeb.instance().getHtmlCache().get(this.getClass().getCanonicalName());
|
||||
if (html == null)
|
||||
{
|
||||
// Get parameters.
|
||||
// ===============
|
||||
|
||||
|
@ -75,7 +78,9 @@ public class PropertyAlertPage extends HttpServlet
|
|||
trail.add(StatoolInfosWeb.instance().getFederation().getName(), "/federation/organizations/");
|
||||
trail.add("Alertes", "/federation/propertyAlerts.xhtml");
|
||||
|
||||
String html = WebCharterView.build(headerView, contentView, trail);
|
||||
html = WebCharterView.build(headerView, contentView, trail);
|
||||
StatoolInfosWeb.instance().getHtmlCache().put(this.getClass().getCanonicalName(), html);
|
||||
}
|
||||
|
||||
// Display page.
|
||||
response.setContentType("application/xhtml+xml; charset=UTF-8");
|
||||
|
|
|
@ -57,6 +57,9 @@ public class PropertyAlertServicesPage extends HttpServlet
|
|||
{
|
||||
logger.info("PAGE Fédération > PropertyAlert");
|
||||
|
||||
String html = StatoolInfosWeb.instance().getHtmlCache().get(this.getClass().getCanonicalName());
|
||||
if (html == null)
|
||||
{
|
||||
// Get parameters.
|
||||
// ===============
|
||||
|
||||
|
@ -80,7 +83,9 @@ public class PropertyAlertServicesPage extends HttpServlet
|
|||
trail.add(StatoolInfosWeb.instance().getFederation().getName(), "/federation/");
|
||||
trail.add("Disponibilités", "/federation/uptimes.xhtml");
|
||||
|
||||
String html = WebCharterView.build(headerView, contentView, trail);
|
||||
html = WebCharterView.build(headerView, contentView, trail);
|
||||
StatoolInfosWeb.instance().getHtmlCache().put(this.getClass().getCanonicalName(), html);
|
||||
}
|
||||
|
||||
// Display page.
|
||||
response.setContentType("application/xhtml+xml; charset=UTF-8");
|
||||
|
|
|
@ -51,6 +51,9 @@ public class PropertyCheckPage extends HttpServlet
|
|||
public void doGet(final HttpServletRequest request, final HttpServletResponse response) throws IOException, ServletException
|
||||
{
|
||||
try
|
||||
{
|
||||
String html = StatoolInfosWeb.instance().getHtmlCache().get(this.getClass().getCanonicalName());
|
||||
if (html == null)
|
||||
{
|
||||
// Get parameters.
|
||||
// ===============
|
||||
|
@ -69,7 +72,9 @@ public class PropertyCheckPage extends HttpServlet
|
|||
trail.add(StatoolInfosWeb.instance().getFederation().getName(), "/federation/");
|
||||
trail.add("Propriétés", "/federation/propertyCheck.xhtml");
|
||||
|
||||
String html = WebCharterView.build(headerView, contentView, trail);
|
||||
html = WebCharterView.build(headerView, contentView, trail);
|
||||
StatoolInfosWeb.instance().getHtmlCache().put(this.getClass().getCanonicalName(), html);
|
||||
}
|
||||
|
||||
// Display page.
|
||||
response.setContentType("application/xhtml+xml; charset=UTF-8");
|
||||
|
|
|
@ -56,6 +56,9 @@ public class PropertyStatsFederationPage extends HttpServlet
|
|||
{
|
||||
logger.info("PAGE Federation > propertiesStats");
|
||||
|
||||
String html = StatoolInfosWeb.instance().getHtmlCache().get(this.getClass().getCanonicalName());
|
||||
if (html == null)
|
||||
{
|
||||
// Get parameters.
|
||||
// ===============
|
||||
|
||||
|
@ -74,7 +77,9 @@ public class PropertyStatsFederationPage extends HttpServlet
|
|||
trail.add(StatoolInfosWeb.instance().getFederation().getName(), "/federation/");
|
||||
trail.add("Propriétés", "/federation/propertiesStats.xhtml");
|
||||
|
||||
String html = WebCharterView.build(headerView, contentView, trail);
|
||||
html = WebCharterView.build(headerView, contentView, trail);
|
||||
StatoolInfosWeb.instance().getHtmlCache().put(this.getClass().getCanonicalName(), html);
|
||||
}
|
||||
|
||||
// Display page.
|
||||
response.setContentType("application/xhtml+xml; charset=UTF-8");
|
||||
|
|
|
@ -56,6 +56,9 @@ public class PropertyStatsOrganizationsPage extends HttpServlet
|
|||
{
|
||||
logger.info("PAGE Federation > propertiesStats");
|
||||
|
||||
String html = StatoolInfosWeb.instance().getHtmlCache().get(this.getClass().getCanonicalName());
|
||||
if (html == null)
|
||||
{
|
||||
// Get parameters.
|
||||
// ===============
|
||||
|
||||
|
@ -74,7 +77,9 @@ public class PropertyStatsOrganizationsPage extends HttpServlet
|
|||
trail.add(StatoolInfosWeb.instance().getFederation().getName(), "/federation/");
|
||||
trail.add("Propriétés", "/federation/propertiesStats.xhtml");
|
||||
|
||||
String html = WebCharterView.build(headerView, contentView, trail);
|
||||
html = WebCharterView.build(headerView, contentView, trail);
|
||||
StatoolInfosWeb.instance().getHtmlCache().put(this.getClass().getCanonicalName(), html);
|
||||
}
|
||||
|
||||
// Display page.
|
||||
response.setContentType("application/xhtml+xml; charset=UTF-8");
|
||||
|
|
|
@ -57,6 +57,9 @@ public class PropertyStatsPage extends HttpServlet
|
|||
{
|
||||
logger.info("PAGE Federation > propertiesStats");
|
||||
|
||||
String html = StatoolInfosWeb.instance().getHtmlCache().get(this.getClass().getCanonicalName());
|
||||
if (html == null)
|
||||
{
|
||||
// Get parameters.
|
||||
// ===============
|
||||
|
||||
|
@ -76,7 +79,9 @@ public class PropertyStatsPage extends HttpServlet
|
|||
trail.add(StatoolInfosWeb.instance().getFederation().getName(), "/federation/");
|
||||
trail.add("Propriétés", "/federation/propertiesStats.xhtml");
|
||||
|
||||
String html = WebCharterView.build(headerView, contentView, trail);
|
||||
html = WebCharterView.build(headerView, contentView, trail);
|
||||
StatoolInfosWeb.instance().getHtmlCache().put(this.getClass().getCanonicalName(), html);
|
||||
}
|
||||
|
||||
// Display page.
|
||||
response.setContentType("application/xhtml+xml; charset=UTF-8");
|
||||
|
|
|
@ -56,6 +56,9 @@ public class PropertyStatsServicesPage extends HttpServlet
|
|||
{
|
||||
logger.info("PAGE Federation > propertiesStats");
|
||||
|
||||
String html = StatoolInfosWeb.instance().getHtmlCache().get(this.getClass().getCanonicalName());
|
||||
if (html == null)
|
||||
{
|
||||
// Get parameters.
|
||||
// ===============
|
||||
|
||||
|
@ -74,7 +77,9 @@ public class PropertyStatsServicesPage extends HttpServlet
|
|||
trail.add(StatoolInfosWeb.instance().getFederation().getName(), "/federation/");
|
||||
trail.add("Propriétés", "/federation/propertiesStats.xhtml");
|
||||
|
||||
String html = WebCharterView.build(headerView, contentView, trail);
|
||||
html = WebCharterView.build(headerView, contentView, trail);
|
||||
StatoolInfosWeb.instance().getHtmlCache().put(this.getClass().getCanonicalName(), html);
|
||||
}
|
||||
|
||||
// Display page.
|
||||
response.setContentType("application/xhtml+xml; charset=UTF-8");
|
||||
|
|
|
@ -54,6 +54,9 @@ public class ServicesPage extends HttpServlet
|
|||
{
|
||||
logger.info("PAGE Federation > services");
|
||||
|
||||
String html = StatoolInfosWeb.instance().getHtmlCache().get(this.getClass().getCanonicalName());
|
||||
if (html == null)
|
||||
{
|
||||
// Get parameters.
|
||||
// ===============
|
||||
|
||||
|
@ -71,7 +74,9 @@ public class ServicesPage extends HttpServlet
|
|||
trail.add(StatoolInfosWeb.instance().getFederation().getName(), "/federation/");
|
||||
trail.add("Services", "/federation/services.xhtml");
|
||||
|
||||
String html = WebCharterView.build(headerView, contentView, trail);
|
||||
html = WebCharterView.build(headerView, contentView, trail);
|
||||
StatoolInfosWeb.instance().getHtmlCache().put(this.getClass().getCanonicalName(), html);
|
||||
}
|
||||
|
||||
// Display page.
|
||||
response.setContentType("application/xhtml+xml; charset=UTF-8");
|
||||
|
|
|
@ -62,6 +62,9 @@ public class SocialNetworksPage extends HttpServlet
|
|||
{
|
||||
logger.info("PAGE Federation > SocialNetworks");
|
||||
|
||||
String html = StatoolInfosWeb.instance().getHtmlCache().get(this.getClass().getCanonicalName());
|
||||
if (html == null)
|
||||
{
|
||||
// Get parameters.
|
||||
// ===============
|
||||
|
||||
|
@ -81,7 +84,9 @@ public class SocialNetworksPage extends HttpServlet
|
|||
trail.add(StatoolInfosWeb.instance().getFederation().getName(), "/federation/");
|
||||
trail.add("Réseaux sociaux", "/federation/socialNetworks.xhtml");
|
||||
|
||||
String html = WebCharterView.build(headerView, contentView, trail);
|
||||
html = WebCharterView.build(headerView, contentView, trail);
|
||||
StatoolInfosWeb.instance().getHtmlCache().put(this.getClass().getCanonicalName(), html);
|
||||
}
|
||||
|
||||
// Display page.
|
||||
response.setContentType("application/xhtml+xml; charset=UTF-8");
|
||||
|
@ -134,7 +139,8 @@ public class SocialNetworksPage extends HttpServlet
|
|||
if (StringUtils.isNotBlank(organization.getDiasporaWebpage()))
|
||||
{
|
||||
data.setAttribute("organizationListLine", index, "organizationListLineDiasporaImg", "class", "");
|
||||
data.getIdData("organizationListLine", index, "organizationListLineDiasporaImg").getAttribute("class").setMode(DisplayMode.REPLACE);
|
||||
data.getIdData("organizationListLine", index, "organizationListLineDiasporaImg").getAttribute("class")
|
||||
.setMode(DisplayMode.REPLACE);
|
||||
data.setAttribute("organizationListLine", index, "organizationListLineDiasporaLink", "href", organization.getDiasporaWebpage());
|
||||
data.setAttribute("organizationListLine", index, "organizationListLineDiaspora", "data-search", "1");
|
||||
data.setAttribute("organizationListLine", index, "organizationListLineDiaspora", "data-order", "1");
|
||||
|
@ -143,7 +149,8 @@ public class SocialNetworksPage extends HttpServlet
|
|||
if (StringUtils.isNotBlank(organization.getFunkwhaleWebpage()))
|
||||
{
|
||||
data.setAttribute("organizationListLine", index, "organizationListLineFunkwhaleImg", "class", "");
|
||||
data.getIdData("organizationListLine", index, "organizationListLineFunkwhaleImg").getAttribute("class").setMode(DisplayMode.REPLACE);
|
||||
data.getIdData("organizationListLine", index, "organizationListLineFunkwhaleImg").getAttribute("class")
|
||||
.setMode(DisplayMode.REPLACE);
|
||||
data.setAttribute("organizationListLine", index, "organizationListLineFunkwhaleLink", "href", organization.getFunkwhaleWebpage());
|
||||
data.setAttribute("organizationListLine", index, "organizationListLineFunkwhale", "data-search", "1");
|
||||
data.setAttribute("organizationListLine", index, "organizationListLineFunkwhale", "data-order", "1");
|
||||
|
@ -152,7 +159,8 @@ public class SocialNetworksPage extends HttpServlet
|
|||
if (StringUtils.isNotBlank(organization.getMastodonWebpage()))
|
||||
{
|
||||
data.setAttribute("organizationListLine", index, "organizationListLineMastodonImg", "class", "");
|
||||
data.getIdData("organizationListLine", index, "organizationListLineMastodonImg").getAttribute("class").setMode(DisplayMode.REPLACE);
|
||||
data.getIdData("organizationListLine", index, "organizationListLineMastodonImg").getAttribute("class")
|
||||
.setMode(DisplayMode.REPLACE);
|
||||
data.setAttribute("organizationListLine", index, "organizationListLineMastodonLink", "href", organization.getMastodonWebpage());
|
||||
data.setAttribute("organizationListLine", index, "organizationListLineMastodon", "data-search", "1");
|
||||
data.setAttribute("organizationListLine", index, "organizationListLineMastodon", "data-order", "1");
|
||||
|
@ -161,7 +169,8 @@ public class SocialNetworksPage extends HttpServlet
|
|||
if (StringUtils.isNotBlank(organization.getMobilizonWebpage()))
|
||||
{
|
||||
data.setAttribute("organizationListLine", index, "organizationListLineMobilizonImg", "class", "");
|
||||
data.getIdData("organizationListLine", index, "organizationListLineMobilizonImg").getAttribute("class").setMode(DisplayMode.REPLACE);
|
||||
data.getIdData("organizationListLine", index, "organizationListLineMobilizonImg").getAttribute("class")
|
||||
.setMode(DisplayMode.REPLACE);
|
||||
data.setAttribute("organizationListLine", index, "organizationListLineMobilizonLink", "href", organization.getMobilizonWebpage());
|
||||
data.setAttribute("organizationListLine", index, "organizationListLineMobilizon", "data-search", "1");
|
||||
data.setAttribute("organizationListLine", index, "organizationListLineMobilizon", "data-order", "1");
|
||||
|
@ -170,7 +179,8 @@ public class SocialNetworksPage extends HttpServlet
|
|||
if (StringUtils.isNotBlank(organization.getPixelfedWebpage()))
|
||||
{
|
||||
data.setAttribute("organizationListLine", index, "organizationListLinePixelfedImg", "class", "");
|
||||
data.getIdData("organizationListLine", index, "organizationListLinePixelfedImg").getAttribute("class").setMode(DisplayMode.REPLACE);
|
||||
data.getIdData("organizationListLine", index, "organizationListLinePixelfedImg").getAttribute("class")
|
||||
.setMode(DisplayMode.REPLACE);
|
||||
data.setAttribute("organizationListLine", index, "organizationListLinePixelfedLink", "href", organization.getPixelfedWebpage());
|
||||
data.setAttribute("organizationListLine", index, "organizationListLinePixelfed", "data-search", "1");
|
||||
data.setAttribute("organizationListLine", index, "organizationListLinePixelfed", "data-order", "1");
|
||||
|
@ -179,7 +189,8 @@ public class SocialNetworksPage extends HttpServlet
|
|||
if (StringUtils.isNotBlank(organization.getPeertubeWebpage()))
|
||||
{
|
||||
data.setAttribute("organizationListLine", index, "organizationListLinePeertubeImg", "class", "");
|
||||
data.getIdData("organizationListLine", index, "organizationListLinePeertubeImg").getAttribute("class").setMode(DisplayMode.REPLACE);
|
||||
data.getIdData("organizationListLine", index, "organizationListLinePeertubeImg").getAttribute("class")
|
||||
.setMode(DisplayMode.REPLACE);
|
||||
data.setAttribute("organizationListLine", index, "organizationListLinePeertubeLink", "href", organization.getPeertubeWebpage());
|
||||
data.setAttribute("organizationListLine", index, "organizationListLinePeertube", "data-search", "1");
|
||||
data.setAttribute("organizationListLine", index, "organizationListLinePeertube", "data-order", "1");
|
||||
|
|
|
@ -63,6 +63,9 @@ public class StatsPage extends HttpServlet
|
|||
{
|
||||
logger.info("PAGE Federation > Stats");
|
||||
|
||||
String html = StatoolInfosWeb.instance().getHtmlCache().get(this.getClass().getCanonicalName());
|
||||
if (html == null)
|
||||
{
|
||||
// Get parameters.
|
||||
// ===============
|
||||
|
||||
|
@ -81,7 +84,9 @@ public class StatsPage extends HttpServlet
|
|||
trail.add(StatoolInfosWeb.instance().getFederation().getName(), "/federation/");
|
||||
trail.add("Stats", "/federation/stats.xhtml");
|
||||
|
||||
String html = WebCharterView.build(headerView, contentView, trail);
|
||||
html = WebCharterView.build(headerView, contentView, trail);
|
||||
StatoolInfosWeb.instance().getHtmlCache().put(this.getClass().getCanonicalName(), html);
|
||||
}
|
||||
|
||||
// Display page.
|
||||
response.setContentType("application/xhtml+xml; charset=UTF-8");
|
||||
|
|
|
@ -54,6 +54,9 @@ public class UptimePage extends HttpServlet
|
|||
{
|
||||
logger.info("PAGE Fédération > Uptimes");
|
||||
|
||||
String html = StatoolInfosWeb.instance().getHtmlCache().get(this.getClass().getCanonicalName());
|
||||
if (html == null)
|
||||
{
|
||||
// Get parameters.
|
||||
// ===============
|
||||
|
||||
|
@ -71,7 +74,9 @@ public class UptimePage extends HttpServlet
|
|||
trail.add(StatoolInfosWeb.instance().getFederation().getName(), "/federation/");
|
||||
trail.add("Disponibilités", "/federation/uptimes.xhtml");
|
||||
|
||||
String html = WebCharterView.build(headerView, contentView, trail);
|
||||
html = WebCharterView.build(headerView, contentView, trail);
|
||||
StatoolInfosWeb.instance().getHtmlCache().put(this.getClass().getCanonicalName(), html);
|
||||
}
|
||||
|
||||
// Display page.
|
||||
response.setContentType("application/xhtml+xml; charset=UTF-8");
|
||||
|
|
|
@ -64,6 +64,9 @@ public class CategoryPage extends HttpServlet
|
|||
{
|
||||
logger.info("PAGE Federation > Categories > Category");
|
||||
|
||||
String html = StatoolInfosWeb.instance().getHtmlCache().get(this.getClass().getCanonicalName());
|
||||
if (html == null)
|
||||
{
|
||||
// Get parameters.
|
||||
// ===============
|
||||
|
||||
|
@ -85,7 +88,9 @@ public class CategoryPage extends HttpServlet
|
|||
trail.add("Catégories", "/federation/categories/");
|
||||
trail.add(category.getName(), "/federation/categories/" + category.getTechnicalName() + ".xhtml");
|
||||
|
||||
String html = WebCharterView.build(headerView, contentView, trail);
|
||||
html = WebCharterView.build(headerView, contentView, trail);
|
||||
StatoolInfosWeb.instance().getHtmlCache().put(this.getClass().getCanonicalName(), html);
|
||||
}
|
||||
|
||||
// Display page.
|
||||
response.setContentType("application/xhtml+xml; charset=UTF-8");
|
||||
|
|
|
@ -64,6 +64,9 @@ public class IndexPage extends HttpServlet
|
|||
{
|
||||
logger.info("PAGE Federation > Categories");
|
||||
|
||||
String html = StatoolInfosWeb.instance().getHtmlCache().get(this.getClass().getCanonicalName());
|
||||
if (html == null)
|
||||
{
|
||||
// Get parameters.
|
||||
// ===============
|
||||
|
||||
|
@ -84,7 +87,9 @@ public class IndexPage extends HttpServlet
|
|||
trail.add(StatoolInfosWeb.instance().getFederation().getName(), "/federation/");
|
||||
trail.add("Catégories", "/federation/categories/");
|
||||
|
||||
String html = WebCharterView.build(headerView, contentView, trail);
|
||||
html = WebCharterView.build(headerView, contentView, trail);
|
||||
StatoolInfosWeb.instance().getHtmlCache().put(this.getClass().getCanonicalName(), html);
|
||||
}
|
||||
|
||||
// Display page.
|
||||
response.setContentType("application/xhtml+xml; charset=UTF-8");
|
||||
|
@ -125,9 +130,11 @@ public class IndexPage extends HttpServlet
|
|||
data.setAttribute("categoryListLine", index, "categoryListLineNameLink", "title", stat.getCategory().getDescription());
|
||||
data.setAttribute("categoryListLine", index, "categoryListLineNameLogo", "src", stat.getCategory().getLogoPath());
|
||||
|
||||
data.setEscapedContent("categoryListLine", index, "categoryListLineSoftwares", stat.getCategory().getSoftwares().sort().toStringWithFrenchCommas());
|
||||
data.setEscapedContent("categoryListLine", index, "categoryListLineSoftwares",
|
||||
stat.getCategory().getSoftwares().sort().toStringWithFrenchCommas());
|
||||
data.setContent("categoryListLine", index, "categoryListLineOrganizationCount", stat.getOrganizationCount());
|
||||
data.setContent("categoryListLine", index, "categoryListLineServiceCount", StatoolInfosUtils.defaultIfZero(stat.getServiceCount(), "😿"));
|
||||
data.setContent("categoryListLine", index, "categoryListLineServiceCount",
|
||||
StatoolInfosUtils.defaultIfZero(stat.getServiceCount(), "😿"));
|
||||
data.setContent("categoryListLine", index, "categoryListLineUserCount", StatoolInfosUtils.defaultIfZero(stat.getUserCount(), "😢"));
|
||||
data.setContent("categoryListLine", index, "categoryListLineVisitCount", StatoolInfosUtils.defaultIfZero(stat.getVisitCount(), "😞"));
|
||||
|
||||
|
|
|
@ -57,6 +57,9 @@ public class IndexPage extends HttpServlet
|
|||
{
|
||||
logger.info("PAGE Fédération > Exports");
|
||||
|
||||
String html = StatoolInfosWeb.instance().getHtmlCache().get(this.getClass().getCanonicalName());
|
||||
if (html == null)
|
||||
{
|
||||
// Get parameters.
|
||||
// ===============
|
||||
|
||||
|
@ -74,7 +77,9 @@ public class IndexPage extends HttpServlet
|
|||
BreadcrumbTrail trail = new BreadcrumbTrail();
|
||||
trail.add(StatoolInfosWeb.instance().getFederation().getName(), "/federation/organizations/");
|
||||
trail.add("Exports", "/federation/exports/");
|
||||
String html = WebCharterView.build(headerView, contentView, trail);
|
||||
html = WebCharterView.build(headerView, contentView, trail);
|
||||
StatoolInfosWeb.instance().getHtmlCache().put(this.getClass().getCanonicalName(), html);
|
||||
}
|
||||
|
||||
// Display page.
|
||||
response.setContentType("application/xhtml+xml; charset=UTF-8");
|
||||
|
|
|
@ -65,6 +65,9 @@ public class MetricGenericPage extends HttpServlet
|
|||
{
|
||||
logger.info("PAGE Federation > Metrics > Generic");
|
||||
|
||||
String html = StatoolInfosWeb.instance().getHtmlCache().get(this.getClass().getCanonicalName());
|
||||
if (html == null)
|
||||
{
|
||||
// Get parameters.
|
||||
// ===============
|
||||
|
||||
|
@ -85,7 +88,9 @@ public class MetricGenericPage extends HttpServlet
|
|||
trail.add("Métriques", "/federation/metrics/");
|
||||
trail.add("Génériques", "/federation/metrics/generic.xhtml");
|
||||
|
||||
String html = WebCharterView.build(headerView, contentView, trail);
|
||||
html = WebCharterView.build(headerView, contentView, trail);
|
||||
StatoolInfosWeb.instance().getHtmlCache().put(this.getClass().getCanonicalName(), html);
|
||||
}
|
||||
|
||||
// Display page.
|
||||
response.setContentType("application/xhtml+xml; charset=UTF-8");
|
||||
|
@ -123,19 +128,23 @@ public class MetricGenericPage extends HttpServlet
|
|||
//
|
||||
data.setContent("graphic.users", MetricHtmlizer.htmlize(federation, view, period, "metrics.service.users", ChartColor.GREEN));
|
||||
|
||||
data.setContent("graphic.users.ipv4-ipv6", MetricHtmlizer.htmlize(federation, view, period, "service.users (ipv4 + ipv6)", "metrics.service.users.ipv4", ChartColor.YELLOW,
|
||||
"metrics.service.users.ipv6", ChartColor.GREEN));
|
||||
data.setContent("graphic.users.ipv4-ipv6", MetricHtmlizer.htmlize(federation, view, period, "service.users (ipv4 + ipv6)",
|
||||
"metrics.service.users.ipv4", ChartColor.YELLOW, "metrics.service.users.ipv6", ChartColor.GREEN));
|
||||
data.setContent("graphic.users.ipv4", MetricHtmlizer.htmlize(federation, view, period, "metrics.service.users.ipv4", ChartColor.YELLOW));
|
||||
data.setContent("graphic.users.ipv6", MetricHtmlizer.htmlize(federation, view, period, "metrics.service.users.ipv6", ChartColor.GREEN));
|
||||
|
||||
data.setContent("graphic.accounts", MetricHtmlizer.htmlize(federation, view, period, "metrics.service.accounts", ChartColor.GREEN));
|
||||
data.setContent("graphic.accounts.active", MetricHtmlizer.htmlize(federation, view, period, "metrics.service.accounts.active", ChartColor.GREEN));
|
||||
data.setContent("graphic.accounts.active",
|
||||
MetricHtmlizer.htmlize(federation, view, period, "metrics.service.accounts.active", ChartColor.GREEN));
|
||||
|
||||
data.setContent("graphic.database.bytes", MetricHtmlizer.htmlize(federation, view, period, "metrics.service.database.bytes", ChartColor.GREEN));
|
||||
data.setContent("graphic.datafiles.bytes", MetricHtmlizer.htmlize(federation, view, period, "metrics.service.datafiles.bytes", ChartColor.GREEN));
|
||||
data.setContent("graphic.database.bytes",
|
||||
MetricHtmlizer.htmlize(federation, view, period, "metrics.service.database.bytes", ChartColor.GREEN));
|
||||
data.setContent("graphic.datafiles.bytes",
|
||||
MetricHtmlizer.htmlize(federation, view, period, "metrics.service.datafiles.bytes", ChartColor.GREEN));
|
||||
|
||||
//
|
||||
String content = PresenterUtils.dynamize("/website/federation/organizations/organization/services/service/metrics/metricGenericView.xhtml", data).toString();
|
||||
String content = PresenterUtils
|
||||
.dynamize("/website/federation/organizations/organization/services/service/metrics/metricGenericView.xhtml", data).toString();
|
||||
result = XidynUtils.extractBodyContent(content);
|
||||
}
|
||||
catch (XidynException exception)
|
||||
|
|
|
@ -65,6 +65,9 @@ public class MetricSpecificPage extends HttpServlet
|
|||
{
|
||||
logger.info("PAGE Federation > Metrics > Specific");
|
||||
|
||||
String html = StatoolInfosWeb.instance().getHtmlCache().get(this.getClass().getCanonicalName());
|
||||
if (html == null)
|
||||
{
|
||||
// Get parameters.
|
||||
// ===============
|
||||
|
||||
|
@ -85,7 +88,9 @@ public class MetricSpecificPage extends HttpServlet
|
|||
trail.add("Métriques", "/federation/metrics/");
|
||||
trail.add("Spécifiques", "/federation/metrics/specific.xhtml");
|
||||
|
||||
String html = WebCharterView.build(headerView, contentView, trail);
|
||||
html = WebCharterView.build(headerView, contentView, trail);
|
||||
StatoolInfosWeb.instance().getHtmlCache().put(this.getClass().getCanonicalName(), html);
|
||||
}
|
||||
|
||||
// Display page.
|
||||
response.setContentType("application/xhtml+xml; charset=UTF-8");
|
||||
|
@ -122,7 +127,8 @@ public class MetricSpecificPage extends HttpServlet
|
|||
data.setContent("metricMenuView", MetricMenuView.htmlize(TypeMenu.SPECIFIC, view, period));
|
||||
|
||||
//
|
||||
String content = PresenterUtils.dynamize("/website/federation/organizations/organization/services/service/metrics/metricSpecificView.xhtml", data).toString();
|
||||
String content = PresenterUtils
|
||||
.dynamize("/website/federation/organizations/organization/services/service/metrics/metricSpecificView.xhtml", data).toString();
|
||||
result = XidynUtils.extractBodyContent(content);
|
||||
}
|
||||
catch (XidynException exception)
|
||||
|
|
|
@ -66,6 +66,9 @@ public class MetricSummaryPage extends HttpServlet
|
|||
{
|
||||
logger.info("PAGE Federation > Metrics > Summary");
|
||||
|
||||
String html = StatoolInfosWeb.instance().getHtmlCache().get(this.getClass().getCanonicalName());
|
||||
if (html == null)
|
||||
{
|
||||
// Get parameters.
|
||||
// ===============
|
||||
|
||||
|
@ -86,7 +89,9 @@ public class MetricSummaryPage extends HttpServlet
|
|||
trail.add("Métriques", "/federation/metrics/");
|
||||
trail.add("Résumé", "/federation/metrics/summary.xhtml");
|
||||
|
||||
String html = WebCharterView.build(headerView, contentView, trail);
|
||||
html = WebCharterView.build(headerView, contentView, trail);
|
||||
StatoolInfosWeb.instance().getHtmlCache().put(this.getClass().getCanonicalName(), html);
|
||||
}
|
||||
|
||||
// Display page.
|
||||
response.setContentType("application/xhtml+xml; charset=UTF-8");
|
||||
|
@ -129,7 +134,8 @@ public class MetricSummaryPage extends HttpServlet
|
|||
data.setContent("http.visits", MetricHtmlizer.htmlize(federation, view, period, "metrics.http.visits", ChartColor.GREEN));
|
||||
|
||||
//
|
||||
String content = PresenterUtils.dynamize("/website/federation/organizations/organization/services/service/metrics/metricSummaryView.xhtml", data).toString();
|
||||
String content = PresenterUtils
|
||||
.dynamize("/website/federation/organizations/organization/services/service/metrics/metricSummaryView.xhtml", data).toString();
|
||||
result = XidynUtils.extractBodyContent(content);
|
||||
}
|
||||
catch (XidynException exception)
|
||||
|
|
|
@ -65,6 +65,9 @@ public class MetricWebPage extends HttpServlet
|
|||
{
|
||||
logger.info("PAGE Federation > Metrics > Web");
|
||||
|
||||
String html = StatoolInfosWeb.instance().getHtmlCache().get(this.getClass().getCanonicalName());
|
||||
if (html == null)
|
||||
{
|
||||
// Get parameters.
|
||||
// ===============
|
||||
|
||||
|
@ -85,7 +88,9 @@ public class MetricWebPage extends HttpServlet
|
|||
trail.add("Métriques", "/federation/metrics/");
|
||||
trail.add("Web", "/federation/metrics/web.xhtml");
|
||||
|
||||
String html = WebCharterView.build(headerView, contentView, trail);
|
||||
html = WebCharterView.build(headerView, contentView, trail);
|
||||
StatoolInfosWeb.instance().getHtmlCache().put(this.getClass().getCanonicalName(), html);
|
||||
}
|
||||
|
||||
// Display page.
|
||||
response.setContentType("application/xhtml+xml; charset=UTF-8");
|
||||
|
@ -124,22 +129,22 @@ public class MetricWebPage extends HttpServlet
|
|||
//
|
||||
data.setContent("http.hits", MetricHtmlizer.htmlize(federation, view, period, "metrics.http.hits", ChartColor.BLUE));
|
||||
|
||||
data.setContent("http.hits-ipv4ipv6",
|
||||
MetricHtmlizer.htmlize(federation, view, period, "http.hits (ipv4 + ipv6)", "metrics.http.hits.ipv4", ChartColor.YELLOW, "metrics.http.hits.ipv6",
|
||||
ChartColor.GREEN));
|
||||
data.setContent("http.hits-ipv4ipv6", MetricHtmlizer.htmlize(federation, view, period, "http.hits (ipv4 + ipv6)",
|
||||
"metrics.http.hits.ipv4", ChartColor.YELLOW, "metrics.http.hits.ipv6", ChartColor.GREEN));
|
||||
data.setContent("http.hits.ipv4", MetricHtmlizer.htmlize(federation, view, period, "metrics.http.hits.ipv4", ChartColor.YELLOW));
|
||||
data.setContent("http.hits.ipv6", MetricHtmlizer.htmlize(federation, view, period, "metrics.http.hits.ipv6", ChartColor.GREEN));
|
||||
|
||||
data.setContent("http.hits-humansbots", MetricHtmlizer.htmlize(federation, view, period, "http.hits (humans + bots)", "metrics.http.hits.humans", ChartColor.GREEN,
|
||||
"metrics.http.hits.bots", ChartColor.YELLOW));
|
||||
data.setContent("http.hits-humansbots", MetricHtmlizer.htmlize(federation, view, period, "http.hits (humans + bots)",
|
||||
"metrics.http.hits.humans", ChartColor.GREEN, "metrics.http.hits.bots", ChartColor.YELLOW));
|
||||
data.setContent("http.hits.humans", MetricHtmlizer.htmlize(federation, view, period, "metrics.http.hits.humans", ChartColor.GREEN));
|
||||
data.setContent("http.hits.bots", MetricHtmlizer.htmlize(federation, view, period, "metrics.http.hits.bots", ChartColor.YELLOW));
|
||||
|
||||
data.setContent("http.hits.humans-ipv4ipv6",
|
||||
MetricHtmlizer.htmlize(federation, view, period, "http.hits.humans (ipv4 + ipv6)", "metrics.http.hits.humans.ipv4", ChartColor.YELLOW,
|
||||
"metrics.http.hits.humans.ipv6", ChartColor.GREEN));
|
||||
data.setContent("http.hits.humans.ipv4", MetricHtmlizer.htmlize(federation, view, period, "metrics.http.hits.humans.ipv4", ChartColor.YELLOW));
|
||||
data.setContent("http.hits.humans.ipv6", MetricHtmlizer.htmlize(federation, view, period, "metrics.http.hits.humans.ipv6", ChartColor.GREEN));
|
||||
data.setContent("http.hits.humans-ipv4ipv6", MetricHtmlizer.htmlize(federation, view, period, "http.hits.humans (ipv4 + ipv6)",
|
||||
"metrics.http.hits.humans.ipv4", ChartColor.YELLOW, "metrics.http.hits.humans.ipv6", ChartColor.GREEN));
|
||||
data.setContent("http.hits.humans.ipv4",
|
||||
MetricHtmlizer.htmlize(federation, view, period, "metrics.http.hits.humans.ipv4", ChartColor.YELLOW));
|
||||
data.setContent("http.hits.humans.ipv6",
|
||||
MetricHtmlizer.htmlize(federation, view, period, "metrics.http.hits.humans.ipv6", ChartColor.GREEN));
|
||||
|
||||
data.setContent("http.errors", MetricHtmlizer.htmlize(federation, view, period, "metrics.http.errors", ChartColor.RED));
|
||||
data.setContent("http.errors.php", MetricHtmlizer.htmlize(federation, view, period, "metrics.http.errors.php", ChartColor.RED));
|
||||
|
@ -150,43 +155,47 @@ public class MetricWebPage extends HttpServlet
|
|||
|
||||
data.setContent("http.ip", MetricHtmlizer.htmlize(federation, view, period, "metrics.http.ip", ChartColor.BLUE));
|
||||
|
||||
data.setContent("http.ip-humansbots",
|
||||
MetricHtmlizer.htmlize(federation, view, period, "http.ip (humans + bots)", "metrics.http.ip.humans", ChartColor.GREEN, "metrics.http.ip.bots", ChartColor.YELLOW));
|
||||
data.setContent("http.ip-humansbots", MetricHtmlizer.htmlize(federation, view, period, "http.ip (humans + bots)",
|
||||
"metrics.http.ip.humans", ChartColor.GREEN, "metrics.http.ip.bots", ChartColor.YELLOW));
|
||||
data.setContent("http.ip.humans", MetricHtmlizer.htmlize(federation, view, period, "metrics.http.ip.humans", ChartColor.GREEN));
|
||||
data.setContent("http.ip.bots", MetricHtmlizer.htmlize(federation, view, period, "metrics.http.ip.bots", ChartColor.YELLOW));
|
||||
|
||||
data.setContent("http.ip-ipv4ipv6", MetricHtmlizer.htmlize(federation, view, period, "http.ip (ipv4 + ipv6)", "metrics.http.ip.ipv4", ChartColor.YELLOW, "metrics.http.ip.ipv6",
|
||||
ChartColor.GREEN));
|
||||
data.setContent("http.ip-ipv4ipv6", MetricHtmlizer.htmlize(federation, view, period, "http.ip (ipv4 + ipv6)", "metrics.http.ip.ipv4",
|
||||
ChartColor.YELLOW, "metrics.http.ip.ipv6", ChartColor.GREEN));
|
||||
data.setContent("http.ip.ipv4", MetricHtmlizer.htmlize(federation, view, period, "metrics.http.ip.ipv4", ChartColor.YELLOW));
|
||||
data.setContent("http.ip.ipv6", MetricHtmlizer.htmlize(federation, view, period, "metrics.http.ip.ipv6", ChartColor.GREEN));
|
||||
|
||||
data.setContent("http.requesters", MetricHtmlizer.htmlize(federation, view, period, "metrics.http.requesters", ChartColor.BLUE));
|
||||
|
||||
data.setContent("http.requesters-humansbots",
|
||||
MetricHtmlizer.htmlize(federation, view, period, "http.requesters (humans + bots)", "metrics.http.requesters.humans", ChartColor.GREEN,
|
||||
"metrics.http.requesters.bots", ChartColor.YELLOW));
|
||||
data.setContent("http.requesters.humans", MetricHtmlizer.htmlize(federation, view, period, "metrics.http.requesters.humans", ChartColor.GREEN));
|
||||
data.setContent("http.requesters.bots", MetricHtmlizer.htmlize(federation, view, period, "metrics.http.requesters.bots", ChartColor.YELLOW));
|
||||
data.setContent("http.requesters-humansbots", MetricHtmlizer.htmlize(federation, view, period, "http.requesters (humans + bots)",
|
||||
"metrics.http.requesters.humans", ChartColor.GREEN, "metrics.http.requesters.bots", ChartColor.YELLOW));
|
||||
data.setContent("http.requesters.humans",
|
||||
MetricHtmlizer.htmlize(federation, view, period, "metrics.http.requesters.humans", ChartColor.GREEN));
|
||||
data.setContent("http.requesters.bots",
|
||||
MetricHtmlizer.htmlize(federation, view, period, "metrics.http.requesters.bots", ChartColor.YELLOW));
|
||||
|
||||
data.setContent("http.requesters-ipv4ipv6", MetricHtmlizer.htmlize(federation, view, period, "http.requesters (ipv4 + ipv6)", "metrics.http.requesters.ipv4", ChartColor.YELLOW,
|
||||
"metrics.http.requesters.ipv6", ChartColor.GREEN));
|
||||
data.setContent("http.requesters.ipv4", MetricHtmlizer.htmlize(federation, view, period, "metrics.http.requesters.ipv4", ChartColor.YELLOW));
|
||||
data.setContent("http.requesters.ipv6", MetricHtmlizer.htmlize(federation, view, period, "metrics.http.requesters.ipv6", ChartColor.GREEN));
|
||||
data.setContent("http.requesters-ipv4ipv6", MetricHtmlizer.htmlize(federation, view, period, "http.requesters (ipv4 + ipv6)",
|
||||
"metrics.http.requesters.ipv4", ChartColor.YELLOW, "metrics.http.requesters.ipv6", ChartColor.GREEN));
|
||||
data.setContent("http.requesters.ipv4",
|
||||
MetricHtmlizer.htmlize(federation, view, period, "metrics.http.requesters.ipv4", ChartColor.YELLOW));
|
||||
data.setContent("http.requesters.ipv6",
|
||||
MetricHtmlizer.htmlize(federation, view, period, "metrics.http.requesters.ipv6", ChartColor.GREEN));
|
||||
|
||||
data.setContent("http.visitors", MetricHtmlizer.htmlize(federation, view, period, "metrics.http.visitors", ChartColor.BLUE));
|
||||
data.setContent("http.visitors-ipv4ipv6", MetricHtmlizer.htmlize(federation, view, period, "http.visitors (ipv4 + ipv6)", "metrics.http.visitors.ipv4", ChartColor.YELLOW,
|
||||
"metrics.http.visitors.ipv6", ChartColor.GREEN));
|
||||
data.setContent("http.visitors-ipv4ipv6", MetricHtmlizer.htmlize(federation, view, period, "http.visitors (ipv4 + ipv6)",
|
||||
"metrics.http.visitors.ipv4", ChartColor.YELLOW, "metrics.http.visitors.ipv6", ChartColor.GREEN));
|
||||
data.setContent("http.visitors.ipv4", MetricHtmlizer.htmlize(federation, view, period, "metrics.http.visitors.ipv4", ChartColor.YELLOW));
|
||||
data.setContent("http.visitors.ipv6", MetricHtmlizer.htmlize(federation, view, period, "metrics.http.visitors.ipv6", ChartColor.GREEN));
|
||||
|
||||
data.setContent("http.visits", MetricHtmlizer.htmlize(federation, view, period, "metrics.http.visits", ChartColor.BLUE));
|
||||
data.setContent("http.visits-ipv4ipv6", MetricHtmlizer.htmlize(federation, view, period, "http.visits (ipv4 + ipv6)", "metrics.http.visits.ipv4", ChartColor.YELLOW,
|
||||
"metrics.http.visits.ipv6", ChartColor.GREEN));
|
||||
data.setContent("http.visits-ipv4ipv6", MetricHtmlizer.htmlize(federation, view, period, "http.visits (ipv4 + ipv6)",
|
||||
"metrics.http.visits.ipv4", ChartColor.YELLOW, "metrics.http.visits.ipv6", ChartColor.GREEN));
|
||||
data.setContent("http.visits.ipv4", MetricHtmlizer.htmlize(federation, view, period, "metrics.http.visits.ipv4", ChartColor.YELLOW));
|
||||
data.setContent("http.visits.ipv6", MetricHtmlizer.htmlize(federation, view, period, "metrics.http.visits.ipv6", ChartColor.GREEN));
|
||||
|
||||
//
|
||||
String content = PresenterUtils.dynamize("/website/federation/organizations/organization/services/service/metrics/metricWebView.xhtml", data).toString();
|
||||
String content = PresenterUtils
|
||||
.dynamize("/website/federation/organizations/organization/services/service/metrics/metricWebView.xhtml", data).toString();
|
||||
result = XidynUtils.extractBodyContent(content);
|
||||
}
|
||||
catch (XidynException exception)
|
||||
|
|
|
@ -52,7 +52,7 @@ public class IndexPage extends HttpServlet
|
|||
{
|
||||
try
|
||||
{
|
||||
String html = StatoolInfosWeb.instance().getHtmlCache().get(IndexPage.class.getCanonicalName());
|
||||
String html = StatoolInfosWeb.instance().getHtmlCache().get(this.getClass().getCanonicalName());
|
||||
if (html == null)
|
||||
{
|
||||
// Get parameters.
|
||||
|
@ -73,7 +73,7 @@ public class IndexPage extends HttpServlet
|
|||
trail.add("Organisations", "/federation/organizations/");
|
||||
|
||||
html = WebCharterView.build(headerView, contentView, trail);
|
||||
StatoolInfosWeb.instance().getHtmlCache().put(IndexPage.class.getCanonicalName(), html);
|
||||
StatoolInfosWeb.instance().getHtmlCache().put(this.getClass().getCanonicalName(), html);
|
||||
}
|
||||
|
||||
// Display page.
|
||||
|
|
|
@ -56,6 +56,9 @@ public class CrawlPage extends HttpServlet
|
|||
{
|
||||
logger.info("PAGE Organization > Crawl");
|
||||
|
||||
String html = StatoolInfosWeb.instance().getHtmlCache().get(this.getClass().getCanonicalName());
|
||||
if (html == null)
|
||||
{
|
||||
// Get parameters.
|
||||
// ===============
|
||||
|
||||
|
@ -75,7 +78,9 @@ public class CrawlPage extends HttpServlet
|
|||
trail.add(organization.getName(), "/federation/organizations/" + organization.getTechnicalName() + "/");
|
||||
trail.add("Journal", "/federation/organizations/" + organization.getTechnicalName() + "/crawl.xhtml");
|
||||
|
||||
String html = WebCharterView.build(headerView, contentView, trail);
|
||||
html = WebCharterView.build(headerView, contentView, trail);
|
||||
StatoolInfosWeb.instance().getHtmlCache().put(this.getClass().getCanonicalName(), html);
|
||||
}
|
||||
|
||||
// Display page.
|
||||
response.setContentType("application/xhtml+xml; charset=UTF-8");
|
||||
|
|
|
@ -56,6 +56,9 @@ public class PropertyAlertPage extends HttpServlet
|
|||
{
|
||||
logger.info("PAGE Organization > PropertyAlert");
|
||||
|
||||
String html = StatoolInfosWeb.instance().getHtmlCache().get(this.getClass().getCanonicalName());
|
||||
if (html == null)
|
||||
{
|
||||
// Get parameters.
|
||||
// ===============
|
||||
|
||||
|
@ -75,7 +78,9 @@ public class PropertyAlertPage extends HttpServlet
|
|||
trail.add(organization.getName(), "/federation/organizations/" + organization.getTechnicalName() + "/");
|
||||
trail.add("Alertes", "/federation/organizations/" + organization.getTechnicalName() + "/propertyAlert.xhtml");
|
||||
|
||||
String html = WebCharterView.build(headerView, contentView, trail);
|
||||
html = WebCharterView.build(headerView, contentView, trail);
|
||||
StatoolInfosWeb.instance().getHtmlCache().put(this.getClass().getCanonicalName(), html);
|
||||
}
|
||||
|
||||
// Display page.
|
||||
response.setContentType("application/xhtml+xml; charset=UTF-8");
|
||||
|
|
|
@ -56,6 +56,9 @@ public class PropertyCheckPage extends HttpServlet
|
|||
{
|
||||
logger.info("PAGE Organization > PropertyCheck");
|
||||
|
||||
String html = StatoolInfosWeb.instance().getHtmlCache().get(this.getClass().getCanonicalName());
|
||||
if (html == null)
|
||||
{
|
||||
// Get parameters.
|
||||
// ===============
|
||||
|
||||
|
@ -75,7 +78,9 @@ public class PropertyCheckPage extends HttpServlet
|
|||
trail.add(organization.getName(), "/federation/organizations/" + organization.getTechnicalName() + "/");
|
||||
trail.add("Propriétés", "/federation/organizations/" + organization.getTechnicalName() + "/propertyCheck.xhtml");
|
||||
|
||||
String html = WebCharterView.build(headerView, contentView, trail);
|
||||
html = WebCharterView.build(headerView, contentView, trail);
|
||||
StatoolInfosWeb.instance().getHtmlCache().put(this.getClass().getCanonicalName(), html);
|
||||
}
|
||||
|
||||
// Display page.
|
||||
response.setContentType("application/xhtml+xml; charset=UTF-8");
|
||||
|
|
|
@ -56,6 +56,9 @@ public class ServicesPage extends HttpServlet
|
|||
{
|
||||
logger.info("PAGE Organization > Services");
|
||||
|
||||
String html = StatoolInfosWeb.instance().getHtmlCache().get(this.getClass().getCanonicalName());
|
||||
if (html == null)
|
||||
{
|
||||
// Get parameters.
|
||||
// ===============
|
||||
|
||||
|
@ -75,7 +78,9 @@ public class ServicesPage extends HttpServlet
|
|||
trail.add(organization.getName(), "/federation/organizations/" + organization.getTechnicalName() + "/");
|
||||
trail.add("Services", "/federation/organizations/" + organization.getTechnicalName() + "/services.xhtml");
|
||||
|
||||
String html = WebCharterView.build(headerView, contentView, trail);
|
||||
html = WebCharterView.build(headerView, contentView, trail);
|
||||
StatoolInfosWeb.instance().getHtmlCache().put(this.getClass().getCanonicalName(), html);
|
||||
}
|
||||
|
||||
// Display page.
|
||||
response.setContentType("application/xhtml+xml; charset=UTF-8");
|
||||
|
|
|
@ -64,6 +64,9 @@ public class StatsPage extends HttpServlet
|
|||
{
|
||||
logger.info("PAGE Organization > Stats");
|
||||
|
||||
String html = StatoolInfosWeb.instance().getHtmlCache().get(this.getClass().getCanonicalName());
|
||||
if (html == null)
|
||||
{
|
||||
// Get parameters.
|
||||
// ===============
|
||||
|
||||
|
@ -83,7 +86,9 @@ public class StatsPage extends HttpServlet
|
|||
trail.add(organization.getName(), "/federation/organizations/" + organization.getTechnicalName() + "/");
|
||||
trail.add("Stats", "/federation/organizations/" + organization.getTechnicalName() + "/stats.xhtml");
|
||||
|
||||
String html = WebCharterView.build(headerView, contentView, trail);
|
||||
html = WebCharterView.build(headerView, contentView, trail);
|
||||
StatoolInfosWeb.instance().getHtmlCache().put(this.getClass().getCanonicalName(), html);
|
||||
}
|
||||
|
||||
// Display page.
|
||||
response.setContentType("application/xhtml+xml; charset=UTF-8");
|
||||
|
|
|
@ -56,6 +56,9 @@ public class UptimePage extends HttpServlet
|
|||
{
|
||||
logger.info("PAGE Organization > Uptime");
|
||||
|
||||
String html = StatoolInfosWeb.instance().getHtmlCache().get(this.getClass().getCanonicalName());
|
||||
if (html == null)
|
||||
{
|
||||
// Get parameters.
|
||||
// ===============
|
||||
|
||||
|
@ -75,7 +78,9 @@ public class UptimePage extends HttpServlet
|
|||
trail.add(organization.getName(), "/federation/organizations/" + organization.getTechnicalName() + "/");
|
||||
trail.add("Disponibilité", "/federation/organizations/" + organization.getTechnicalName() + "/uptime.xhtml");
|
||||
|
||||
String html = WebCharterView.build(headerView, contentView, trail);
|
||||
html = WebCharterView.build(headerView, contentView, trail);
|
||||
StatoolInfosWeb.instance().getHtmlCache().put(this.getClass().getCanonicalName(), html);
|
||||
}
|
||||
|
||||
// Display page.
|
||||
response.setContentType("application/xhtml+xml; charset=UTF-8");
|
||||
|
|
|
@ -66,6 +66,9 @@ public class MetricGenericPage extends HttpServlet
|
|||
{
|
||||
logger.info("PAGE Organization > Metrics > Summary");
|
||||
|
||||
String html = StatoolInfosWeb.instance().getHtmlCache().get(this.getClass().getCanonicalName());
|
||||
if (html == null)
|
||||
{
|
||||
// Get parameters.
|
||||
// ===============
|
||||
|
||||
|
@ -88,7 +91,9 @@ public class MetricGenericPage extends HttpServlet
|
|||
trail.add("Métriques", "/federation/organizations/" + organization.getTechnicalName() + "/metrics/");
|
||||
trail.add("Génériques", "/federation/organizations/" + organization.getTechnicalName() + "/metrics/generic.xhtml");
|
||||
|
||||
String html = WebCharterView.build(headerView, contentView, trail);
|
||||
html = WebCharterView.build(headerView, contentView, trail);
|
||||
StatoolInfosWeb.instance().getHtmlCache().put(this.getClass().getCanonicalName(), html);
|
||||
}
|
||||
|
||||
// Display page.
|
||||
response.setContentType("application/xhtml+xml; charset=UTF-8");
|
||||
|
@ -116,7 +121,8 @@ public class MetricGenericPage extends HttpServlet
|
|||
* @throws IOException
|
||||
* Signals that an I/O exception has occurred.
|
||||
*/
|
||||
public static String htmlize(final Organization organization, final ViewMenu view, final PeriodMenu period) throws StatoolInfosWebException, IOException
|
||||
public static String htmlize(final Organization organization, final ViewMenu view, final PeriodMenu period)
|
||||
throws StatoolInfosWebException, IOException
|
||||
{
|
||||
String result;
|
||||
|
||||
|
@ -130,18 +136,23 @@ public class MetricGenericPage extends HttpServlet
|
|||
//
|
||||
data.setContent("graphic.users", MetricHtmlizer.htmlize(organization, view, period, "metrics.service.users", ChartColor.GREEN));
|
||||
|
||||
data.setContent("graphic.users.ipv4-ipv6", MetricHtmlizer.htmlize(organization, view, period, "service.users (ipv4 + ipv6)", "metrics.service.users.ipv4", ChartColor.YELLOW,
|
||||
"metrics.service.users.ipv6", ChartColor.GREEN));
|
||||
data.setContent("graphic.users.ipv4", MetricHtmlizer.htmlize(organization, view, period, "metrics.service.users.ipv4", ChartColor.YELLOW));
|
||||
data.setContent("graphic.users.ipv4-ipv6", MetricHtmlizer.htmlize(organization, view, period, "service.users (ipv4 + ipv6)",
|
||||
"metrics.service.users.ipv4", ChartColor.YELLOW, "metrics.service.users.ipv6", ChartColor.GREEN));
|
||||
data.setContent("graphic.users.ipv4",
|
||||
MetricHtmlizer.htmlize(organization, view, period, "metrics.service.users.ipv4", ChartColor.YELLOW));
|
||||
data.setContent("graphic.users.ipv6", MetricHtmlizer.htmlize(organization, view, period, "metrics.service.users.ipv6", ChartColor.GREEN));
|
||||
|
||||
data.setContent("graphic.accounts", MetricHtmlizer.htmlize(organization, view, period, "metrics.service.accounts", ChartColor.GREEN));
|
||||
data.setContent("graphic.accounts.active", MetricHtmlizer.htmlize(organization, view, period, "metrics.service.accounts.active", ChartColor.GREEN));
|
||||
data.setContent("graphic.database.bytes", MetricHtmlizer.htmlize(organization, view, period, "metrics.service.database.bytes", ChartColor.GREEN));
|
||||
data.setContent("graphic.datafiles.bytes", MetricHtmlizer.htmlize(organization, view, period, "metrics.service.datafiles.bytes", ChartColor.GREEN));
|
||||
data.setContent("graphic.accounts.active",
|
||||
MetricHtmlizer.htmlize(organization, view, period, "metrics.service.accounts.active", ChartColor.GREEN));
|
||||
data.setContent("graphic.database.bytes",
|
||||
MetricHtmlizer.htmlize(organization, view, period, "metrics.service.database.bytes", ChartColor.GREEN));
|
||||
data.setContent("graphic.datafiles.bytes",
|
||||
MetricHtmlizer.htmlize(organization, view, period, "metrics.service.datafiles.bytes", ChartColor.GREEN));
|
||||
|
||||
//
|
||||
String content = PresenterUtils.dynamize("/website/federation/organizations/organization/services/service/metrics/metricGenericView.xhtml", data).toString();
|
||||
String content = PresenterUtils
|
||||
.dynamize("/website/federation/organizations/organization/services/service/metrics/metricGenericView.xhtml", data).toString();
|
||||
result = XidynUtils.extractBodyContent(content);
|
||||
}
|
||||
catch (XidynException exception)
|
||||
|
|
|
@ -64,6 +64,9 @@ public class MetricSpecificPage extends HttpServlet
|
|||
{
|
||||
logger.info("PAGE Organization > Metrics > Specific");
|
||||
|
||||
String html = StatoolInfosWeb.instance().getHtmlCache().get(this.getClass().getCanonicalName());
|
||||
if (html == null)
|
||||
{
|
||||
// Get parameters.
|
||||
// ===============
|
||||
|
||||
|
@ -86,7 +89,9 @@ public class MetricSpecificPage extends HttpServlet
|
|||
trail.add("Métriques", "/federation/organizations/" + organization.getTechnicalName() + "/metrics/");
|
||||
trail.add("Spécifiques", "/federation/organizations/" + organization.getTechnicalName() + "/metrics/specific.xhtml");
|
||||
|
||||
String html = WebCharterView.build(headerView, contentView, trail);
|
||||
html = WebCharterView.build(headerView, contentView, trail);
|
||||
StatoolInfosWeb.instance().getHtmlCache().put(this.getClass().getCanonicalName(), html);
|
||||
}
|
||||
|
||||
// Display page.
|
||||
response.setContentType("application/xhtml+xml; charset=UTF-8");
|
||||
|
@ -113,7 +118,8 @@ public class MetricSpecificPage extends HttpServlet
|
|||
* @throws IOException
|
||||
* Signals that an I/O exception has occurred.
|
||||
*/
|
||||
public static String htmlize(final Organization organization, final ViewMenu view, final PeriodMenu period) throws StatoolInfosWebException, IOException
|
||||
public static String htmlize(final Organization organization, final ViewMenu view, final PeriodMenu period)
|
||||
throws StatoolInfosWebException, IOException
|
||||
{
|
||||
String result;
|
||||
|
||||
|
@ -127,7 +133,8 @@ public class MetricSpecificPage extends HttpServlet
|
|||
data.setContent("metricMenuView", MetricMenuView.htmlize(TypeMenu.SPECIFIC, view, period));
|
||||
|
||||
//
|
||||
String content = PresenterUtils.dynamize("/website/federation/organizations/organization/services/service/metrics/metricSpecificView.xhtml", data).toString();
|
||||
String content = PresenterUtils
|
||||
.dynamize("/website/federation/organizations/organization/services/service/metrics/metricSpecificView.xhtml", data).toString();
|
||||
result = XidynUtils.extractBodyContent(content);
|
||||
}
|
||||
catch (XidynException exception)
|
||||
|
|
|
@ -66,6 +66,9 @@ public class MetricSummaryPage extends HttpServlet
|
|||
{
|
||||
logger.info("PAGE Organization > Metrics > Summary");
|
||||
|
||||
String html = StatoolInfosWeb.instance().getHtmlCache().get(this.getClass().getCanonicalName());
|
||||
if (html == null)
|
||||
{
|
||||
// Get parameters.
|
||||
// ===============
|
||||
|
||||
|
@ -88,7 +91,9 @@ public class MetricSummaryPage extends HttpServlet
|
|||
trail.add("Métriques", "/federation/organizations/" + organization.getTechnicalName() + "/metrics/");
|
||||
trail.add("Résumé", "/federation/organizations/" + organization.getTechnicalName() + "/metrics/summary.xhtml");
|
||||
|
||||
String html = WebCharterView.build(headerView, contentView, trail);
|
||||
html = WebCharterView.build(headerView, contentView, trail);
|
||||
StatoolInfosWeb.instance().getHtmlCache().put(this.getClass().getCanonicalName(), html);
|
||||
}
|
||||
|
||||
// Display page.
|
||||
response.setContentType("application/xhtml+xml; charset=UTF-8");
|
||||
|
@ -116,7 +121,8 @@ public class MetricSummaryPage extends HttpServlet
|
|||
* @throws IOException
|
||||
* Signals that an I/O exception has occurred.
|
||||
*/
|
||||
public static String htmlize(final Organization organization, final ViewMenu view, final PeriodMenu period) throws StatoolInfosWebException, IOException
|
||||
public static String htmlize(final Organization organization, final ViewMenu view, final PeriodMenu period)
|
||||
throws StatoolInfosWebException, IOException
|
||||
{
|
||||
String result;
|
||||
|
||||
|
@ -131,7 +137,8 @@ public class MetricSummaryPage extends HttpServlet
|
|||
data.setContent("http.visits", MetricHtmlizer.htmlize(organization, view, period, "metrics.http.visits", ChartColor.GREEN));
|
||||
|
||||
//
|
||||
String content = PresenterUtils.dynamize("/website/federation/organizations/organization/services/service/metrics/metricSummaryView.xhtml", data).toString();
|
||||
String content = PresenterUtils
|
||||
.dynamize("/website/federation/organizations/organization/services/service/metrics/metricSummaryView.xhtml", data).toString();
|
||||
result = XidynUtils.extractBodyContent(content);
|
||||
}
|
||||
catch (XidynException exception)
|
||||
|
|
|
@ -65,6 +65,9 @@ public class MetricWebPage extends HttpServlet
|
|||
{
|
||||
logger.info("PAGE Organization > Metrics > Web");
|
||||
|
||||
String html = StatoolInfosWeb.instance().getHtmlCache().get(this.getClass().getCanonicalName());
|
||||
if (html == null)
|
||||
{
|
||||
// Get parameters.
|
||||
// ===============
|
||||
|
||||
|
@ -87,7 +90,9 @@ public class MetricWebPage extends HttpServlet
|
|||
trail.add("Métriques", "/federation/organizations/" + organization.getTechnicalName() + "/metrics/");
|
||||
trail.add("Web", "/federation/organizations/" + organization.getTechnicalName() + "/metrics/web.xhtml");
|
||||
|
||||
String html = WebCharterView.build(headerView, contentView, trail);
|
||||
html = WebCharterView.build(headerView, contentView, trail);
|
||||
StatoolInfosWeb.instance().getHtmlCache().put(this.getClass().getCanonicalName(), html);
|
||||
}
|
||||
|
||||
// Display page.
|
||||
response.setContentType("application/xhtml+xml; charset=UTF-8");
|
||||
|
@ -113,7 +118,8 @@ public class MetricWebPage extends HttpServlet
|
|||
* @throws IOException
|
||||
* Signals that an I/O exception has occurred.
|
||||
*/
|
||||
public static String htmlize(final Organization organization, final ViewMenu view, final PeriodMenu period) throws StatoolInfosWebException, IOException
|
||||
public static String htmlize(final Organization organization, final ViewMenu view, final PeriodMenu period)
|
||||
throws StatoolInfosWebException, IOException
|
||||
{
|
||||
String result;
|
||||
|
||||
|
@ -127,20 +133,22 @@ public class MetricWebPage extends HttpServlet
|
|||
//
|
||||
data.setContent("http.hits", MetricHtmlizer.htmlize(organization, view, period, "metrics.http.hits", ChartColor.BLUE));
|
||||
|
||||
data.setContent("http.hits-ipv4ipv6",
|
||||
MetricHtmlizer.htmlize(organization, view, period, "http.hits (ipv4 + ipv6)", "metrics.http.hits.ipv4", ChartColor.YELLOW, "metrics.http.hits.ipv6", ChartColor.GREEN));
|
||||
data.setContent("http.hits-ipv4ipv6", MetricHtmlizer.htmlize(organization, view, period, "http.hits (ipv4 + ipv6)",
|
||||
"metrics.http.hits.ipv4", ChartColor.YELLOW, "metrics.http.hits.ipv6", ChartColor.GREEN));
|
||||
data.setContent("http.hits.ipv4", MetricHtmlizer.htmlize(organization, view, period, "metrics.http.hits.ipv4", ChartColor.YELLOW));
|
||||
data.setContent("http.hits.ipv6", MetricHtmlizer.htmlize(organization, view, period, "metrics.http.hits.ipv6", ChartColor.GREEN));
|
||||
|
||||
data.setContent("http.hits-humansbots", MetricHtmlizer.htmlize(organization, view, period, "http.hits (humans + bots)", "metrics.http.hits.humans", ChartColor.GREEN,
|
||||
"metrics.http.hits.bots", ChartColor.YELLOW));
|
||||
data.setContent("http.hits-humansbots", MetricHtmlizer.htmlize(organization, view, period, "http.hits (humans + bots)",
|
||||
"metrics.http.hits.humans", ChartColor.GREEN, "metrics.http.hits.bots", ChartColor.YELLOW));
|
||||
data.setContent("http.hits.humans", MetricHtmlizer.htmlize(organization, view, period, "metrics.http.hits.humans", ChartColor.GREEN));
|
||||
data.setContent("http.hits.bots", MetricHtmlizer.htmlize(organization, view, period, "metrics.http.hits.bots", ChartColor.YELLOW));
|
||||
|
||||
data.setContent("http.hits.humans-ipv4ipv6", MetricHtmlizer.htmlize(organization, view, period, "http.hits.humans (ipv4 + ipv6)", "metrics.http.hits.humans.ipv4", ChartColor.YELLOW,
|
||||
"metrics.http.hits.humans.ipv6", ChartColor.GREEN));
|
||||
data.setContent("http.hits.humans.ipv4", MetricHtmlizer.htmlize(organization, view, period, "metrics.http.hits.humans.ipv4", ChartColor.YELLOW));
|
||||
data.setContent("http.hits.humans.ipv6", MetricHtmlizer.htmlize(organization, view, period, "metrics.http.hits.humans.ipv6", ChartColor.GREEN));
|
||||
data.setContent("http.hits.humans-ipv4ipv6", MetricHtmlizer.htmlize(organization, view, period, "http.hits.humans (ipv4 + ipv6)",
|
||||
"metrics.http.hits.humans.ipv4", ChartColor.YELLOW, "metrics.http.hits.humans.ipv6", ChartColor.GREEN));
|
||||
data.setContent("http.hits.humans.ipv4",
|
||||
MetricHtmlizer.htmlize(organization, view, period, "metrics.http.hits.humans.ipv4", ChartColor.YELLOW));
|
||||
data.setContent("http.hits.humans.ipv6",
|
||||
MetricHtmlizer.htmlize(organization, view, period, "metrics.http.hits.humans.ipv6", ChartColor.GREEN));
|
||||
|
||||
data.setContent("http.errors", MetricHtmlizer.htmlize(organization, view, period, "metrics.http.errors", ChartColor.RED));
|
||||
data.setContent("http.errors.php", MetricHtmlizer.htmlize(organization, view, period, "metrics.http.errors.php", ChartColor.RED));
|
||||
|
@ -151,42 +159,48 @@ public class MetricWebPage extends HttpServlet
|
|||
|
||||
data.setContent("http.ip", MetricHtmlizer.htmlize(organization, view, period, "metrics.http.ip", ChartColor.BLUE));
|
||||
|
||||
data.setContent("http.ip-humansbots", MetricHtmlizer.htmlize(organization, view, period, "http.ip (humans + bots)", "metrics.http.ip.humans", ChartColor.GREEN,
|
||||
"metrics.http.ip.bots", ChartColor.YELLOW));
|
||||
data.setContent("http.ip-humansbots", MetricHtmlizer.htmlize(organization, view, period, "http.ip (humans + bots)",
|
||||
"metrics.http.ip.humans", ChartColor.GREEN, "metrics.http.ip.bots", ChartColor.YELLOW));
|
||||
data.setContent("http.ip.humans", MetricHtmlizer.htmlize(organization, view, period, "metrics.http.ip.humans", ChartColor.GREEN));
|
||||
data.setContent("http.ip.bots", MetricHtmlizer.htmlize(organization, view, period, "metrics.http.ip.bots", ChartColor.YELLOW));
|
||||
|
||||
data.setContent("http.ip-ipv4ipv6", MetricHtmlizer.htmlize(organization, view, period, "http.ip (ipv4 + ipv6)", "metrics.http.ip.ipv4", ChartColor.YELLOW, "metrics.http.ip.ipv6",
|
||||
ChartColor.GREEN));
|
||||
data.setContent("http.ip-ipv4ipv6", MetricHtmlizer.htmlize(organization, view, period, "http.ip (ipv4 + ipv6)", "metrics.http.ip.ipv4",
|
||||
ChartColor.YELLOW, "metrics.http.ip.ipv6", ChartColor.GREEN));
|
||||
data.setContent("http.ip.ipv4", MetricHtmlizer.htmlize(organization, view, period, "metrics.http.ip.ipv4", ChartColor.YELLOW));
|
||||
data.setContent("http.ip.ipv6", MetricHtmlizer.htmlize(organization, view, period, "metrics.http.ip.ipv6", ChartColor.GREEN));
|
||||
|
||||
data.setContent("http.requesters", MetricHtmlizer.htmlize(organization, view, period, "metrics.http.requesters", ChartColor.BLUE));
|
||||
|
||||
data.setContent("http.requesters-humansbots", MetricHtmlizer.htmlize(organization, view, period, "http.requesters (humans + bots)", "metrics.http.requesters.humans", ChartColor.GREEN,
|
||||
"metrics.http.requesters.bots", ChartColor.YELLOW));
|
||||
data.setContent("http.requesters.humans", MetricHtmlizer.htmlize(organization, view, period, "metrics.http.requesters.humans", ChartColor.GREEN));
|
||||
data.setContent("http.requesters.bots", MetricHtmlizer.htmlize(organization, view, period, "metrics.http.requesters.bots", ChartColor.YELLOW));
|
||||
data.setContent("http.requesters-humansbots", MetricHtmlizer.htmlize(organization, view, period, "http.requesters (humans + bots)",
|
||||
"metrics.http.requesters.humans", ChartColor.GREEN, "metrics.http.requesters.bots", ChartColor.YELLOW));
|
||||
data.setContent("http.requesters.humans",
|
||||
MetricHtmlizer.htmlize(organization, view, period, "metrics.http.requesters.humans", ChartColor.GREEN));
|
||||
data.setContent("http.requesters.bots",
|
||||
MetricHtmlizer.htmlize(organization, view, period, "metrics.http.requesters.bots", ChartColor.YELLOW));
|
||||
|
||||
data.setContent("http.requesters-ipv4ipv6", MetricHtmlizer.htmlize(organization, view, period, "http.requesters(ipv4 + ipv6)", "metrics.http.requesters.ipv4", ChartColor.YELLOW,
|
||||
"metrics.http.requesters.ipv6", ChartColor.GREEN));
|
||||
data.setContent("http.requesters.ipv4", MetricHtmlizer.htmlize(organization, view, period, "metrics.http.requesters.ipv4", ChartColor.YELLOW));
|
||||
data.setContent("http.requesters.ipv6", MetricHtmlizer.htmlize(organization, view, period, "metrics.http.requesters.ipv6", ChartColor.GREEN));
|
||||
data.setContent("http.requesters-ipv4ipv6", MetricHtmlizer.htmlize(organization, view, period, "http.requesters(ipv4 + ipv6)",
|
||||
"metrics.http.requesters.ipv4", ChartColor.YELLOW, "metrics.http.requesters.ipv6", ChartColor.GREEN));
|
||||
data.setContent("http.requesters.ipv4",
|
||||
MetricHtmlizer.htmlize(organization, view, period, "metrics.http.requesters.ipv4", ChartColor.YELLOW));
|
||||
data.setContent("http.requesters.ipv6",
|
||||
MetricHtmlizer.htmlize(organization, view, period, "metrics.http.requesters.ipv6", ChartColor.GREEN));
|
||||
|
||||
data.setContent("http.visitors", MetricHtmlizer.htmlize(organization, view, period, "metrics.http.visitors", ChartColor.BLUE));
|
||||
data.setContent("http.visitors-ipv4ipv6", MetricHtmlizer.htmlize(organization, view, period, "http.visitors (ipv4 + ipv6)", "metrics.http.visitors.ipv4", ChartColor.YELLOW,
|
||||
"metrics.http.visitors.ipv6", ChartColor.GREEN));
|
||||
data.setContent("http.visitors.ipv4", MetricHtmlizer.htmlize(organization, view, period, "metrics.http.visitors.ipv4", ChartColor.YELLOW));
|
||||
data.setContent("http.visitors-ipv4ipv6", MetricHtmlizer.htmlize(organization, view, period, "http.visitors (ipv4 + ipv6)",
|
||||
"metrics.http.visitors.ipv4", ChartColor.YELLOW, "metrics.http.visitors.ipv6", ChartColor.GREEN));
|
||||
data.setContent("http.visitors.ipv4",
|
||||
MetricHtmlizer.htmlize(organization, view, period, "metrics.http.visitors.ipv4", ChartColor.YELLOW));
|
||||
data.setContent("http.visitors.ipv6", MetricHtmlizer.htmlize(organization, view, period, "metrics.http.visitors.ipv6", ChartColor.GREEN));
|
||||
|
||||
data.setContent("http.visits", MetricHtmlizer.htmlize(organization, view, period, "metrics.http.visits", ChartColor.BLUE));
|
||||
data.setContent("http.visits-ipv4ipv6", MetricHtmlizer.htmlize(organization, view, period, "http.visits (ipv4 + ipv6)", "metrics.http.visits.ipv4", ChartColor.YELLOW,
|
||||
"metrics.http.visits.ipv6", ChartColor.GREEN));
|
||||
data.setContent("http.visits-ipv4ipv6", MetricHtmlizer.htmlize(organization, view, period, "http.visits (ipv4 + ipv6)",
|
||||
"metrics.http.visits.ipv4", ChartColor.YELLOW, "metrics.http.visits.ipv6", ChartColor.GREEN));
|
||||
data.setContent("http.visits.ipv4", MetricHtmlizer.htmlize(organization, view, period, "metrics.http.visits.ipv4", ChartColor.YELLOW));
|
||||
data.setContent("http.visits.ipv6", MetricHtmlizer.htmlize(organization, view, period, "metrics.http.visits.ipv6", ChartColor.GREEN));
|
||||
|
||||
//
|
||||
String content = PresenterUtils.dynamize("/website/federation/organizations/organization/services/service/metrics/metricWebView.xhtml", data).toString();
|
||||
String content = PresenterUtils
|
||||
.dynamize("/website/federation/organizations/organization/services/service/metrics/metricWebView.xhtml", data).toString();
|
||||
result = XidynUtils.extractBodyContent(content);
|
||||
}
|
||||
catch (XidynException exception)
|
||||
|
|
|
@ -34,7 +34,7 @@ import website.charter.ErrorView;
|
|||
/**
|
||||
* The Class IndexPage.
|
||||
*/
|
||||
@KissServlet("^/federation/organizations/[^/]+/services/[^/]+/$")
|
||||
@KissServlet("^/federation/organizations/[^/]+/services/$")
|
||||
public class IndexPage extends HttpServlet
|
||||
{
|
||||
private static final long serialVersionUID = -5951233202690068343L;
|
||||
|
|
|
@ -57,6 +57,9 @@ public class CrawlPage extends HttpServlet
|
|||
{
|
||||
logger.info("PAGE Service > Crawl");
|
||||
|
||||
String html = StatoolInfosWeb.instance().getHtmlCache().get(this.getClass().getCanonicalName());
|
||||
if (html == null)
|
||||
{
|
||||
// Get parameters.
|
||||
// ===============
|
||||
|
||||
|
@ -76,10 +79,14 @@ public class CrawlPage extends HttpServlet
|
|||
trail.add("Organisations", "/federation/organizations/");
|
||||
trail.add(organization.getName(), "/federation/organizations/" + organization.getTechnicalName() + "/");
|
||||
trail.add("Services", "/federation/organizations/" + organization.getTechnicalName() + "/services.xhtml");
|
||||
trail.add(service.getName(), "/federation/organizations/" + organization.getTechnicalName() + "/services/" + service.getTechnicalName() + "/");
|
||||
trail.add("Journal", "/federation/organizations/" + organization.getTechnicalName() + "/services/" + service.getTechnicalName() + "/crawl.xhtml");
|
||||
trail.add(service.getName(),
|
||||
"/federation/organizations/" + organization.getTechnicalName() + "/services/" + service.getTechnicalName() + "/");
|
||||
trail.add("Journal",
|
||||
"/federation/organizations/" + organization.getTechnicalName() + "/services/" + service.getTechnicalName() + "/crawl.xhtml");
|
||||
|
||||
String html = WebCharterView.build(headerView, contentView, trail);
|
||||
html = WebCharterView.build(headerView, contentView, trail);
|
||||
StatoolInfosWeb.instance().getHtmlCache().put(this.getClass().getCanonicalName(), html);
|
||||
}
|
||||
|
||||
// Display page.
|
||||
response.setContentType("application/xhtml+xml; charset=UTF-8");
|
||||
|
|
|
@ -21,6 +21,7 @@ package website.federation.organizations.organization.services.service;
|
|||
import java.io.IOException;
|
||||
|
||||
import fr.devinsy.kiss4web.Redirector;
|
||||
import fr.devinsy.kiss4web.dispatcher.annotation.KissServlet;
|
||||
import fr.devinsy.statoolinfos.core.Organization;
|
||||
import fr.devinsy.statoolinfos.core.Service;
|
||||
import fr.devinsy.statoolinfosweb.StatoolInfosWeb;
|
||||
|
@ -33,6 +34,7 @@ import website.charter.ErrorView;
|
|||
/**
|
||||
* The Class IndexPage.
|
||||
*/
|
||||
@KissServlet("^/federation/organizations/[^/]+/services/[^/]+/$")
|
||||
public class IndexPage extends HttpServlet
|
||||
{
|
||||
private static final long serialVersionUID = -5951233202690068343L;
|
||||
|
@ -58,7 +60,8 @@ public class IndexPage extends HttpServlet
|
|||
|
||||
// Send response.
|
||||
// ==============
|
||||
Redirector.redirect(response, "/federation/organizations/" + organization.getTechnicalName() + "/services/" + service.getTechnicalName() + "/stats.xhtml");
|
||||
Redirector.redirect(response,
|
||||
"/federation/organizations/" + organization.getTechnicalName() + "/services/" + service.getTechnicalName() + "/stats.xhtml");
|
||||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
|
|
|
@ -57,6 +57,9 @@ public class PropertyAlertPage extends HttpServlet
|
|||
{
|
||||
logger.info("PAGE Service > PropertyAlert");
|
||||
|
||||
String html = StatoolInfosWeb.instance().getHtmlCache().get(this.getClass().getCanonicalName());
|
||||
if (html == null)
|
||||
{
|
||||
// Get parameters.
|
||||
// ===============
|
||||
|
||||
|
@ -76,10 +79,14 @@ public class PropertyAlertPage extends HttpServlet
|
|||
trail.add("Organisations", "/federation/organizations/");
|
||||
trail.add(organization.getName(), "/federation/organizations/" + organization.getTechnicalName() + "/");
|
||||
trail.add("Services", "/federation/organizations/" + organization.getTechnicalName() + "/services.xhtml");
|
||||
trail.add(service.getName(), "/federation/organizations/" + organization.getTechnicalName() + "/services/" + service.getTechnicalName() + "/");
|
||||
trail.add("Alertes", "/federation/organizations/" + organization.getTechnicalName() + "/services/" + service.getTechnicalName() + "/propertyAlert.xhtml");
|
||||
trail.add(service.getName(),
|
||||
"/federation/organizations/" + organization.getTechnicalName() + "/services/" + service.getTechnicalName() + "/");
|
||||
trail.add("Alertes", "/federation/organizations/" + organization.getTechnicalName() + "/services/" + service.getTechnicalName()
|
||||
+ "/propertyAlert.xhtml");
|
||||
|
||||
String html = WebCharterView.build(headerView, contentView, trail);
|
||||
html = WebCharterView.build(headerView, contentView, trail);
|
||||
StatoolInfosWeb.instance().getHtmlCache().put(this.getClass().getCanonicalName(), html);
|
||||
}
|
||||
|
||||
// Display page.
|
||||
response.setContentType("application/xhtml+xml; charset=UTF-8");
|
||||
|
|
|
@ -57,6 +57,9 @@ public class PropertyCheckPage extends HttpServlet
|
|||
{
|
||||
logger.info("PAGE Service > PropertyCheck");
|
||||
|
||||
String html = StatoolInfosWeb.instance().getHtmlCache().get(this.getClass().getCanonicalName());
|
||||
if (html == null)
|
||||
{
|
||||
// Get parameters.
|
||||
// ===============
|
||||
|
||||
|
@ -76,10 +79,14 @@ public class PropertyCheckPage extends HttpServlet
|
|||
trail.add("Organisations", "/federation/organizations/");
|
||||
trail.add(organization.getName(), "/federation/organizations/" + organization.getTechnicalName() + "/");
|
||||
trail.add("Services", "/federation/organizations/" + organization.getTechnicalName() + "/services.xhtml");
|
||||
trail.add(service.getName(), "/federation/organizations/" + organization.getTechnicalName() + "/services/" + service.getTechnicalName() + "/");
|
||||
trail.add("Propriétés", "/federation/organizations/" + organization.getTechnicalName() + "/services/" + service.getTechnicalName() + "/propertyCheck.xhtml");
|
||||
trail.add(service.getName(),
|
||||
"/federation/organizations/" + organization.getTechnicalName() + "/services/" + service.getTechnicalName() + "/");
|
||||
trail.add("Propriétés", "/federation/organizations/" + organization.getTechnicalName() + "/services/" + service.getTechnicalName()
|
||||
+ "/propertyCheck.xhtml");
|
||||
|
||||
String html = WebCharterView.build(headerView, contentView, trail);
|
||||
html = WebCharterView.build(headerView, contentView, trail);
|
||||
StatoolInfosWeb.instance().getHtmlCache().put(this.getClass().getCanonicalName(), html);
|
||||
}
|
||||
|
||||
// Display page.
|
||||
response.setContentType("application/xhtml+xml; charset=UTF-8");
|
||||
|
|
|
@ -58,8 +58,8 @@ public class ServiceHeaderView
|
|||
{
|
||||
TagDataManager data = new TagDataManager();
|
||||
|
||||
data.setAttribute("serviceLogo", "src",
|
||||
"/federation/organizations/" + service.getOrganization().getTechnicalName() + "/services/" + service.getTechnicalName() + "/" + service.getLogoFileName());
|
||||
data.setAttribute("serviceLogo", "src", "/federation/organizations/" + service.getOrganization().getTechnicalName() + "/services/"
|
||||
+ service.getTechnicalName() + "/" + service.getLogoFileName());
|
||||
|
||||
data.setEscapedContent("serviceName", service.getName());
|
||||
if (service.getWebsiteURL() != null)
|
||||
|
@ -84,16 +84,19 @@ public class ServiceHeaderView
|
|||
}
|
||||
|
||||
data.setAttribute("serviceStatusImg", "src", "/commons/status-" + service.getStatus().toString().toLowerCase() + ".png");
|
||||
data.setAttribute("serviceStatusImg", "title", StringUtils.defaultIfBlank(service.getStatusDescription(), service.getStatus().toString()));
|
||||
data.setAttribute("serviceStatusImg", "title",
|
||||
StringUtils.defaultIfBlank(service.getStatusDescription(), service.getStatus().toString()));
|
||||
|
||||
data.setAttribute("organizationsLink", "href", "/federation/organizations/" + service.getOrganization().getTechnicalName() + "/services.xhtml");
|
||||
data.setAttribute("organizationsLink", "href",
|
||||
"/federation/organizations/" + service.getOrganization().getTechnicalName() + "/services.xhtml");
|
||||
data.setAttribute("servicesLink", "href", "services.xhtml");
|
||||
|
||||
data.setAttribute("rawLink", "href", service.getTechnicalName() + ".properties");
|
||||
data.setAttribute("rawCheckLink", "href", "propertyCheck.xhtml");
|
||||
|
||||
data.setAttribute("statsLink", "href", "stats.xhtml");
|
||||
data.setAttribute("metricsLink", "href", "/federation/organizations/" + service.getOrganization().getTechnicalName() + "/services/" + service.getTechnicalName() + "/metrics/");
|
||||
data.setAttribute("metricsLink", "href", "/federation/organizations/" + service.getOrganization().getTechnicalName() + "/services/"
|
||||
+ service.getTechnicalName() + "/metrics/");
|
||||
|
||||
if (service.getLegalURL() != null)
|
||||
{
|
||||
|
@ -186,7 +189,8 @@ public class ServiceHeaderView
|
|||
data.setAttribute("crawlLinkImg", "src", "/commons/circle-icons/download.svg");
|
||||
}
|
||||
|
||||
data.setAttribute("uptimeLink", "href", "uptime.xhtml");
|
||||
data.setAttribute("uptimeLink", "href", "/federation/organizations/" + service.getOrganization().getTechnicalName() + "/services/"
|
||||
+ service.getTechnicalName() + "/uptime.xhtml");
|
||||
Services services = new Services();
|
||||
services.add(service);
|
||||
if (uptimeJournal.hasRecentError(services))
|
||||
|
@ -208,7 +212,8 @@ public class ServiceHeaderView
|
|||
}
|
||||
|
||||
//
|
||||
String content = PresenterUtils.dynamize("/website/federation/organizations/organization/services/service/serviceHeaderView.xhtml", data).toString();
|
||||
String content = PresenterUtils.dynamize("/website/federation/organizations/organization/services/service/serviceHeaderView.xhtml", data)
|
||||
.toString();
|
||||
result = XidynUtils.extractBodyContent(content);
|
||||
}
|
||||
catch (XidynException exception)
|
||||
|
|
|
@ -58,6 +58,9 @@ public class ServicesPage extends HttpServlet
|
|||
{
|
||||
logger.info("PAGE Service > Services");
|
||||
|
||||
String html = StatoolInfosWeb.instance().getHtmlCache().get(this.getClass().getCanonicalName());
|
||||
if (html == null)
|
||||
{
|
||||
// Get parameters.
|
||||
// ===============
|
||||
|
||||
|
@ -77,10 +80,14 @@ public class ServicesPage extends HttpServlet
|
|||
trail.add("Organisations", "/federation/organizations/");
|
||||
trail.add(organization.getName(), "/federation/organizations/" + organization.getTechnicalName() + "/");
|
||||
trail.add("Services", "/federation/organizations/" + organization.getTechnicalName() + "/services.xhtml");
|
||||
trail.add(service.getName(), "/federation/organizations/" + organization.getTechnicalName() + "/services/" + service.getTechnicalName() + "/");
|
||||
trail.add("Services", "/federation/organizations/" + organization.getTechnicalName() + "/services/" + service.getTechnicalName() + "/services.xhtml");
|
||||
trail.add(service.getName(),
|
||||
"/federation/organizations/" + organization.getTechnicalName() + "/services/" + service.getTechnicalName() + "/");
|
||||
trail.add("Services", "/federation/organizations/" + organization.getTechnicalName() + "/services/" + service.getTechnicalName()
|
||||
+ "/services.xhtml");
|
||||
|
||||
String html = WebCharterView.build(headerView, contentView, trail);
|
||||
html = WebCharterView.build(headerView, contentView, trail);
|
||||
StatoolInfosWeb.instance().getHtmlCache().put(this.getClass().getCanonicalName(), html);
|
||||
}
|
||||
|
||||
// Display page.
|
||||
response.setContentType("application/xhtml+xml; charset=UTF-8");
|
||||
|
|
|
@ -65,6 +65,9 @@ public class StatsPage extends HttpServlet
|
|||
{
|
||||
logger.info("PAGE Service > Stats");
|
||||
|
||||
String html = StatoolInfosWeb.instance().getHtmlCache().get(this.getClass().getCanonicalName());
|
||||
if (html == null)
|
||||
{
|
||||
// Get parameters.
|
||||
// ===============
|
||||
|
||||
|
@ -84,10 +87,14 @@ public class StatsPage extends HttpServlet
|
|||
trail.add("Organisations", "/federation/organizations/");
|
||||
trail.add(organization.getName(), "/federation/organizations/" + organization.getTechnicalName() + "/");
|
||||
trail.add("Services", "/federation/organizations/" + organization.getTechnicalName() + "/services.xhtml");
|
||||
trail.add(service.getName(), "/federation/organizations/" + organization.getTechnicalName() + "/services/" + service.getTechnicalName() + "/");
|
||||
trail.add("Stats", "/federation/organizations/" + organization.getTechnicalName() + "/services/" + service.getTechnicalName() + "/stats.xhtml");
|
||||
trail.add(service.getName(),
|
||||
"/federation/organizations/" + organization.getTechnicalName() + "/services/" + service.getTechnicalName() + "/");
|
||||
trail.add("Stats",
|
||||
"/federation/organizations/" + organization.getTechnicalName() + "/services/" + service.getTechnicalName() + "/stats.xhtml");
|
||||
|
||||
String html = WebCharterView.build(headerView, contentView, trail);
|
||||
html = WebCharterView.build(headerView, contentView, trail);
|
||||
StatoolInfosWeb.instance().getHtmlCache().put(this.getClass().getCanonicalName(), html);
|
||||
}
|
||||
|
||||
// Display page.
|
||||
response.setContentType("application/xhtml+xml; charset=UTF-8");
|
||||
|
|
|
@ -58,6 +58,9 @@ public class UptimePage extends HttpServlet
|
|||
{
|
||||
logger.info("PAGE Service > Uptime");
|
||||
|
||||
String html = StatoolInfosWeb.instance().getHtmlCache().get(this.getClass().getCanonicalName());
|
||||
if (html == null)
|
||||
{
|
||||
// Get parameters.
|
||||
// ===============
|
||||
|
||||
|
@ -77,10 +80,14 @@ public class UptimePage extends HttpServlet
|
|||
trail.add("Organisations", "/federation/organizations/");
|
||||
trail.add(organization.getName(), "/federation/organizations/" + organization.getTechnicalName() + "/");
|
||||
trail.add("Services", "/federation/organizations/" + organization.getTechnicalName() + "/services.xhtml");
|
||||
trail.add(service.getName(), "/federation/organizations/" + organization.getTechnicalName() + "/services/" + service.getTechnicalName() + "/");
|
||||
trail.add("Disponibilité", "/federation/organizations/" + organization.getTechnicalName() + "/services/" + service.getTechnicalName() + "/uptime.xhtml");
|
||||
trail.add(service.getName(),
|
||||
"/federation/organizations/" + organization.getTechnicalName() + "/services/" + service.getTechnicalName() + "/");
|
||||
trail.add("Disponibilité",
|
||||
"/federation/organizations/" + organization.getTechnicalName() + "/services/" + service.getTechnicalName() + "/uptime.xhtml");
|
||||
|
||||
String html = WebCharterView.build(headerView, contentView, trail);
|
||||
html = WebCharterView.build(headerView, contentView, trail);
|
||||
StatoolInfosWeb.instance().getHtmlCache().put(this.getClass().getCanonicalName(), html);
|
||||
}
|
||||
|
||||
// Display page.
|
||||
response.setContentType("application/xhtml+xml; charset=UTF-8");
|
||||
|
|
|
@ -67,6 +67,9 @@ public class MetricGenericPage extends HttpServlet
|
|||
{
|
||||
logger.info("PAGE Service > MetricGenericPage");
|
||||
|
||||
String html = StatoolInfosWeb.instance().getHtmlCache().get(this.getClass().getCanonicalName());
|
||||
if (html == null)
|
||||
{
|
||||
// Get parameters.
|
||||
// ===============
|
||||
|
||||
|
@ -88,11 +91,16 @@ public class MetricGenericPage extends HttpServlet
|
|||
trail.add("Organisations", "/federation/organizations/");
|
||||
trail.add(organization.getName(), "/federation/organizations/" + organization.getTechnicalName() + "/");
|
||||
trail.add("Services", "/federation/organizations/" + organization.getTechnicalName() + "/services.xhtml");
|
||||
trail.add(service.getName(), "/federation/organizations/" + organization.getTechnicalName() + "/services/" + service.getTechnicalName() + "/");
|
||||
trail.add("Métriques", "/federation/organizations/" + organization.getTechnicalName() + "/services/" + service.getTechnicalName() + "/metrics/");
|
||||
trail.add("Générique", "/federation/organizations/" + organization.getTechnicalName() + "/services/" + service.getTechnicalName() + "/metrics/generic.xhtml");
|
||||
trail.add(service.getName(),
|
||||
"/federation/organizations/" + organization.getTechnicalName() + "/services/" + service.getTechnicalName() + "/");
|
||||
trail.add("Métriques",
|
||||
"/federation/organizations/" + organization.getTechnicalName() + "/services/" + service.getTechnicalName() + "/metrics/");
|
||||
trail.add("Générique", "/federation/organizations/" + organization.getTechnicalName() + "/services/" + service.getTechnicalName()
|
||||
+ "/metrics/generic.xhtml");
|
||||
|
||||
String html = WebCharterView.build(headerView, contentView, trail);
|
||||
html = WebCharterView.build(headerView, contentView, trail);
|
||||
StatoolInfosWeb.instance().getHtmlCache().put(this.getClass().getCanonicalName(), html);
|
||||
}
|
||||
|
||||
// Display page.
|
||||
response.setContentType("application/xhtml+xml; charset=UTF-8");
|
||||
|
@ -134,16 +142,19 @@ public class MetricGenericPage extends HttpServlet
|
|||
//
|
||||
data.setContent("graphic.users", MetricHtmlizer.htmlize(service, view, period, "metrics.service.users", ChartColor.GREEN));
|
||||
|
||||
data.setContent("graphic.users.ipv4-ipv6",
|
||||
MetricHtmlizer.htmlize(service, view, period, "service.users (ipv4 + ipv6)", "metrics.service.users.ipv4", ChartColor.YELLOW, "metrics.service.users.ipv6", ChartColor.GREEN));
|
||||
data.setContent("graphic.users.ipv4-ipv6", MetricHtmlizer.htmlize(service, view, period, "service.users (ipv4 + ipv6)",
|
||||
"metrics.service.users.ipv4", ChartColor.YELLOW, "metrics.service.users.ipv6", ChartColor.GREEN));
|
||||
data.setContent("graphic.users.ipv4", MetricHtmlizer.htmlize(service, view, period, "metrics.service.users.ipv4", ChartColor.YELLOW));
|
||||
data.setContent("graphic.users.ipv6", MetricHtmlizer.htmlize(service, view, period, "metrics.service.users.ipv6", ChartColor.GREEN));
|
||||
|
||||
data.setContent("graphic.accounts", MetricHtmlizer.htmlize(service, view, period, "metrics.service.accounts", ChartColor.GREEN));
|
||||
data.setContent("graphic.accounts.active", MetricHtmlizer.htmlize(service, view, period, "metrics.service.accounts.active", ChartColor.GREEN));
|
||||
data.setContent("graphic.accounts.active",
|
||||
MetricHtmlizer.htmlize(service, view, period, "metrics.service.accounts.active", ChartColor.GREEN));
|
||||
|
||||
data.setContent("graphic.database.bytes", MetricHtmlizer.htmlize(service, view, period, "metrics.service.database.bytes", ChartColor.GREEN));
|
||||
data.setContent("graphic.datafiles.bytes", MetricHtmlizer.htmlize(service, view, period, "metrics.service.datafiles.bytes", ChartColor.GREEN));
|
||||
data.setContent("graphic.database.bytes",
|
||||
MetricHtmlizer.htmlize(service, view, period, "metrics.service.database.bytes", ChartColor.GREEN));
|
||||
data.setContent("graphic.datafiles.bytes",
|
||||
MetricHtmlizer.htmlize(service, view, period, "metrics.service.datafiles.bytes", ChartColor.GREEN));
|
||||
|
||||
// TODO
|
||||
// metrics.moderation.accounts.reported.* =
|
||||
|
@ -153,7 +164,8 @@ public class MetricGenericPage extends HttpServlet
|
|||
// metrics.moderation.accounts.cancelled.* =
|
||||
|
||||
//
|
||||
String content = PresenterUtils.dynamize("/website/federation/organizations/organization/services/service/metrics/metricGenericView.xhtml", data).toString();
|
||||
String content = PresenterUtils
|
||||
.dynamize("/website/federation/organizations/organization/services/service/metrics/metricGenericView.xhtml", data).toString();
|
||||
result = XidynUtils.extractBodyContent(content);
|
||||
}
|
||||
catch (XidynException exception)
|
||||
|
|
|
@ -67,6 +67,9 @@ public class MetricSpecificPage extends HttpServlet
|
|||
{
|
||||
logger.info("PAGE Service > MetricGenericPage");
|
||||
|
||||
String html = StatoolInfosWeb.instance().getHtmlCache().get(this.getClass().getCanonicalName());
|
||||
if (html == null)
|
||||
{
|
||||
// Get parameters.
|
||||
// ===============
|
||||
|
||||
|
@ -88,11 +91,16 @@ public class MetricSpecificPage extends HttpServlet
|
|||
trail.add("Organisations", "/federation/organizations/");
|
||||
trail.add(organization.getName(), "/federation/organizations/" + organization.getTechnicalName() + "/");
|
||||
trail.add("Services", "/federation/organizations/" + organization.getTechnicalName() + "/services.xhtml");
|
||||
trail.add(service.getName(), "/federation/organizations/" + organization.getTechnicalName() + "/services/" + service.getTechnicalName() + "/");
|
||||
trail.add("Métriques", "/federation/organizations/" + organization.getTechnicalName() + "/services/" + service.getTechnicalName() + "/metrics/");
|
||||
trail.add("Spécifique", "/federation/organizations/" + organization.getTechnicalName() + "/services/" + service.getTechnicalName() + "/metrics/specific.xhtml");
|
||||
trail.add(service.getName(),
|
||||
"/federation/organizations/" + organization.getTechnicalName() + "/services/" + service.getTechnicalName() + "/");
|
||||
trail.add("Métriques",
|
||||
"/federation/organizations/" + organization.getTechnicalName() + "/services/" + service.getTechnicalName() + "/metrics/");
|
||||
trail.add("Spécifique", "/federation/organizations/" + organization.getTechnicalName() + "/services/" + service.getTechnicalName()
|
||||
+ "/metrics/specific.xhtml");
|
||||
|
||||
String html = WebCharterView.build(headerView, contentView, trail);
|
||||
html = WebCharterView.build(headerView, contentView, trail);
|
||||
StatoolInfosWeb.instance().getHtmlCache().put(this.getClass().getCanonicalName(), html);
|
||||
}
|
||||
|
||||
// Display page.
|
||||
response.setContentType("application/xhtml+xml; charset=UTF-8");
|
||||
|
@ -139,7 +147,8 @@ public class MetricSpecificPage extends HttpServlet
|
|||
}
|
||||
|
||||
//
|
||||
String content = PresenterUtils.dynamize("/website/federation/organizations/organization/services/service/metrics/metricSpecificView.xhtml", data).toString();
|
||||
String content = PresenterUtils
|
||||
.dynamize("/website/federation/organizations/organization/services/service/metrics/metricSpecificView.xhtml", data).toString();
|
||||
result = XidynUtils.extractBodyContent(content);
|
||||
}
|
||||
catch (XidynException exception)
|
||||
|
|
|
@ -67,6 +67,9 @@ public class MetricSummaryPage extends HttpServlet
|
|||
{
|
||||
logger.info("PAGE Service > MetricSummaryPage");
|
||||
|
||||
String html = StatoolInfosWeb.instance().getHtmlCache().get(this.getClass().getCanonicalName());
|
||||
if (html == null)
|
||||
{
|
||||
// Get parameters.
|
||||
// ===============
|
||||
|
||||
|
@ -88,11 +91,16 @@ public class MetricSummaryPage extends HttpServlet
|
|||
trail.add("Organisations", "/federation/organizations/");
|
||||
trail.add(organization.getName(), "/federation/organizations/" + organization.getTechnicalName() + "/");
|
||||
trail.add("Services", "/federation/organizations/" + organization.getTechnicalName() + "/services.xhtml");
|
||||
trail.add(service.getName(), "/federation/organizations/" + organization.getTechnicalName() + "/services/" + service.getTechnicalName() + "/");
|
||||
trail.add("Métriques", "/federation/organizations/" + organization.getTechnicalName() + "/services/" + service.getTechnicalName() + "/metrics/");
|
||||
trail.add("Résumé", "/federation/organizations/" + organization.getTechnicalName() + "/services/" + service.getTechnicalName() + "/metrics/summary.xhtml");
|
||||
trail.add(service.getName(),
|
||||
"/federation/organizations/" + organization.getTechnicalName() + "/services/" + service.getTechnicalName() + "/");
|
||||
trail.add("Métriques",
|
||||
"/federation/organizations/" + organization.getTechnicalName() + "/services/" + service.getTechnicalName() + "/metrics/");
|
||||
trail.add("Résumé", "/federation/organizations/" + organization.getTechnicalName() + "/services/" + service.getTechnicalName()
|
||||
+ "/metrics/summary.xhtml");
|
||||
|
||||
String html = WebCharterView.build(headerView, contentView, trail);
|
||||
html = WebCharterView.build(headerView, contentView, trail);
|
||||
StatoolInfosWeb.instance().getHtmlCache().put(this.getClass().getCanonicalName(), html);
|
||||
}
|
||||
|
||||
// Display page.
|
||||
response.setContentType("application/xhtml+xml; charset=UTF-8");
|
||||
|
@ -136,7 +144,8 @@ public class MetricSummaryPage extends HttpServlet
|
|||
data.setContent("http.visits", MetricHtmlizer.htmlize(service, view, period, "metrics.http.visits", ChartColor.GREEN));
|
||||
|
||||
//
|
||||
String content = PresenterUtils.dynamize("/website/federation/organizations/organization/services/service/metrics/metricSummaryView.xhtml", data).toString();
|
||||
String content = PresenterUtils
|
||||
.dynamize("/website/federation/organizations/organization/services/service/metrics/metricSummaryView.xhtml", data).toString();
|
||||
result = XidynUtils.extractBodyContent(content);
|
||||
}
|
||||
catch (XidynException exception)
|
||||
|
|
|
@ -67,6 +67,9 @@ public class MetricWebPage extends HttpServlet
|
|||
{
|
||||
logger.info("PAGE Service > MetricGenericPage");
|
||||
|
||||
String html = StatoolInfosWeb.instance().getHtmlCache().get(this.getClass().getCanonicalName());
|
||||
if (html == null)
|
||||
{
|
||||
// Get parameters.
|
||||
// ===============
|
||||
|
||||
|
@ -88,11 +91,16 @@ public class MetricWebPage extends HttpServlet
|
|||
trail.add("Organisations", "/federation/organizations/");
|
||||
trail.add(organization.getName(), "/federation/organizations/" + organization.getTechnicalName() + "/");
|
||||
trail.add("Services", "/federation/organizations/" + organization.getTechnicalName() + "/services.xhtml");
|
||||
trail.add(service.getName(), "/federation/organizations/" + organization.getTechnicalName() + "/services/" + service.getTechnicalName() + "/");
|
||||
trail.add("Métriques", "/federation/organizations/" + organization.getTechnicalName() + "/services/" + service.getTechnicalName() + "/metrics/");
|
||||
trail.add("Web", "/federation/organizations/" + organization.getTechnicalName() + "/services/" + service.getTechnicalName() + "/metrics/web.xhtml");
|
||||
trail.add(service.getName(),
|
||||
"/federation/organizations/" + organization.getTechnicalName() + "/services/" + service.getTechnicalName() + "/");
|
||||
trail.add("Métriques",
|
||||
"/federation/organizations/" + organization.getTechnicalName() + "/services/" + service.getTechnicalName() + "/metrics/");
|
||||
trail.add("Web", "/federation/organizations/" + organization.getTechnicalName() + "/services/" + service.getTechnicalName()
|
||||
+ "/metrics/web.xhtml");
|
||||
|
||||
String html = WebCharterView.build(headerView, contentView, trail);
|
||||
html = WebCharterView.build(headerView, contentView, trail);
|
||||
StatoolInfosWeb.instance().getHtmlCache().put(this.getClass().getCanonicalName(), html);
|
||||
}
|
||||
|
||||
// Display page.
|
||||
response.setContentType("application/xhtml+xml; charset=UTF-8");
|
||||
|
@ -133,21 +141,22 @@ public class MetricWebPage extends HttpServlet
|
|||
|
||||
data.setContent("http.hits", MetricHtmlizer.htmlize(service, view, period, "metrics.http.hits", ChartColor.BLUE));
|
||||
|
||||
data.setContent("http.hits-ipv4ipv6", MetricHtmlizer.htmlize(service, view, period, "http.hits (ipv4 + ipv6)", "metrics.http.hits.ipv4", ChartColor.YELLOW, "metrics.http.hits.ipv6",
|
||||
ChartColor.GREEN));
|
||||
data.setContent("http.hits-ipv4ipv6", MetricHtmlizer.htmlize(service, view, period, "http.hits (ipv4 + ipv6)", "metrics.http.hits.ipv4",
|
||||
ChartColor.YELLOW, "metrics.http.hits.ipv6", ChartColor.GREEN));
|
||||
data.setContent("http.hits.ipv4", MetricHtmlizer.htmlize(service, view, period, "metrics.http.hits.ipv4", ChartColor.YELLOW));
|
||||
data.setContent("http.hits.ipv6", MetricHtmlizer.htmlize(service, view, period, "metrics.http.hits.ipv6", ChartColor.GREEN));
|
||||
|
||||
data.setContent("http.hits-humansbots", MetricHtmlizer.htmlize(service, view, period, "http.hits (humans + bots)", "metrics.http.hits.humans", ChartColor.GREEN,
|
||||
"metrics.http.hits.bots",
|
||||
ChartColor.YELLOW));
|
||||
data.setContent("http.hits-humansbots", MetricHtmlizer.htmlize(service, view, period, "http.hits (humans + bots)",
|
||||
"metrics.http.hits.humans", ChartColor.GREEN, "metrics.http.hits.bots", ChartColor.YELLOW));
|
||||
data.setContent("http.hits.humans", MetricHtmlizer.htmlize(service, view, period, "metrics.http.hits.humans", ChartColor.GREEN));
|
||||
data.setContent("http.hits.bots", MetricHtmlizer.htmlize(service, view, period, "metrics.http.hits.bots", ChartColor.YELLOW));
|
||||
|
||||
data.setContent("http.hits.humans-ipv4ipv6", MetricHtmlizer.htmlize(service, view, period, "http.hits.humans (ipv4 + ipv6)", "metrics.http.hits.humans.ipv4", ChartColor.YELLOW,
|
||||
"metrics.http.hits.humans.ipv6", ChartColor.GREEN));
|
||||
data.setContent("http.hits.humans.ipv4", MetricHtmlizer.htmlize(service, view, period, "metrics.http.hits.humans.ipv4", ChartColor.YELLOW));
|
||||
data.setContent("http.hits.humans.ipv6", MetricHtmlizer.htmlize(service, view, period, "metrics.http.hits.humans.ipv6", ChartColor.GREEN));
|
||||
data.setContent("http.hits.humans-ipv4ipv6", MetricHtmlizer.htmlize(service, view, period, "http.hits.humans (ipv4 + ipv6)",
|
||||
"metrics.http.hits.humans.ipv4", ChartColor.YELLOW, "metrics.http.hits.humans.ipv6", ChartColor.GREEN));
|
||||
data.setContent("http.hits.humans.ipv4",
|
||||
MetricHtmlizer.htmlize(service, view, period, "metrics.http.hits.humans.ipv4", ChartColor.YELLOW));
|
||||
data.setContent("http.hits.humans.ipv6",
|
||||
MetricHtmlizer.htmlize(service, view, period, "metrics.http.hits.humans.ipv6", ChartColor.GREEN));
|
||||
|
||||
data.setContent("http.errors", MetricHtmlizer.htmlize(service, view, period, "metrics.http.errors", ChartColor.RED));
|
||||
data.setContent("http.errors.php", MetricHtmlizer.htmlize(service, view, period, "metrics.http.errors.php", ChartColor.RED));
|
||||
|
@ -158,42 +167,44 @@ public class MetricWebPage extends HttpServlet
|
|||
|
||||
data.setContent("http.ip", MetricHtmlizer.htmlize(service, view, period, "metrics.http.ip", ChartColor.BLUE));
|
||||
|
||||
data.setContent("http.ip-humansbots", MetricHtmlizer.htmlize(service, view, period, "http.ip (humans + bots)", "metrics.http.ip.humans", ChartColor.GREEN, "metrics.http.ip.bots",
|
||||
ChartColor.YELLOW));
|
||||
data.setContent("http.ip-humansbots", MetricHtmlizer.htmlize(service, view, period, "http.ip (humans + bots)", "metrics.http.ip.humans",
|
||||
ChartColor.GREEN, "metrics.http.ip.bots", ChartColor.YELLOW));
|
||||
data.setContent("http.ip.humans", MetricHtmlizer.htmlize(service, view, period, "metrics.http.ip.humans", ChartColor.GREEN));
|
||||
data.setContent("http.ip.bots", MetricHtmlizer.htmlize(service, view, period, "metrics.http.ip.bots", ChartColor.YELLOW));
|
||||
|
||||
data.setContent("http.ip-ipv4ipv6", MetricHtmlizer.htmlize(service, view, period, "http.ip (ipv4 + ipv6)", "metrics.http.ip.ipv4", ChartColor.YELLOW, "metrics.http.ip.ipv6",
|
||||
ChartColor.GREEN));
|
||||
data.setContent("http.ip-ipv4ipv6", MetricHtmlizer.htmlize(service, view, period, "http.ip (ipv4 + ipv6)", "metrics.http.ip.ipv4",
|
||||
ChartColor.YELLOW, "metrics.http.ip.ipv6", ChartColor.GREEN));
|
||||
data.setContent("http.ip.ipv4", MetricHtmlizer.htmlize(service, view, period, "metrics.http.ip.ipv4", ChartColor.YELLOW));
|
||||
data.setContent("http.ip.ipv6", MetricHtmlizer.htmlize(service, view, period, "metrics.http.ip.ipv6", ChartColor.GREEN));
|
||||
|
||||
data.setContent("http.requesters", MetricHtmlizer.htmlize(service, view, period, "metrics.http.requesters", ChartColor.BLUE));
|
||||
|
||||
data.setContent("http.requesters-humansbots", MetricHtmlizer.htmlize(service, view, period, "http.requesters (humans + bots)", "metrics.http.requesters.humans", ChartColor.GREEN,
|
||||
"metrics.http.requesters.bots", ChartColor.YELLOW));
|
||||
data.setContent("http.requesters.humans", MetricHtmlizer.htmlize(service, view, period, "metrics.http.requesters.humans", ChartColor.GREEN));
|
||||
data.setContent("http.requesters-humansbots", MetricHtmlizer.htmlize(service, view, period, "http.requesters (humans + bots)",
|
||||
"metrics.http.requesters.humans", ChartColor.GREEN, "metrics.http.requesters.bots", ChartColor.YELLOW));
|
||||
data.setContent("http.requesters.humans",
|
||||
MetricHtmlizer.htmlize(service, view, period, "metrics.http.requesters.humans", ChartColor.GREEN));
|
||||
data.setContent("http.requesters.bots", MetricHtmlizer.htmlize(service, view, period, "metrics.http.requesters.bots", ChartColor.YELLOW));
|
||||
|
||||
data.setContent("http.requesters-ipv4ipv6", MetricHtmlizer.htmlize(service, view, period, "http.requesters (ipv4 + ipv6)", "metrics.http.requesters.ipv4", ChartColor.YELLOW,
|
||||
"metrics.http.requesters.ipv6", ChartColor.GREEN));
|
||||
data.setContent("http.requesters-ipv4ipv6", MetricHtmlizer.htmlize(service, view, period, "http.requesters (ipv4 + ipv6)",
|
||||
"metrics.http.requesters.ipv4", ChartColor.YELLOW, "metrics.http.requesters.ipv6", ChartColor.GREEN));
|
||||
data.setContent("http.requesters.ipv4", MetricHtmlizer.htmlize(service, view, period, "metrics.http.requesters.ipv4", ChartColor.YELLOW));
|
||||
data.setContent("http.requesters.ipv6", MetricHtmlizer.htmlize(service, view, period, "metrics.http.requesters.ipv6", ChartColor.GREEN));
|
||||
|
||||
data.setContent("http.visitors", MetricHtmlizer.htmlize(service, view, period, "metrics.http.visitors", ChartColor.BLUE));
|
||||
data.setContent("http.visitors-ipv4ipv6", MetricHtmlizer.htmlize(service, view, period, "http.visitors (ipv4 + ipv6)", "metrics.http.visitors.ipv4", ChartColor.YELLOW,
|
||||
"metrics.http.visitors.ipv6", ChartColor.GREEN));
|
||||
data.setContent("http.visitors-ipv4ipv6", MetricHtmlizer.htmlize(service, view, period, "http.visitors (ipv4 + ipv6)",
|
||||
"metrics.http.visitors.ipv4", ChartColor.YELLOW, "metrics.http.visitors.ipv6", ChartColor.GREEN));
|
||||
data.setContent("http.visitors.ipv4", MetricHtmlizer.htmlize(service, view, period, "metrics.http.visitors.ipv4", ChartColor.YELLOW));
|
||||
data.setContent("http.visitors.ipv6", MetricHtmlizer.htmlize(service, view, period, "metrics.http.visitors.ipv6", ChartColor.GREEN));
|
||||
|
||||
data.setContent("http.visits", MetricHtmlizer.htmlize(service, view, period, "metrics.http.visits", ChartColor.BLUE));
|
||||
data.setContent("http.visits-ipv4ipv6", MetricHtmlizer.htmlize(service, view, period, "http.visits (ipv4 + ipv6)", "metrics.http.visits.ipv4", ChartColor.YELLOW,
|
||||
"metrics.http.visits.ipv6", ChartColor.GREEN));
|
||||
data.setContent("http.visits-ipv4ipv6", MetricHtmlizer.htmlize(service, view, period, "http.visits (ipv4 + ipv6)",
|
||||
"metrics.http.visits.ipv4", ChartColor.YELLOW, "metrics.http.visits.ipv6", ChartColor.GREEN));
|
||||
data.setContent("http.visits.ipv4", MetricHtmlizer.htmlize(service, view, period, "metrics.http.visits.ipv4", ChartColor.YELLOW));
|
||||
data.setContent("http.visits.ipv6", MetricHtmlizer.htmlize(service, view, period, "metrics.http.visits.ipv6", ChartColor.GREEN));
|
||||
|
||||
//
|
||||
String content = PresenterUtils.dynamize("/website/federation/organizations/organization/services/service/metrics/metricWebView.xhtml", data).toString();
|
||||
String content = PresenterUtils
|
||||
.dynamize("/website/federation/organizations/organization/services/service/metrics/metricWebView.xhtml", data).toString();
|
||||
result = XidynUtils.extractBodyContent(content);
|
||||
}
|
||||
catch (XidynException exception)
|
||||
|
|
|
@ -66,6 +66,9 @@ public class IndexPage extends HttpServlet
|
|||
{
|
||||
logger.info("PAGE Federation > Softwares");
|
||||
|
||||
String html = StatoolInfosWeb.instance().getHtmlCache().get(this.getClass().getCanonicalName());
|
||||
if (html == null)
|
||||
{
|
||||
// Get parameters.
|
||||
// ===============
|
||||
|
||||
|
@ -86,7 +89,9 @@ public class IndexPage extends HttpServlet
|
|||
trail.add(StatoolInfosWeb.instance().getFederation().getName(), "/federation/");
|
||||
trail.add("Logiciels", "/federation/softwares/");
|
||||
|
||||
String html = WebCharterView.build(headerView, contentView, trail);
|
||||
html = WebCharterView.build(headerView, contentView, trail);
|
||||
StatoolInfosWeb.instance().getHtmlCache().put(this.getClass().getCanonicalName(), html);
|
||||
}
|
||||
|
||||
// Display page.
|
||||
response.setContentType("application/xhtml+xml; charset=UTF-8");
|
||||
|
@ -123,12 +128,14 @@ public class IndexPage extends HttpServlet
|
|||
for (SoftwareStat stat : stats.sortByName())
|
||||
{
|
||||
data.setEscapedContent("softwareListLine", index, "softwareListLineNameLink", stat.getName());
|
||||
data.setAttribute("softwareListLine", index, "softwareListLineNameLink", "href", "/federation/softwares/" + stat.getTechnicalName() + ".xhtml");
|
||||
data.setAttribute("softwareListLine", index, "softwareListLineNameLink", "href",
|
||||
"/federation/softwares/" + stat.getTechnicalName() + ".xhtml");
|
||||
|
||||
data.setContent("softwareListLine", index, "softwareListLineCategory", CategoriesView.build(stat.getCategories(), Mode.ALL));
|
||||
|
||||
data.setContent("softwareListLine", index, "softwareListLineOrganizationCount", stat.getOrganizationCount());
|
||||
data.setContent("softwareListLine", index, "softwareListLineServiceCount", StatoolInfosUtils.defaultIfZero(stat.getServiceCount(), "😿"));
|
||||
data.setContent("softwareListLine", index, "softwareListLineServiceCount",
|
||||
StatoolInfosUtils.defaultIfZero(stat.getServiceCount(), "😿"));
|
||||
data.setContent("softwareListLine", index, "softwareListLineUserCount", StatoolInfosUtils.defaultIfZero(stat.getUserCount(), "😢"));
|
||||
data.setContent("softwareListLine", index, "softwareListLineVisitCount", StatoolInfosUtils.defaultIfZero(stat.getVisitCount(), "😞"));
|
||||
|
||||
|
|
|
@ -64,6 +64,9 @@ public class SoftwarePage extends HttpServlet
|
|||
{
|
||||
logger.info("PAGE Federation > Softwares > Software");
|
||||
|
||||
String html = StatoolInfosWeb.instance().getHtmlCache().get(this.getClass().getCanonicalName());
|
||||
if (html == null)
|
||||
{
|
||||
// Get parameters.
|
||||
// ===============
|
||||
|
||||
|
@ -90,7 +93,9 @@ public class SoftwarePage extends HttpServlet
|
|||
trail.add(StatoolInfosWeb.instance().getFederation().getName(), "/federation/");
|
||||
trail.add("Logiciels", "/federation/softwares/");
|
||||
|
||||
String html = WebCharterView.build(headerView, contentView, trail);
|
||||
html = WebCharterView.build(headerView, contentView, trail);
|
||||
StatoolInfosWeb.instance().getHtmlCache().put(this.getClass().getCanonicalName(), html);
|
||||
}
|
||||
|
||||
// Display page.
|
||||
response.setContentType("application/xhtml+xml; charset=UTF-8");
|
||||
|
|
Loading…
Reference in a new issue