org.apache.tapestry5.services
Class StreamPageContent

java.lang.Object
  extended by org.apache.tapestry5.services.StreamPageContent

public final class StreamPageContent
extends Object

An event handler method may return an instance of this class to trigger the rendering of a particular page without causing a redirect to that page.

Since:
5.2.0

Constructor Summary
StreamPageContent(Class<?> pageClass)
           
StreamPageContent(Class<?> pageClass, Object... pageActivationContext)
           
 
Method Summary
 Object[] getPageActivationContext()
          Returns the activation context of the page.
 Class<?> getPageClass()
          Returns the class of the page to render.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamPageContent

public StreamPageContent(Class<?> pageClass)
Parameters:
pageClass - class of the page to render

StreamPageContent

public StreamPageContent(Class<?> pageClass,
                         Object... pageActivationContext)
Parameters:
pageClass - class of the page to render
pageActivationContext - activation context of the page
Method Detail

getPageClass

public Class<?> getPageClass()
Returns the class of the page to render.


getPageActivationContext

public Object[] getPageActivationContext()
Returns the activation context of the page.



Copyright © 2003-2012 The Apache Software Foundation.