info.magnolia.rendering.context
Interface RenderingContext

All Known Implementing Classes:
AggregationStateBasedRenderingContext

public interface RenderingContext

Provides all information needed in the rendering process.


Method Summary
 AppendableWriter getAppendable()
           
 javax.jcr.Node getCurrentContent()
           
 javax.jcr.Node getMainContent()
           
 OutputProvider getOutputProvider()
           
 OutputStream getOutputStream()
           
 RenderableDefinition getRenderableDefinition()
           
 void pop()
           
 void push(javax.jcr.Node content, RenderableDefinition renderableDefinition)
          Pushes the content and renderableDefinition to be used for rendering.
 void push(javax.jcr.Node content, RenderableDefinition renderableDefinition, OutputProvider outputProvider)
          Pushes the content and renderableDefinition to be used for rendering.
 

Method Detail

getMainContent

javax.jcr.Node getMainContent()

getCurrentContent

javax.jcr.Node getCurrentContent()

getRenderableDefinition

RenderableDefinition getRenderableDefinition()

getOutputProvider

OutputProvider getOutputProvider()

push

void push(javax.jcr.Node content,
          RenderableDefinition renderableDefinition)
Pushes the content and renderableDefinition to be used for rendering. Output will be written using the OutputProvider already set.


push

void push(javax.jcr.Node content,
          RenderableDefinition renderableDefinition,
          OutputProvider outputProvider)
Pushes the content and renderableDefinition to be used for rendering.

Parameters:
outputProvider - the OutputProvider to be used for output or null to use the OutputProvider already set

pop

void pop()

getAppendable

AppendableWriter getAppendable()
                               throws RenderException,
                                      IOException
Throws:
RenderException
IOException

getOutputStream

OutputStream getOutputStream()
                             throws RenderException,
                                    IOException
Throws:
RenderException
IOException


Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.