public abstract class AppDesc extends com.creamtec.ajaxswing.servlet.AppDescBase implements SessionListener
Modifier and Type | Field and Description |
---|---|
java.util.HashMap |
agents
Map of agents
|
java.lang.String |
appName
Application name
|
boolean |
inProcess
Flag indicating whether the emulation should be in the web server JVM
|
java.lang.String |
tempDirPath
Path to the temporary directory
|
Constructor and Description |
---|
AppDesc(java.lang.String appName)
Initializes application
|
Modifier and Type | Method and Description |
---|---|
void |
addAgent(java.lang.Object session,
ClientAgentRemote agent)
Adds the given agent to the list of currently running agents.
|
ClientAgentRemote |
getAgent(java.lang.Object session)
Returns the agent associated with the given session
|
java.util.Iterator |
getAgents()
Returns an iterator of client agents
|
int |
getAgentsCount()
Returns the number of agents currently running for this application
|
java.lang.String |
getAppName()
Returns the application name.
|
AppProperties |
getProps()
Returns application configuration properties.
|
java.lang.Object |
getSession(ClientAgentRemote agent)
Returns the session associated with the given agent
|
SessionManager |
getSessionManager()
Returns application session manager.
|
java.lang.String |
getTempDirPath()
Returns the path of the temporary directory on the web server
Documents placed in this directory can be referenced from generated HTML pages
|
boolean |
isInProcess()
Returns true if the application is configured to run inside the same JVM as the router.
|
void |
removeAgent(java.lang.Object session)
Removes the agent identified by the given session
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
sessionExpired
public java.lang.String appName
public boolean inProcess
public java.lang.String tempDirPath
public java.util.HashMap agents
public AppDesc(java.lang.String appName) throws java.lang.Exception
appName
- Stringjava.lang.Exception
public boolean isInProcess()
public AppProperties getProps()
public SessionManager getSessionManager()
public void addAgent(java.lang.Object session, ClientAgentRemote agent) throws AjaxSwingException
session
- session key, used to identify HTTP sessionagent
- ClientAgentRemoteAjaxSwingException
public ClientAgentRemote getAgent(java.lang.Object session)
session
- session keypublic java.lang.Object getSession(ClientAgentRemote agent)
agent
- ClientAgentRemotepublic void removeAgent(java.lang.Object session)
session
- Objectpublic java.util.Iterator getAgents()
public int getAgentsCount()
public java.lang.String getAppName()
public java.lang.String getTempDirPath()
Copyright © 2000-2012 CreamTec LLC. All Rights Reserved.