|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnextapp.echo2.webrender.UserInstance
nextapp.echo2.webcontainer.ContainerInstance
public class ContainerInstance
Web application container user instance.
| Field Summary |
|---|
| Fields inherited from class nextapp.echo2.webrender.UserInstance |
|---|
PROPERTY_CLIENT_CONFIGURATION, PROPERTY_SERVER_DELAY_MESSAGE |
| Method Summary | |
|---|---|
ApplicationInstance |
getApplicationInstance()
Returns the corresponding ApplicationInstance
for this user instance. |
int |
getCallbackInterval()
Determines the application-specified asynchronous monitoring service callback interval. |
Component |
getComponentByElementId(java.lang.String elementId)
Retrieves the Component with the specified element id. |
static java.lang.String |
getElementId(Component component)
Returns the base HTML element id that should be used when rendering the specified Component. |
IdTable |
getIdTable()
Retrieves the IdTable used by this
ContainerInstance to assign weakly-referenced unique
identifiers to arbitrary objects. |
java.util.Map |
getInitialRequestParameterMap()
Returns an immutable Map containing the HTTP form
parameters sent on the initial request to the application. |
RenderState |
getRenderState(Component component)
Retrieves the RenderState of the specified
Component. |
UpdateManager |
getUpdateManager()
Convenience method to retrieve the application's UpdateManager, which is used to synchronize
client and server states. |
void |
init(Connection conn)
Initializes the ContainerInstance, creating an instance
of the target ApplicationInstance and initializing the state
of the application. |
static void |
newInstance(Connection conn)
Creates a new Web Application Container instance using the provided client Connection. |
void |
removeRenderState(Component component)
Removes the RenderState of the specified
Component. |
void |
setRenderState(Component component,
RenderState renderState)
Sets the RenderState of the specified
Component. |
void |
setTaskQueueCallbackInterval(TaskQueueHandle taskQueue,
int ms)
Sets the interval between asynchronous callbacks from the client to check for queued tasks for a given TaskQueue. |
| Methods inherited from class nextapp.echo2.webrender.UserInstance |
|---|
getCharacterEncoding, getClientConfiguration, getClientProperties, getServerDelayMessage, getServiceUri, getServiceUri, getServletUri, getSession, getUserInstanceUpdateManager, sessionDidActivate, sessionWillPassivate, setClientConfiguration, setServerDelayMessage, valueBound, valueUnbound |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.lang.String getElementId(Component component)
Component.
component - the component
public static void newInstance(Connection conn)
Connection. The instance will automatically
be stored in the relevant HttpSession
conn - the client/server Connection for which the
instance is being instantiatedpublic ApplicationInstance getApplicationInstance()
ApplicationInstance
for this user instance.
ApplicationInstancepublic int getCallbackInterval()
public Component getComponentByElementId(java.lang.String elementId)
Component with the specified element id.
elementId - the element id, e.g., "c_42323"
public IdTable getIdTable()
IdTable used by this
ContainerInstance to assign weakly-referenced unique
identifiers to arbitrary objects.
IdTablepublic java.util.Map getInitialRequestParameterMap()
Map containing the HTTP form
parameters sent on the initial request to the application.
public RenderState getRenderState(Component component)
RenderState of the specified
Component.
component - the component
public UpdateManager getUpdateManager()
UpdateManager, which is used to synchronize
client and server states.
This method is equivalent to invoking
getApplicationInstance().getUpdateManager().
UpdateManagerpublic void init(Connection conn)
ContainerInstance, creating an instance
of the target ApplicationInstance and initializing the state
of the application.
conn - the relevant Connectionpublic void removeRenderState(Component component)
RenderState of the specified
Component.
component - the component
public void setRenderState(Component component,
RenderState renderState)
RenderState of the specified
Component.
component - the componentrenderState - the render state
public void setTaskQueueCallbackInterval(TaskQueueHandle taskQueue,
int ms)
TaskQueue. If multiple
TaskQueues are active, the smallest specified interval should
be used. The default interval is 500ms.
Application access to this method should be accessed via the
ContainerContext.
taskQueue - the TaskQueuems - the number of milliseconds between asynchronous client
callbacksContainerContext.setTaskQueueCallbackInterval(nextapp.echo2.app.TaskQueueHandle, int)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||