public class

DefaultJiraPageBuilderService

extends DefaultPageBuilderService
implements JiraPageBuilderService PageBuilderServiceSpi
java.lang.Object
   ↳ com.atlassian.plugin.webresource.assembler.DefaultPageBuilderService
     ↳ com.atlassian.jira.web.pagebuilder.DefaultJiraPageBuilderService

Class Overview

Creates PageBuilder and PageBuilderSpi instances and caches them per-request.

TODO: this will be merged with its superclass once the PageBuilder interface has been tested in JIRA

Summary

[Expand]
Inherited Constants
From interface com.atlassian.jira.web.pagebuilder.JiraPageBuilderService
Public Constructors
DefaultJiraPageBuilderService(ApplicationProperties applicationProperties, WebResourceIntegration webResourceIntegration, PrebakeWebResourceAssemblerFactory webResourceAssemblerFactory, FeatureManager featureManager)
Public Methods
void clearForRequest()
Clears the page builder for the current request.
PageBuilder get()
Gets the page builder for the current request
PageBuilderSpi getSpi()
Returns the page builder spi for the current request
void initForRequest(HttpServletRequest request, HttpServletResponse response, DecoratorListener decoratorListener, ServletContext servletContext)
Creates a new page builder for the current request.
[Expand]
Inherited Methods
From class com.atlassian.plugin.webresource.assembler.DefaultPageBuilderService
From class java.lang.Object
From interface com.atlassian.jira.web.pagebuilder.JiraPageBuilderService
From interface com.atlassian.jira.web.pagebuilder.PageBuilderServiceSpi
From interface com.atlassian.plugin.webresource.assembler.LegacyPageBuilderService
From interface com.atlassian.webresource.api.assembler.PageBuilderService

Public Constructors

public DefaultJiraPageBuilderService (ApplicationProperties applicationProperties, WebResourceIntegration webResourceIntegration, PrebakeWebResourceAssemblerFactory webResourceAssemblerFactory, FeatureManager featureManager)

Public Methods

public void clearForRequest ()

Clears the page builder for the current request.

public PageBuilder get ()

Gets the page builder for the current request

Returns
  • request-local page builder

public PageBuilderSpi getSpi ()

Returns the page builder spi for the current request

Returns
  • request-local page builder spi

public void initForRequest (HttpServletRequest request, HttpServletResponse response, DecoratorListener decoratorListener, ServletContext servletContext)

Creates a new page builder for the current request. If this has already been called for the current request, this is a no-op.

Parameters
request http request
response http response
decoratorListener decorator listener
servletContext servlet context