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,
JiraPageBuilderService pageBuilderService,
com.atlassian.plugin.web.WebInterfaceManager webInterfaceManager,
ProductVersionDataBeanProvider productVersionDataBeanProvider,
com.atlassian.plugin.webresource.WebResourceUrlProvider webResourceUrlProvider,
GoogleSiteVerification googleSiteVerification,
FeatureManager featureManager) |
Modifier and Type | Method and Description |
---|---|
void |
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.
|
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 |
includeTopNavigation(javax.servlet.jsp.JspWriter out,
javax.servlet.http.HttpServletRequest httpServletRequest)
Called from header-nodecorator.jsp to render top navigation plugin point
|
protected void |
includeTopNavigation(javax.servlet.jsp.JspWriter out,
javax.servlet.http.HttpServletRequest httpServletRequest,
Map<String,Object> webFragmentContext)
Renders 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
|
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.
|
public static final String META_X_UA_COMPATIBLE
public HeaderFooterRendering(ApplicationProperties applicationProperties, com.atlassian.plugin.PluginAccessor pluginAccessor, JiraPageBuilderService pageBuilderService, com.atlassian.plugin.web.WebInterfaceManager webInterfaceManager, ProductVersionDataBeanProvider productVersionDataBeanProvider, com.atlassian.plugin.webresource.WebResourceUrlProvider webResourceUrlProvider, GoogleSiteVerification googleSiteVerification, FeatureManager featureManager)
public void flushRemainingResources(javax.servlet.jsp.JspWriter out, javax.servlet.http.HttpServletRequest request) 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)
out
- the JSP to write tohttpServletRequest
- the request in playpublic 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, 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 playCopyright © 2002-2024 Atlassian. All Rights Reserved.