|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectariba.ui.aribaweb.util.AWBaseObject
ariba.ui.aribaweb.core.AWSession
public class AWSession
Nested Class Summary | |
---|---|
static interface |
AWSession.LifecycleListener
|
Field Summary | |
---|---|
java.lang.String |
_backTrackURL
|
java.lang.String |
_forwardTrackURL
|
java.lang.String |
_refreshURL
|
static int |
BacktrackRequest
|
static int |
ForwardTrackRequest
|
static int |
InterruptedNewRequest
|
static int |
NewRequest
|
static int |
NoOpRequest
|
static int |
RefreshRequest
|
static java.lang.String |
ResourceManagerKey
|
Fields inherited from class ariba.ui.aribaweb.util.AWBaseObject |
---|
AribaHashtableClass, AribaVectorClass, ClassClass, EmptyHashtable, EmptyMap, EmptyVector, False, IntegerClass, JavaHashtableClass, JavaMapClass, JavaVectorClass, LogHandling, NullObject, ObjectClass, StringClass, True, UndefinedObject, UndefinedString, UninitializedRealNumber |
Constructor Summary | |
---|---|
AWSession()
|
Method Summary | |
---|---|
void |
_forceLocale(java.util.Locale locale)
|
void |
_updatePageResourceManager(AWResourceManager resourceManager)
|
void |
addNotification(AWNotification notification)
We are assuming many writers, but only one reader |
boolean |
allowParentFrame()
|
AWApplication |
application()
|
java.lang.String |
brandName()
|
java.lang.String |
brandVersion()
|
AWCharacterEncoding |
characterEncoding()
|
static void |
cleanupThreadState()
For AW processing by long running threads that do not execute the usual UI request / response code path. |
void |
clearAllPageCaches()
|
void |
clearPageCache()
|
java.util.TimeZone |
clientTimeZone()
|
java.lang.String |
debugDisconnectString()
Note: this method can be called from an asynchronous non-UI thread |
java.util.Map |
dict()
|
long |
disconnectTime()
Returns the time (in millis) at which point this session is considered to be disconnected. |
void |
dispose()
|
void |
dontReplaceLastPerformanceStats()
This call prevents that the last perf stats will be replaced by the current one in the sleep phase. |
AWEnvironmentStack |
environmentStack()
|
java.lang.String |
getBackTrackURL()
|
java.lang.String |
getForwardTrackURL()
|
long |
getLastAccessedTime()
|
java.util.List |
getNotifications()
|
java.lang.String |
getRefreshURL()
|
void |
getShutdownWarning()
|
int |
getTimeout()
session timeout in seconds Note: this method can be called from an asynchronous non-UI thread |
boolean |
hasChanged()
|
boolean |
hasNotification()
No need to synchronize, since this will become false only after the one reader consumes the list |
boolean |
hasShutdownWarning()
|
int |
historyLength()
|
int |
historyPosition()
|
javax.servlet.http.HttpSession |
httpSession()
|
void |
init(AWApplication application,
AWRequestContext requestContext)
|
static void |
initializeThreadState()
For AW processing by long running threads that do not execute the usual UI request / response code path. |
boolean |
isAccessibilityEnabled()
|
boolean |
isBrandTestMode()
|
boolean |
isConnected()
|
boolean |
isMarkedForTermination()
|
boolean |
isTerminated()
|
PerformanceState.Stats |
lastRequestPerfStats()
|
void |
markAppBoundary()
|
void |
markForTermination()
|
AWPageCacheMark |
markPageCache()
|
boolean |
omitWrapperFrame()
|
AWComponent |
pageWithName(java.lang.String pageName)
|
java.util.Locale |
preferredLocale()
|
AWPage |
previousPage(AWPage page)
Use this to get the previously cached page -- do not use session.previousPage() as that is only for refreshRegions support, especially since previousPage() has been removed. |
boolean |
registerActiveSession()
Registers the session with monitor stats object. |
static void |
registerLifecycleListener(AWSession.LifecycleListener listener)
|
java.lang.String |
remoteHostAddress()
|
java.net.InetAddress |
remoteIPAddress()
|
void |
removeFromPageCache(AWPage page)
|
void |
removePageCache(AWEncodedString frameName)
|
AWRequest |
request()
|
AWRequestContext |
requestContext()
|
int |
requestType(AWRequest request)
|
AWResourceManager |
resourceManager()
|
AWPage |
restoreCurrentPage()
|
AWPage |
restoreNextPage(AWPage page)
|
AWPage |
restorePreviousPage(AWPage page)
|
void |
savePage(AWPage page)
|
void |
savePage(AWPage page,
boolean isExceptionPage)
|
static AWSession |
session(javax.servlet.http.HttpSession httpSession)
|
java.lang.String |
sessionId()
|
java.lang.String |
sessionIdentifier()
|
java.lang.String |
sessionSecureId()
|
void |
setAccessibilityEnabled(boolean flag)
|
void |
setAllowParentFrame(boolean allowParentFrame)
|
void |
setBackTrackURL(java.lang.String url)
|
void |
setBrandName(java.lang.String brandName)
|
void |
setBrandTestMode(boolean flag)
|
void |
setBrandVersion(java.lang.String brandVersion)
|
void |
setCharacterEncoding(AWCharacterEncoding characterEncoding)
|
void |
setClientTimeZone(java.util.TimeZone timeZone)
|
void |
setConnected(boolean flag)
|
void |
setForwardTrackURL(java.lang.String url)
|
void |
setOmitWrapperFrame(boolean omit)
|
void |
setPreferredLocale(java.util.Locale locale)
|
void |
setRefreshURL(java.lang.String url)
|
void |
setRemoteHostAddress(java.lang.String remoteHostAddress)
|
void |
setRequestInterval(int requestInterval)
Sets the expected amount of time between requests for this session in seconds. |
static void |
setSession(javax.servlet.http.HttpSession httpSession,
AWSession awsession)
|
void |
setSessionId(java.lang.String newSessionId)
The AWSession id should have been assigned during initialization. |
void |
setSessionIdentifier(java.lang.String sessionIdentifier)
|
void |
setTimeout(int timeoutSeconds)
|
void |
terminate()
|
void |
truncatePageCache(AWPageCacheMark pageCacheMark)
|
void |
truncatePageCache(AWPageCacheMark pageCacheMark,
boolean inclusive)
|
boolean |
unregisterActiveSession()
UnRegisters the session with monitor stats object. |
void |
valueBound(javax.servlet.http.HttpSessionBindingEvent event)
|
void |
valueUnbound(javax.servlet.http.HttpSessionBindingEvent event)
|
Methods inherited from class ariba.ui.aribaweb.util.AWBaseObject |
---|
debugString, ensureFieldValuesClear, getFieldValue, init, isKindOfClass, localizedJavaString, logString, logWarning, setFieldValue |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ResourceManagerKey
public static final int NewRequest
public static final int BacktrackRequest
public static final int ForwardTrackRequest
public static final int RefreshRequest
public static final int InterruptedNewRequest
public static final int NoOpRequest
public java.lang.String _refreshURL
public java.lang.String _backTrackURL
public java.lang.String _forwardTrackURL
Constructor Detail |
---|
public AWSession()
Method Detail |
---|
public void dispose()
dispose
in interface AWDisposable
public static void setSession(javax.servlet.http.HttpSession httpSession, AWSession awsession)
public static AWSession session(javax.servlet.http.HttpSession httpSession)
public static void initializeThreadState()
public static void cleanupThreadState()
public boolean registerActiveSession()
public boolean unregisterActiveSession()
public javax.servlet.http.HttpSession httpSession()
public java.lang.String sessionId()
public void setSessionId(java.lang.String newSessionId)
public java.lang.String sessionSecureId()
public void init(AWApplication application, AWRequestContext requestContext)
public java.util.Map dict()
public AWApplication application()
public AWRequest request()
public AWRequestContext requestContext()
public AWResourceManager resourceManager()
public void setPreferredLocale(java.util.Locale locale)
public void _forceLocale(java.util.Locale locale)
public java.util.Locale preferredLocale()
public void setCharacterEncoding(AWCharacterEncoding characterEncoding)
public AWCharacterEncoding characterEncoding()
public void setClientTimeZone(java.util.TimeZone timeZone)
public java.util.TimeZone clientTimeZone()
public void setAccessibilityEnabled(boolean flag)
public boolean isAccessibilityEnabled()
public AWEnvironmentStack environmentStack()
public void setRemoteHostAddress(java.lang.String remoteHostAddress)
public java.lang.String remoteHostAddress()
public java.net.InetAddress remoteIPAddress()
public void setTimeout(int timeoutSeconds)
public final int getTimeout()
public long getLastAccessedTime()
public void setRequestInterval(int requestInterval)
requestInterval
- the amount of time (seconds) between expected requests.
Set to -1 if the amount of time between requests is unknown.public long disconnectTime()
public java.lang.String debugDisconnectString()
public boolean isConnected()
public void setConnected(boolean flag)
public void setSessionIdentifier(java.lang.String sessionIdentifier)
public java.lang.String sessionIdentifier()
public int requestType(AWRequest request)
public void savePage(AWPage page, boolean isExceptionPage)
public void savePage(AWPage page)
public AWPage restoreCurrentPage()
public AWPage restoreNextPage(AWPage page)
public AWPage restorePreviousPage(AWPage page)
public AWPage previousPage(AWPage page)
public void clearPageCache()
public void removePageCache(AWEncodedString frameName)
public void clearAllPageCaches()
public void _updatePageResourceManager(AWResourceManager resourceManager)
public void removeFromPageCache(AWPage page)
public AWPageCacheMark markPageCache()
public void truncatePageCache(AWPageCacheMark pageCacheMark, boolean inclusive)
public void truncatePageCache(AWPageCacheMark pageCacheMark)
public void markAppBoundary()
public void setRefreshURL(java.lang.String url)
public java.lang.String getRefreshURL()
public void setBackTrackURL(java.lang.String url)
public java.lang.String getBackTrackURL()
public void setForwardTrackURL(java.lang.String url)
public java.lang.String getForwardTrackURL()
public boolean isTerminated()
public void terminate()
public void markForTermination()
public boolean isMarkedForTermination()
public void valueBound(javax.servlet.http.HttpSessionBindingEvent event)
valueBound
in interface javax.servlet.http.HttpSessionBindingListener
public void valueUnbound(javax.servlet.http.HttpSessionBindingEvent event)
valueUnbound
in interface javax.servlet.http.HttpSessionBindingListener
public static void registerLifecycleListener(AWSession.LifecycleListener listener)
public PerformanceState.Stats lastRequestPerfStats()
public void dontReplaceLastPerformanceStats()
public AWComponent pageWithName(java.lang.String pageName)
public int historyPosition()
public int historyLength()
public java.lang.String brandName()
public void setBrandName(java.lang.String brandName)
public java.lang.String brandVersion()
public void setBrandVersion(java.lang.String brandVersion)
public boolean isBrandTestMode()
public void setBrandTestMode(boolean flag)
public boolean hasChanged()
public void addNotification(AWNotification notification)
public java.util.List getNotifications()
public boolean hasNotification()
public boolean hasShutdownWarning()
public void getShutdownWarning()
public void setAllowParentFrame(boolean allowParentFrame)
public boolean allowParentFrame()
public boolean omitWrapperFrame()
public void setOmitWrapperFrame(boolean omit)
omit
- when true, the wrapper frame is omitted on all pages rendered
in this session. When false, the binding value on the page wrapper is used.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |