Class HeaderFooterRendering
java.lang.Object
com.atlassian.jira.plugin.navigation.HeaderFooterRendering
This is called by the templating system to render most things header and footer. Originally this was in the
header.jsp in its entirety but we moved it in here because Java code belongs in .java files. Sure its a ghetto but
its a ghetto in the right place.
- Since:
- v6.0
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionHeaderFooterRendering
(ApplicationProperties applicationProperties, com.atlassian.plugin.PluginAccessor pluginAccessor, JiraPageBuilderService pageBuilderService, com.atlassian.plugin.web.WebInterfaceManager webInterfaceManager, ProductVersionDataBeanProvider productVersionDataBeanProvider, com.atlassian.webresource.api.WebResourceUrlProvider webResourceUrlProvider, GoogleSiteVerification googleSiteVerification, FeatureManager featureManager) -
Method Summary
Modifier and TypeMethodDescriptionvoid
flushRemainingResources
(javax.servlet.jsp.JspWriter out, javax.servlet.http.HttpServletRequest request) This is called just before the </body> of every page to make sure all required web resources get there.getKeyboardShortCutScript
(javax.servlet.http.HttpServletRequest httpServletRequest) Returns the keyboard shortcut scriptgetPageTitle
(DecoratablePage.ParsedHead parsedHead) Called to to get the title of the web pagegetPageTitle
(com.opensymphony.module.sitemesh.Page originalPage) Called to to get the title of the web pagegetXUACompatible
(com.opensymphony.module.sitemesh.Page originalPage) Called to get the ua.compatible valuevoid
includeAccessLogImprints
(javax.servlet.jsp.JspWriter out, javax.servlet.http.HttpServletRequest httpServletRequest) void
includeFooters
(javax.servlet.jsp.JspWriter out, javax.servlet.http.HttpServletRequest httpServletRequest) void
includeGoogleSiteVerification
(javax.servlet.jsp.JspWriter out) Writes the Google site verification code to the page if it's available.void
includeMetadata
(javax.servlet.jsp.JspWriter out) Includes the general meta data for JIRA in the pagevoid
includeTopNavigation
(javax.servlet.jsp.JspWriter out, javax.servlet.http.HttpServletRequest httpServletRequest) Called from header-nodecorator.jsp to render top navigation plugin pointvoid
includeTopNavigation
(javax.servlet.jsp.JspWriter out, javax.servlet.http.HttpServletRequest httpServletRequest, com.opensymphony.module.sitemesh.Page page) Called from header.jsp to render top navigation plugin pointprotected void
includeTopNavigation
(javax.servlet.jsp.JspWriter out, javax.servlet.http.HttpServletRequest httpServletRequest, Map<String, Object> webFragmentContext) Renders top navigation plugin pointvoid
includeVersionMetaTags
(javax.servlet.jsp.JspWriter out) Includes the version meta data for JIRA in the pagevoid
includeWebPanels
(javax.servlet.jsp.JspWriter out, String location) void
Populates the web resource manager's meta data pool with common meta data needed for the page.
-
Field Details
-
META_X_UA_COMPATIBLE
- See Also:
-
-
Constructor Details
-
HeaderFooterRendering
public HeaderFooterRendering(ApplicationProperties applicationProperties, com.atlassian.plugin.PluginAccessor pluginAccessor, JiraPageBuilderService pageBuilderService, com.atlassian.plugin.web.WebInterfaceManager webInterfaceManager, ProductVersionDataBeanProvider productVersionDataBeanProvider, com.atlassian.webresource.api.WebResourceUrlProvider webResourceUrlProvider, GoogleSiteVerification googleSiteVerification, FeatureManager featureManager)
-
-
Method Details
-
flushRemainingResources
public void flushRemainingResources(javax.servlet.jsp.JspWriter out, javax.servlet.http.HttpServletRequest request) throws IOException This is called just before the </body> of every page to make sure all required web resources get there.- Throws:
IOException
-
includeAccessLogImprints
public void includeAccessLogImprints(javax.servlet.jsp.JspWriter out, javax.servlet.http.HttpServletRequest httpServletRequest) -
includeWebPanels
-
getPageTitle
Called to to get the title of the web page- Parameters:
originalPage
- the decorated sitemesh page- Returns:
- the title to use
-
getPageTitle
Called to to get the title of the web page- Parameters:
parsedHead
- The parsed decorated page- Returns:
- the title to use
-
getXUACompatible
Called to get the ua.compatible value- Parameters:
originalPage
- the decorated sitemesh page- Returns:
- the ua.compatible value
-
getRelativeResourcePrefix
- Returns:
- returns the relative resource prefix to use
-
includeVersionMetaTags
public void includeVersionMetaTags(javax.servlet.jsp.JspWriter out) Includes the version meta data for JIRA in the page- Parameters:
out
- the JSP writer
-
requireCommonMetadata
public void requireCommonMetadata()Populates the web resource manager's meta data pool with common meta data needed for the page. -
includeMetadata
Includes the general meta data for JIRA in the page- Parameters:
out
- the JSP writer- Throws:
IOException
-
includeGoogleSiteVerification
Writes the Google site verification code to the page if it's available.- Parameters:
out
- the JSP writer- Throws:
IOException
-
getKeyboardShortCutScript
Returns the keyboard shortcut script- Parameters:
httpServletRequest
- the request in play- Returns:
- the keyboard shortcut script
-