public class DefaultPageBuilder extends Object implements PageBuilder, PageBuilderSpi
Constructor and Description |
---|
DefaultPageBuilder(ApplicationProperties applicationProperties,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
DecoratorListener decoratorListener,
javax.servlet.ServletContext servletContext,
FeatureManager featureManager,
ServerMetricsDetailCollector serverMetricsDetailCollector) |
Modifier and Type | Method and Description |
---|---|
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.
|
public DefaultPageBuilder(ApplicationProperties applicationProperties, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, DecoratorListener decoratorListener, javax.servlet.ServletContext servletContext, FeatureManager featureManager, ServerMetricsDetailCollector serverMetricsDetailCollector)
public void setDecorator(Decorator decorator)
PageBuilder
setDecorator
in interface PageBuilder
decorator
- Decorator for the current request.public void flush()
PageBuilder
flush
in interface PageBuilder
public void finish(DecoratablePage page)
PageBuilderSpi
finish
in interface PageBuilderSpi
page
- page being decoratedCopyright © 2002-2017 Atlassian. All Rights Reserved.