From d7fbd220a5af5f1edcf35de7822dd8a078a4fcc9 Mon Sep 17 00:00:00 2001 From: Jani Laakso Date: Fri, 8 Feb 2008 15:19:48 +0000 Subject: [PATCH] Got rid of last WeakHashMap, should now be able to do Terracotta svn changeset:3758/svn branch:trunk --- .../gwt/server/WebApplicationContext.java | 44 ------------------- 1 file changed, 44 deletions(-) diff --git a/src/com/itmill/toolkit/terminal/gwt/server/WebApplicationContext.java b/src/com/itmill/toolkit/terminal/gwt/server/WebApplicationContext.java index cf3998d732..c12f9e652a 100644 --- a/src/com/itmill/toolkit/terminal/gwt/server/WebApplicationContext.java +++ b/src/com/itmill/toolkit/terminal/gwt/server/WebApplicationContext.java @@ -13,7 +13,6 @@ import java.util.HashSet; import java.util.Iterator; import java.util.LinkedList; import java.util.List; -import java.util.WeakHashMap; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpSession; @@ -22,7 +21,6 @@ import javax.servlet.http.HttpSessionBindingListener; import com.itmill.toolkit.Application; import com.itmill.toolkit.service.ApplicationContext; -import com.itmill.toolkit.ui.Window; /** * Web application context for the IT Mill Toolkit applications. @@ -39,8 +37,6 @@ public class WebApplicationContext implements ApplicationContext, private final HttpSession session; - private final WeakHashMap formActions = new WeakHashMap(); - private final HashSet applications = new HashSet(); private final WebBrowser browser = new WebBrowser(); @@ -55,46 +51,6 @@ public class WebApplicationContext implements ApplicationContext, this.session = session; } - /** - * Gets the form action for given window. - *

- * By default, this action is "", which preserves the current url. Commonly - * this is wanted to be set to application.getUrl.toString or - * window.getUrl.toString in order to clean any local links - * or parameters set from the action. - *

- * - * @param window - * the Window for which the action is queried. - * @return the Action to be set into Form action attribute. - */ - public String getWindowFormAction(Window window) { - final String action = (String) formActions.get(window); - return action == null ? "" : action; - } - - /** - * Sets the form action for given window. - *

- * By default, this action is "", which preserves the current url. Commonly - * this is wanted to be set to application.getUrl.toString or - * window.getUrl.toString in order to clean any local links - * or parameters set from the action. - *

- * - * @param window - * the Window for which the action is set. - * @param action - * the New action for the window. - */ - public void setWindowFormAction(Window window, String action) { - if (action == null || action == "") { - formActions.remove(window); - } else { - formActions.put(window, action); - } - } - /** * Gets the application context base directory. * -- 2.39.5