com.getsnappy.snappyj
Class DynamicContext

java.lang.Object
  extended by com.getsnappy.snappyj.Context
      extended by com.getsnappy.snappyj.DynamicContext

public abstract class DynamicContext
extends Context

FIXME: document me!!!!

Author:
brian

Field Summary
 
Fields inherited from class com.getsnappy.snappyj.Context
subContexts
 
Constructor Summary
DynamicContext(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String contextId, java.lang.String defaultApplication, JavaScriptLoadingIndicator indicator)
          this is a special constructor that creates the bean for the specified application with the given
 
Method Summary
 java.lang.String getClassName()
           
 java.lang.String getContextId()
           
 DynamicContextBean getDynamicContextBean()
           
protected  JavaScriptLoadingIndicator getJavaScriptLoadingIndicator()
           
 void jsDeclareObject(java.io.Writer out)
          Generate a JavaScript function that returns a JavaScript object representing this context.
 java.lang.String jsForward(java.lang.String application)
          This method will forward
 
Methods inherited from class com.getsnappy.snappyj.Context
include, includeAsync, jsReload, output
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynamicContext

public DynamicContext(javax.servlet.http.HttpServletRequest request,
                      javax.servlet.http.HttpServletResponse response,
                      java.lang.String contextId,
                      java.lang.String defaultApplication,
                      JavaScriptLoadingIndicator indicator)
this is a special constructor that creates the bean for the specified application with the given

Method Detail

getContextId

public java.lang.String getContextId()
Specified by:
getContextId in class Context

getClassName

public java.lang.String getClassName()
Specified by:
getClassName in class Context

jsForward

public java.lang.String jsForward(java.lang.String application)
This method will forward

Parameters:
application - - the classname of class that extends ApplicationInstance.
Returns:

jsDeclareObject

public void jsDeclareObject(java.io.Writer out)
                     throws java.io.IOException
Description copied from class: Context
Generate a JavaScript function that returns a JavaScript object representing this context. This must be declared prior to creating the Web20Environment. NOTE: like an other js function, this one outputs straight JavaScript and should be nested inside a SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD