|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.wotonomy.web.WOSession
public class WOSession
A pure java implementation of WOSession.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface net.wotonomy.foundation.NSKeyValueCodingAdditions |
|---|
net.wotonomy.foundation.NSKeyValueCodingAdditions.DefaultImplementation, net.wotonomy.foundation.NSKeyValueCodingAdditions.Utility |
| Nested classes/interfaces inherited from interface net.wotonomy.foundation.NSKeyValueCoding |
|---|
net.wotonomy.foundation.NSKeyValueCoding.Null |
| Field Summary | |
|---|---|
static java.lang.String |
WOSessionDidCreateNotification
|
static java.lang.String |
WOSessionDidRestoreNotification
|
static java.lang.String |
WOSessionDidTimeOutNotification
|
| Fields inherited from interface net.wotonomy.foundation.NSKeyValueCoding |
|---|
NullValue |
| Constructor Summary | |
|---|---|
WOSession()
Default constructor. |
|
| Method Summary | |
|---|---|
void |
appendToResponse(WOResponse aResponse,
WOContext aContext)
Invoked by the Application to generate the content of the response. |
void |
awake()
Invoked at the beginning of the request-response cycle. |
WOContext |
context()
Returns the context for the current request. |
static void |
debugString(java.lang.String aString)
Writes a message to the standard error stream if debugging is activated. |
net.wotonomy.control.EOEditingContext |
defaultEditingContext()
Returns the default editing context used by this session. |
java.lang.String |
domainForIDCookies()
Returns the current domain for cookies containing session ids. |
net.wotonomy.foundation.NSDate |
expirationDateForIDCookies()
Returns the current expiration date for cookies that store session ids. |
java.lang.Object |
handleQueryWithUnboundKey(java.lang.String aKey)
|
void |
handleTakeValueForUnboundKey(java.lang.Object aValue,
java.lang.String aKey)
|
WOActionResults |
invokeAction(WORequest aRequest,
WOContext aContext)
Invoked by the Application to determine which component is the intended recipient of the user's action. |
boolean |
isDistributionEnabled()
Returns whether the session is part of a distributed application. |
boolean |
isTerminating()
Returns whether the current session will terminate at the completion of the current response. |
net.wotonomy.foundation.NSArray |
languages()
Returns the languages for which this session has been localized, in order of preference. |
static void |
logString(java.lang.String aString)
Writes a message to the standard error stream. |
java.lang.Object |
objectForKey(java.lang.String aKey)
Returns the session value associated with the specified key. |
void |
removeObjectForKey(java.lang.String aKey)
Removes the session value associated with the specified key. |
WOComponent |
restorePageForContextID(java.lang.String anID)
Returns the page in the session's page cache corresponding to the specified context id. |
void |
savePage(WOComponent aComponent)
Puts this page in the session's page cache using the current context id as the key. |
void |
savePageInPermanentCache(WOComponent aComponent)
Puts this page in the special cache is will not get automatically flushed like the session page cache. |
java.lang.String |
sessionID()
Returns the id of the current session. |
void |
setDefaultEditingContext(net.wotonomy.control.EOEditingContext aContext)
Sets the default editing context used by this session. |
void |
setDistributionEnabled(boolean enabled)
Sets whether distribution is currently enabled. |
void |
setLanguages(net.wotonomy.foundation.NSArray anArray)
Sets the languages for which this session has been localized, in order of preference. |
void |
setObjectForKey(java.lang.Object anObject,
java.lang.String aKey)
Stores the specified key-value pair in the session. |
void |
setStoresIDsInCookies(boolean cookies)
Sets whether session ids should be stored in cookies. |
void |
setStoresIDsInURLs(boolean urls)
Sets whether session ids should be stored in urls. |
void |
setTimeOut(double timeout)
Sets the number of seconds after the last request before the session should be terminated. |
void |
sleep()
Invoked at the end of the request-response cycle. |
net.wotonomy.foundation.NSArray |
statistics()
Returns a list of pages accessed by this session in order of their access and named by calling WOComponent.descriptionForResponse. |
java.lang.Object |
storedValueForKey(java.lang.String aKey)
|
boolean |
storesIDsInCookies()
Returns whether session ids are currently stored in cookies. |
boolean |
storesIDsInURLs()
Returns whether session ids are currently stored in urls. |
void |
takeStoredValueForKey(java.lang.Object aValue,
java.lang.String aKey)
|
void |
takeValueForKey(java.lang.Object aValue,
java.lang.String aKey)
|
void |
takeValueForKeyPath(java.lang.Object aValue,
java.lang.String aPath)
|
void |
takeValuesFromDictionary(java.util.Map aValueMap)
|
void |
takeValuesFromRequest(WORequest aRequest,
WOContext aContext)
Invoked by the Application to extract user-assigned balues and assign them to attributes. |
void |
terminate()
Terminates this session after the completion of the current response. |
double |
timeOut()
Returns the number of seconds after the last request before the session should be terminated. |
void |
unableToSetNullForKey(java.lang.String aKey)
|
java.lang.Object |
validateTakeValueForKeyPath(java.lang.Object aValue,
java.lang.String aKey)
|
java.lang.Object |
valueForKey(java.lang.String aKey)
|
java.lang.Object |
valueForKeyPath(java.lang.String aPath)
|
net.wotonomy.foundation.NSDictionary |
valuesForKeys(java.util.List aKeyList)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String WOSessionDidTimeOutNotification
public static final java.lang.String WOSessionDidRestoreNotification
public static final java.lang.String WOSessionDidCreateNotification
| Constructor Detail |
|---|
public WOSession()
| Method Detail |
|---|
public java.lang.String sessionID()
public void setDistributionEnabled(boolean enabled)
public boolean isDistributionEnabled()
public void setStoresIDsInCookies(boolean cookies)
public boolean storesIDsInCookies()
public net.wotonomy.foundation.NSDate expirationDateForIDCookies()
public void setStoresIDsInURLs(boolean urls)
public boolean storesIDsInURLs()
public java.lang.String domainForIDCookies()
public void terminate()
public boolean isTerminating()
public void setTimeOut(double timeout)
public double timeOut()
public void setLanguages(net.wotonomy.foundation.NSArray anArray)
public net.wotonomy.foundation.NSArray languages()
public void setObjectForKey(java.lang.Object anObject,
java.lang.String aKey)
public java.lang.Object objectForKey(java.lang.String aKey)
public void removeObjectForKey(java.lang.String aKey)
public WOContext context()
public void awake()
public void takeValuesFromRequest(WORequest aRequest,
WOContext aContext)
public WOActionResults invokeAction(WORequest aRequest,
WOContext aContext)
public void appendToResponse(WOResponse aResponse,
WOContext aContext)
public void sleep()
public net.wotonomy.foundation.NSArray statistics()
public void savePage(WOComponent aComponent)
public WOComponent restorePageForContextID(java.lang.String anID)
public void savePageInPermanentCache(WOComponent aComponent)
public static void logString(java.lang.String aString)
public static void debugString(java.lang.String aString)
public net.wotonomy.control.EOEditingContext defaultEditingContext()
public void setDefaultEditingContext(net.wotonomy.control.EOEditingContext aContext)
public java.lang.Object valueForKeyPath(java.lang.String aPath)
valueForKeyPath in interface net.wotonomy.foundation.NSKeyValueCodingAdditions
public void takeValueForKeyPath(java.lang.Object aValue,
java.lang.String aPath)
takeValueForKeyPath in interface net.wotonomy.foundation.NSKeyValueCodingAdditionspublic net.wotonomy.foundation.NSDictionary valuesForKeys(java.util.List aKeyList)
valuesForKeys in interface net.wotonomy.foundation.NSKeyValueCodingAdditionspublic void takeValuesFromDictionary(java.util.Map aValueMap)
takeValuesFromDictionary in interface net.wotonomy.foundation.NSKeyValueCodingAdditionspublic java.lang.Object valueForKey(java.lang.String aKey)
valueForKey in interface net.wotonomy.foundation.NSKeyValueCoding
public void takeValueForKey(java.lang.Object aValue,
java.lang.String aKey)
takeValueForKey in interface net.wotonomy.foundation.NSKeyValueCodingpublic java.lang.Object storedValueForKey(java.lang.String aKey)
storedValueForKey in interface net.wotonomy.foundation.NSKeyValueCoding
public void takeStoredValueForKey(java.lang.Object aValue,
java.lang.String aKey)
takeStoredValueForKey in interface net.wotonomy.foundation.NSKeyValueCodingpublic java.lang.Object handleQueryWithUnboundKey(java.lang.String aKey)
handleQueryWithUnboundKey in interface net.wotonomy.foundation.NSKeyValueCoding
public void handleTakeValueForUnboundKey(java.lang.Object aValue,
java.lang.String aKey)
handleTakeValueForUnboundKey in interface net.wotonomy.foundation.NSKeyValueCodingpublic void unableToSetNullForKey(java.lang.String aKey)
unableToSetNullForKey in interface net.wotonomy.foundation.NSKeyValueCoding
public java.lang.Object validateTakeValueForKeyPath(java.lang.Object aValue,
java.lang.String aKey)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||