public class

DefaultPageBuilder

extends Object
implements PageBuilder PageBuilderSpi
java.lang.Object
   ↳ com.atlassian.jira.web.pagebuilder.DefaultPageBuilder

Class Overview

Implementation of PageBuilder and PageBuilderSpi interfaces

Summary

Public Constructors
DefaultPageBuilder(ApplicationProperties applicationProperties, HttpServletRequest request, HttpServletResponse response, DecoratorListener decoratorListener, ServletContext servletContext, FeatureManager featureManager)
Public Methods
void finish(DecoratablePage page)
Finishes writing the decorated page and decorator to the current HTTP response
void flush()
Flushes as much information as possible to the current HTTP response.
void setDecorator(Decorator decorator)
Sets the decorated page.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.web.pagebuilder.PageBuilder
From interface com.atlassian.jira.web.pagebuilder.PageBuilderSpi

Public Constructors

public DefaultPageBuilder (ApplicationProperties applicationProperties, HttpServletRequest request, HttpServletResponse response, DecoratorListener decoratorListener, ServletContext servletContext, FeatureManager featureManager)

Public Methods

public void finish (DecoratablePage page)

Finishes writing the decorated page and decorator to the current HTTP response

Parameters
page page being decorated

public void flush ()

Flushes as much information as possible to the current HTTP response. This may be called multiple times in a single request.

public void setDecorator (Decorator decorator)

Sets the decorated page. This can be called any number of times before the first call to flush.

Parameters
decorator Decorator for the current request.