|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.plugin.navigation.HeaderFooterRendering
public class 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.
Field Summary | |
---|---|
static String |
META_X_UA_COMPATIBLE
|
Constructor Summary | |
---|---|
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)
|
Method Summary | |
---|---|
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 |
includeFooters(javax.servlet.jsp.JspWriter out,
javax.servlet.http.HttpServletRequest httpServletRequest)
Called from footer.jsp to render to render footer plugin point |
void |
includeHeadResources(javax.servlet.jsp.JspWriter out)
Called to include the standard global web resources that jira used on most pages. |
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,
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 This code must be especially defensive against the plugin system, as failures here can result in blank pages being rendered. |
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)
Called to include web panels of a named location into the JSP page |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String META_X_UA_COMPATIBLE
Constructor Detail |
---|
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)
Method Detail |
---|
public void includeHeadResources(javax.servlet.jsp.JspWriter out)
out
- the JSP to write topublic void includeTopNavigation(javax.servlet.jsp.JspWriter out, javax.servlet.http.HttpServletRequest httpServletRequest, com.opensymphony.module.sitemesh.Page page) throws IOException
out
- the JSP to write tohttpServletRequest
- the request in playpage
- the SiteMesh original page
IOException
public void includeTopNavigation(javax.servlet.jsp.JspWriter out, javax.servlet.http.HttpServletRequest httpServletRequest, DecoratablePage.ParsedBody parsedBody) throws IOException
out
- the JSP to write tohttpServletRequest
- the request in playparsedBody
- the Parsed decorated body
IOException
protected void includeTopNavigation(javax.servlet.jsp.JspWriter out, javax.servlet.http.HttpServletRequest httpServletRequest, String selectedSection, Map<String,Object> webFragmentContext)
out
- the JSP to write tohttpServletRequest
- the request in playselectedSection
- the selected sectionpublic void includeFooters(javax.servlet.jsp.JspWriter out, javax.servlet.http.HttpServletRequest httpServletRequest) throws IOException
out
- the JSP to write tohttpServletRequest
- the request in play
IOException
public void includeWebPanels(javax.servlet.jsp.JspWriter out, String location) throws IOException
out
- the JSP to write tolocation
- the named location of the web panel like alt.general
IOException
public String getPageTitle(com.opensymphony.module.sitemesh.Page originalPage)
originalPage
- the decorated sitemesh page
public String getPageTitle(DecoratablePage.ParsedHead parsedHead)
parsedHead
- The parsed decorated page
public String getXUACompatible(com.opensymphony.module.sitemesh.Page originalPage)
originalPage
- the decorated sitemesh page
public String getRelativeResourcePrefix()
public void includeVersionMetaTags(javax.servlet.jsp.JspWriter out) throws IOException
out
- the JSP writer
IOException
public void includeMetadata(javax.servlet.jsp.JspWriter out) throws IOException
out
- the JSP writer
IOException
public String getKeyboardShortCutScript(javax.servlet.http.HttpServletRequest httpServletRequest)
httpServletRequest
- the request in play
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |