NextApp Echo
App Container 1.0.5

nextapp.echoservlet
Class RenderingContext

java.lang.Object
  extended bynextapp.echoservlet.RenderingContext

public class RenderingContext
extends java.lang.Object

An object that is passed to Component Peers as they are being rendered that holds pertinent information: The Connection the peer is to be rendered to and the HtmlDocument the peer will be rendered in.


Field Summary
private  Connection connection
          The Connection to which this document is being rendered.
private  HtmlDocument document
          The HtmlDocument being rendered.
 
Constructor Summary
protected RenderingContext(Connection connection, HtmlDocument document)
          Creates a rendering context.
 
Method Summary
 Connection getConnection()
          Returns the Connection to which this document is being rendered.
 HtmlDocument getDocument()
          Returns the HtmlDocument being rendered.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

connection

private Connection connection
The Connection to which this document is being rendered.


document

private HtmlDocument document
The HtmlDocument being rendered.

Constructor Detail

RenderingContext

protected RenderingContext(Connection connection,
                           HtmlDocument document)
Creates a rendering context.

Parameters:
connection - The Connection to which this document is being rendered.
document - The HtmlDocument being rendered.
Method Detail

getConnection

public Connection getConnection()
Returns the Connection to which this document is being rendered.

Returns:
The Connection to which this document is being rendered.

getDocument

public HtmlDocument getDocument()
Returns the HtmlDocument being rendered.

Returns:
the HtmlDocument being rendered.

NextApp Echo
App Container 1.0.5