public final class StreamPageContent extends Object
The page will be activated using the provided page activation context (or an empty page activation
context). Starting with 5.3, the page activation step can be bypassed. Rendering occurs using
the standard PageRenderRequestHandler
pipeline.
Constructor and Description |
---|
StreamPageContent()
Creates an instance that streams the activate page's content (that is,
getPageClass() will be null). |
StreamPageContent(Class<?> pageClass)
Renders the page using an empty page activation context.
|
StreamPageContent(Class<?> pageClass,
Object... pageActivationContext)
Renders the page using the supplied page activation context.
|
Modifier and Type | Method and Description |
---|---|
Object[] |
getPageActivationContext()
Returns the activation context of the page.
|
Class<?> |
getPageClass()
Returns the class of the page to render, or null to indicate that the active page for the request should simply
be re-rendered.
|
boolean |
isBypassActivation() |
StreamPageContent |
withoutActivation()
Returns a new StreamPageInstance with the bypass activation flag set to true, such that
page activation will be bypassed when the page is rendered.
|
public StreamPageContent()
getPageClass()
will be null).
Unless otherwise configured, page activation will take place.public StreamPageContent(Class<?> pageClass)
pageClass
- class of the page to renderpublic StreamPageContent(Class<?> pageClass, Object... pageActivationContext)
pageClass
- class of the page to render, or null to render the currently active page (as per
RequestGlobals.getActivePageName()
)pageActivationContext
- activation context of the pagepublic Class<?> getPageClass()
public Object[] getPageActivationContext()
public StreamPageContent withoutActivation()
public boolean isBypassActivation()
${project.version} - Copyright © 2003-2014 The Apache Software Foundation.