|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrailo.runtime.type.scope.ScopeContext
public final class ScopeContext
Scope Context handle Apllication and Session Scopes
Constructor Summary | |
---|---|
ScopeContext(CFMLFactoryImpl factory)
|
Method Summary | |
---|---|
void |
clear()
remove all scope objects |
void |
clearApplication(PageContext pc)
|
static void |
clearClusterScope()
|
void |
clearUnused()
remove all unused scope objects |
static void |
error(Log log,
String msg)
|
static void |
error(Log log,
Throwable t)
|
void |
error(String msg)
|
void |
error(Throwable t)
|
Struct |
getAllApplicationScopes()
|
Struct |
getAllCFSessionScopes()
|
Struct |
getAllSessionScopes(PageContext pc)
return all session context of this application context |
Struct |
getAllSessionScopes(PageContext pc,
String appName)
Deprecated. use instead getAllSessionScopes(String appName) |
Struct |
getAllSessionScopes(String appName)
get all session contexts of given applicaton name |
int |
getAppContextSessionCount(PageContext pc)
return the session count of this application context |
Application |
getApplicationScope(PageContext pc,
RefBoolean isNew)
return the application Scope for this context (cfid,cftoken,contextname) |
Client |
getClientScope(PageContext pc)
|
Client |
getClientScopeEL(PageContext pc)
|
static Cluster |
getClusterScope(Config config,
boolean create)
Returns the current Cluster Scope, if there is no current Cluster Scope and create is true, returns a new Cluster Scope. |
static String |
getNewCFId()
|
static String |
getNewCFToken()
|
long |
getScopesSize(int scope)
return the size in bytes of all session contextes |
static Server |
getServerScope(PageContext pc)
return the server Scope for this context |
int |
getSessionCount(PageContext pc)
return the session count of all application contextes |
Session |
getSessionScope(PageContext pc,
RefBoolean isNew)
return the session Scope for this context (cfid,cftoken,contextname) |
boolean |
hasExistingSessionScope(PageContext pc)
|
static void |
info(Log log,
String msg)
|
void |
info(String msg)
|
void |
invalidateUserScope(PageContextImpl pc,
boolean migrateSessionData,
boolean migrateClientData)
|
boolean |
remove(int type,
String appName,
String cfid)
|
void |
removeApplicationScope(PageContext pc)
|
void |
removeClientScope(PageContext pc)
|
void |
removeSessionScope(PageContext pc)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ScopeContext(CFMLFactoryImpl factory)
Method Detail |
---|
public void info(String msg)
public void error(String msg)
public void error(Throwable t)
public static void info(Log log, String msg)
public static void error(Log log, String msg)
public static void error(Log log, Throwable t)
public static Server getServerScope(PageContext pc)
pc
-
public static Cluster getClusterScope(Config config, boolean create) throws PageException
pc
- create
-
PageException
public static void clearClusterScope()
public Client getClientScope(PageContext pc) throws PageException
PageException
public Client getClientScopeEL(PageContext pc)
public int getSessionCount(PageContext pc)
public int getAppContextSessionCount(PageContext pc)
public Struct getAllSessionScopes(PageContext pc)
pc
-
public Struct getAllApplicationScopes()
public Struct getAllCFSessionScopes()
public long getScopesSize(int scope) throws ExpressionException
ExpressionException
public Struct getAllSessionScopes(PageContext pc, String appName)
pc
- appName
-
public Struct getAllSessionScopes(String appName)
pc
- appName
-
public Session getSessionScope(PageContext pc, RefBoolean isNew) throws PageException
pc
- PageContext
PageException
public boolean hasExistingSessionScope(PageContext pc)
public void removeSessionScope(PageContext pc) throws PageException
PageException
public void removeClientScope(PageContext pc) throws PageException
PageException
public boolean remove(int type, String appName, String cfid)
public Application getApplicationScope(PageContext pc, RefBoolean isNew)
pc
- PageContextlistener
- isNew
-
PageException
public void removeApplicationScope(PageContext pc)
public void clearUnused()
public void clear()
public void clearApplication(PageContext pc) throws PageException
PageException
public static String getNewCFId()
public static String getNewCFToken()
public void invalidateUserScope(PageContextImpl pc, boolean migrateSessionData, boolean migrateClientData) throws PageException
PageException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |