Package com.google.gerrit.httpd.raw
Class IndexHtmlUtil
java.lang.Object
com.google.gerrit.httpd.raw.IndexHtmlUtil
Helper for generating parts of
index.html
.-
Method Summary
Modifier and TypeMethodDescriptiondynamicTemplateData
(GerritApi gerritApi, String requestedURL, String canonicalURL) Returns dynamic parameters ofindex.html
.experimentData
(Map<String, String[]> urlParameterMap) Returns experimentData to be used inindex.html
.templateData
(GerritApi gerritApi, ExperimentFeatures experimentFeatures, String canonicalURL, String cdnPath, String faviconPath, Map<String, String[]> urlParameterMap, Function<String, com.google.template.soy.data.SanitizedContent> urlInScriptTagOrdainer, String requestedURL) Returns both static and dynamic parameters ofindex.html
.
-
Method Details
-
templateData
public static com.google.common.collect.ImmutableMap<String,Object> templateData(GerritApi gerritApi, ExperimentFeatures experimentFeatures, String canonicalURL, String cdnPath, String faviconPath, Map<String, String[]> urlParameterMap, Function<String, throws URISyntaxException, RestApiExceptioncom.google.template.soy.data.SanitizedContent> urlInScriptTagOrdainer, String requestedURL) Returns both static and dynamic parameters ofindex.html
. The result is to be used when rendering the soy template.- Throws:
URISyntaxException
RestApiException
-
dynamicTemplateData
public static com.google.common.collect.ImmutableMap<String,Object> dynamicTemplateData(GerritApi gerritApi, String requestedURL, String canonicalURL) throws RestApiException, URISyntaxException Returns dynamic parameters ofindex.html
.- Throws:
RestApiException
URISyntaxException
-
experimentData
Returns experimentData to be used inindex.html
.
-