Class HeaderFooterRendering

java.lang.Object
com.atlassian.jira.plugin.navigation.HeaderFooterRendering

public class HeaderFooterRendering extends Object
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 Details

  • Constructor Details

  • 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
    • includeTopNavigation

      public 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
      Parameters:
      out - the JSP to write to
      httpServletRequest - the request in play
      page - the SiteMesh original page
    • includeTopNavigation

      public void includeTopNavigation(javax.servlet.jsp.JspWriter out, javax.servlet.http.HttpServletRequest httpServletRequest)
      Called from header-nodecorator.jsp to render top navigation plugin point
      Parameters:
      out - the JSP to write to
      httpServletRequest - the request in play
    • includeFooters

      public void includeFooters(javax.servlet.jsp.JspWriter out, javax.servlet.http.HttpServletRequest httpServletRequest)
    • includeAccessLogImprints

      public void includeAccessLogImprints(javax.servlet.jsp.JspWriter out, javax.servlet.http.HttpServletRequest httpServletRequest)
    • includeWebPanels

      public void includeWebPanels(javax.servlet.jsp.JspWriter out, String location)
    • getPageTitle

      public String getPageTitle(com.opensymphony.module.sitemesh.Page originalPage)
      Called to to get the title of the web page
      Parameters:
      originalPage - the decorated sitemesh page
      Returns:
      the title to use
    • getPageTitle

      public String getPageTitle(DecoratablePage.ParsedHead parsedHead)
      Called to to get the title of the web page
      Parameters:
      parsedHead - The parsed decorated page
      Returns:
      the title to use
    • getXUACompatible

      public String getXUACompatible(com.opensymphony.module.sitemesh.Page originalPage)
      Called to get the ua.compatible value
      Parameters:
      originalPage - the decorated sitemesh page
      Returns:
      the ua.compatible value
    • getRelativeResourcePrefix

      public String 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

      public void includeMetadata(javax.servlet.jsp.JspWriter out) throws IOException
      Includes the general meta data for JIRA in the page
      Parameters:
      out - the JSP writer
      Throws:
      IOException
    • includeGoogleSiteVerification

      public void includeGoogleSiteVerification(javax.servlet.jsp.JspWriter out) throws IOException
      Writes the Google site verification code to the page if it's available.
      Parameters:
      out - the JSP writer
      Throws:
      IOException
    • getKeyboardShortCutScript

      public String getKeyboardShortCutScript(javax.servlet.http.HttpServletRequest httpServletRequest)
      Returns the keyboard shortcut script
      Parameters:
      httpServletRequest - the request in play
      Returns:
      the keyboard shortcut script
    • includeTopNavigation

      protected void includeTopNavigation(javax.servlet.jsp.JspWriter out, javax.servlet.http.HttpServletRequest httpServletRequest, Map<String,Object> webFragmentContext)
      Renders top navigation plugin point

      This code must be especially defensive against the plugin system, as failures here can result in blank pages being rendered.

      Parameters:
      out - the JSP to write to
      httpServletRequest - the request in play