]> source.dussan.org Git - vaadin-framework.git/commitdiff
Got rid of last WeakHashMap, should now be able to do Terracotta
authorJani Laakso <jani.laakso@itmill.com>
Fri, 8 Feb 2008 15:19:48 +0000 (15:19 +0000)
committerJani Laakso <jani.laakso@itmill.com>
Fri, 8 Feb 2008 15:19:48 +0000 (15:19 +0000)
svn changeset:3758/svn branch:trunk

src/com/itmill/toolkit/terminal/gwt/server/WebApplicationContext.java

index cf3998d732429dfe4cb39b3c07d10c71c83be3ee..c12f9e652abed2f7f91a41b55be10e848f517333 100644 (file)
@@ -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.
-     * <p>
-     * By default, this action is "", which preserves the current url. Commonly
-     * this is wanted to be set to <code>application.getUrl.toString</code> or
-     * <code>window.getUrl.toString</code> in order to clean any local links
-     * or parameters set from the action.
-     * </p>
-     * 
-     * @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.
-     * <p>
-     * By default, this action is "", which preserves the current url. Commonly
-     * this is wanted to be set to <code>application.getUrl.toString</code> or
-     * <code>window.getUrl.toString</code> in order to clean any local links
-     * or parameters set from the action.
-     * </p>
-     * 
-     * @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.
      *