public class HeaderFooterRendering extends Object
Modifier and Type | Field and Description |
---|---|
static String |
META_X_UA_COMPATIBLE |
Constructor and Description |
---|
HeaderFooterRendering(ApplicationProperties applicationProperties,
com.atlassian.plugin.PluginAccessor pluginAccessor,
com.atlassian.webresource.api.assembler.PageBuilderService pageBuilderService,
com.atlassian.plugin.web.WebInterfaceManager webInterfaceManager,
ProductVersionDataBeanProvider productVersionDataBeanProvider,
com.atlassian.plugin.webresource.WebResourceUrlProvider webResourceUrlProvider,
GoogleSiteVerification googleSiteVerification,
BigPipeService bigPipeService) |
Modifier and Type | Method and Description |
---|---|
void |
flushBigPipe(javax.servlet.jsp.JspWriter out)
This is to be called just before the </body> of every decorator,
and ensures the correct resources and bigpipe data is included at the bottom
of the page.
|
String |
getKeyboardShortCutScript(javax.servlet.http.HttpServletRequest httpServletRequest)
Returns the keyboard shortcut script
|
String |
getPageTitle(DecoratablePage.ParsedHead parsedHead)
Called to to get the title of the web page
|
String |
getPageTitle(com.opensymphony.module.sitemesh.Page originalPage)
Called to to get the title of the web page
|
String |
getRelativeResourcePrefix() |
String |
getXUACompatible(com.opensymphony.module.sitemesh.Page originalPage)
Called to get the ua.compatible value
|
void |
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 page
|
void |
includeResources(javax.servlet.jsp.JspWriter out)
Drains and writes web resources to the page as HTML tags.
|
void |
includeTopNavigation(javax.servlet.jsp.JspWriter out,
javax.servlet.http.HttpServletRequest httpServletRequest,
DecoratablePage.ParsedBody parsedBody)
Called from header-nodecorator.jsp to render top navigation plugin point
|
void |
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 point
|
protected void |
includeTopNavigation(javax.servlet.jsp.JspWriter out,
javax.servlet.http.HttpServletRequest httpServletRequest,
String selectedSection,
Map<String,Object> webFragmentContext)
Renders top navigation plugin point
|
void |
includeVersionMetaTags(javax.servlet.jsp.JspWriter out)
Includes the version meta data for JIRA in the page
|
void |
includeWebPanels(javax.servlet.jsp.JspWriter out,
String location) |
void |
requireCommonMetadata()
Populates the web resource manager's meta data pool with common meta data needed for the page.
|
void |
requireCommonResources()
Called to require the standard global web resources that jira used on most pages.
|
void |
requireLookAndFeelResources()
Called to require the global look and feel web resources that jira used on most pages.
|
public static final String META_X_UA_COMPATIBLE
public HeaderFooterRendering(ApplicationProperties applicationProperties, com.atlassian.plugin.PluginAccessor pluginAccessor, com.atlassian.webresource.api.assembler.PageBuilderService pageBuilderService, com.atlassian.plugin.web.WebInterfaceManager webInterfaceManager, ProductVersionDataBeanProvider productVersionDataBeanProvider, com.atlassian.plugin.webresource.WebResourceUrlProvider webResourceUrlProvider, GoogleSiteVerification googleSiteVerification, BigPipeService bigPipeService)
public void requireCommonResources()
This is called from head-resources.jsp
public void requireLookAndFeelResources()
This is called from head-resources.jsp
public void includeResources(javax.servlet.jsp.JspWriter out)
This is called from head-resources.jsp
out
- the JSP to write topublic void flushBigPipe(javax.servlet.jsp.JspWriter out) throws IOException
IOException
public void includeTopNavigation(javax.servlet.jsp.JspWriter out, javax.servlet.http.HttpServletRequest httpServletRequest, com.opensymphony.module.sitemesh.Page page)
out
- the JSP to write tohttpServletRequest
- the request in playpage
- the SiteMesh original pagepublic void includeTopNavigation(javax.servlet.jsp.JspWriter out, javax.servlet.http.HttpServletRequest httpServletRequest, DecoratablePage.ParsedBody parsedBody)
out
- the JSP to write tohttpServletRequest
- the request in playparsedBody
- the Parsed decorated bodypublic void includeFooters(javax.servlet.jsp.JspWriter out, javax.servlet.http.HttpServletRequest httpServletRequest)
public void includeAccessLogImprints(javax.servlet.jsp.JspWriter out, javax.servlet.http.HttpServletRequest httpServletRequest)
public void includeWebPanels(javax.servlet.jsp.JspWriter out, String location)
public String getPageTitle(com.opensymphony.module.sitemesh.Page originalPage)
originalPage
- the decorated sitemesh pagepublic String getPageTitle(DecoratablePage.ParsedHead parsedHead)
parsedHead
- The parsed decorated pagepublic String getXUACompatible(com.opensymphony.module.sitemesh.Page originalPage)
originalPage
- the decorated sitemesh pagepublic String getRelativeResourcePrefix()
public void includeVersionMetaTags(javax.servlet.jsp.JspWriter out)
out
- the JSP writerpublic void requireCommonMetadata()
public void includeMetadata(javax.servlet.jsp.JspWriter out) throws IOException
out
- the JSP writerIOException
public void includeGoogleSiteVerification(javax.servlet.jsp.JspWriter out) throws IOException
out
- the JSP writerIOException
public String getKeyboardShortCutScript(javax.servlet.http.HttpServletRequest httpServletRequest)
httpServletRequest
- the request in playprotected void includeTopNavigation(javax.servlet.jsp.JspWriter out, javax.servlet.http.HttpServletRequest httpServletRequest, String selectedSection, Map<String,Object> webFragmentContext)
This code must be especially defensive against the plugin system, as failures here can result in blank pages being rendered.
out
- the JSP to write tohttpServletRequest
- the request in playselectedSection
- the selected sectionCopyright © 2002-2022 Atlassian. All Rights Reserved.