aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/itmill/toolkit/Application.java
diff options
context:
space:
mode:
authorJoonas Lehtinen <joonas.lehtinen@itmill.com>2008-09-26 14:04:26 +0000
committerJoonas Lehtinen <joonas.lehtinen@itmill.com>2008-09-26 14:04:26 +0000
commit404a76e8db84ae86e517931d23876783d1de4aec (patch)
treea67fd258e64b14103ae28cf696d2b22ad259013e /src/com/itmill/toolkit/Application.java
parente945f4b6554aa1aa353252109a3b843c89ad64ab (diff)
downloadvaadin-framework-404a76e8db84ae86e517931d23876783d1de4aec.tar.gz
vaadin-framework-404a76e8db84ae86e517931d23876783d1de4aec.zip
Fixed #2106 : Reviewed, tested, merged (and a bit fixed) Maunos patch for automatic expiration forward when the session ends.
svn changeset:5528/svn branch:trunk
Diffstat (limited to 'src/com/itmill/toolkit/Application.java')
-rw-r--r--src/com/itmill/toolkit/Application.java15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/com/itmill/toolkit/Application.java b/src/com/itmill/toolkit/Application.java
index adbf587299..6eadaf8e8e 100644
--- a/src/com/itmill/toolkit/Application.java
+++ b/src/com/itmill/toolkit/Application.java
@@ -1393,10 +1393,11 @@ public abstract class Application implements URIHandler, Terminal.ErrorListener
/**
* Enables or disables the notification. If disabled, the set URL (or
- * current) is loaded directly.
+ * current) is loaded directly when next transaction between server and
+ * client happens.
*
* @param sessionExpiredNotificationEnabled
- * true = enabled, false = disabled
+ * true = enabled, false = disabled
*/
public void setSessionExpiredNotificationEnabled(
boolean sessionExpiredNotificationEnabled) {
@@ -1405,7 +1406,9 @@ public abstract class Application implements URIHandler, Terminal.ErrorListener
/**
* Sets the caption of the notification. Set to null for no caption. If
- * both caption and message is null, the notification is disabled;
+ * both caption and message are null, client automatically forwards to
+ * sessionExpiredUrl after timeout timer expires. Timer uses value read
+ * from HTTPSession.getMaxInactiveInterval()
*
* @param sessionExpiredCaption
* the caption
@@ -1416,10 +1419,12 @@ public abstract class Application implements URIHandler, Terminal.ErrorListener
/**
* Sets the message of the notification. Set to null for no message. If
- * both caption and message is null, the notification is disabled;
+ * both caption and message are null, client automatically forwards to
+ * sessionExpiredUrl after timeout timer expires. Timer uses value read
+ * from HTTPSession.getMaxInactiveInterval()
*
* @param sessionExpiredMessage
- * the message
+ * the message
*/
public void setSessionExpiredMessage(String sessionExpiredMessage) {
this.sessionExpiredMessage = sessionExpiredMessage;