diff options
author | Johannes Dahlström <johannesd@vaadin.com> | 2013-03-05 15:16:05 +0200 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2013-03-27 16:06:12 +0000 |
commit | 3c351deadfd4980ee43a1c86870a4c50ed78b310 (patch) | |
tree | 15873efff75454a071a03de6d9e55b43372e87ac /server | |
parent | dcd19d4f6df04d99333a769ce08933ae1c88c3f1 (diff) | |
download | vaadin-framework-3c351deadfd4980ee43a1c86870a4c50ed78b310.tar.gz vaadin-framework-3c351deadfd4980ee43a1c86870a4c50ed78b310.zip |
Remove synchronous AJAX support (#11254)
SJAX was used in Vaadin 6 only for window close events,
and those are not supported in Vaadin 7.
Change-Id: I3ca7137d5a16252f63051314743e0bee2890caf1
Diffstat (limited to 'server')
-rw-r--r-- | server/src/com/vaadin/server/VaadinPortlet.java | 3 | ||||
-rw-r--r-- | server/src/com/vaadin/server/VaadinServlet.java | 38 |
2 files changed, 0 insertions, 41 deletions
diff --git a/server/src/com/vaadin/server/VaadinPortlet.java b/server/src/com/vaadin/server/VaadinPortlet.java index 2abf140a3d..cc92edf6b2 100644 --- a/server/src/com/vaadin/server/VaadinPortlet.java +++ b/server/src/com/vaadin/server/VaadinPortlet.java @@ -417,9 +417,6 @@ public class VaadinPortlet extends GenericPortlet implements Constants, VaadinPortletSession vaadinSession = null; try { - // TODO What about PARAM_UNLOADBURST & - // redirectToApplication?? - vaadinSession = (VaadinPortletSession) getService() .findVaadinSession(vaadinRequest); if (vaadinSession == null) { diff --git a/server/src/com/vaadin/server/VaadinServlet.java b/server/src/com/vaadin/server/VaadinServlet.java index fefa8699e1..599c3d6bec 100644 --- a/server/src/com/vaadin/server/VaadinServlet.java +++ b/server/src/com/vaadin/server/VaadinServlet.java @@ -45,7 +45,6 @@ import com.vaadin.server.communication.HeartbeatHandler; import com.vaadin.server.communication.PublishedFileHandler; import com.vaadin.server.communication.UIInitHandler; import com.vaadin.server.communication.UidlRequestHandler; -import com.vaadin.shared.ApplicationConstants; import com.vaadin.util.CurrentInstance; @SuppressWarnings("serial") @@ -263,24 +262,6 @@ public class VaadinServlet extends HttpServlet implements Constants { VaadinSession vaadinSession = null; try { - // If a duplicate "close application" URL is received for an - // application that is not open, redirect to the application's main - // page. - // This is needed as e.g. Spring Security remembers the last - // URL from the application, which is the logout URL, and repeats - // it. - // We can tell apart a real onunload request from a repeated one - // based on the real one having content (at least the UIDL security - // key). - if (requestType == RequestType.UIDL - && request.getParameterMap().containsKey( - ApplicationConstants.PARAM_UNLOADBURST) - && request.getContentLength() < 1 - && getService().getExistingSession(request, false) == null) { - redirectToApplication(request, response); - return; - } - // Find out the service session this request is related to vaadinSession = getService().findVaadinSession(request); if (vaadinSession == null) { @@ -618,14 +599,6 @@ public class VaadinServlet extends HttpServlet implements Constants { VaadinServletResponse response) throws IOException, ServletException { - if (isOnUnloadRequest(request)) { - /* - * Request was an unload request (e.g. window close event) and the - * client expects no response if it fails. - */ - return; - } - try { SystemMessages ci = getService().getSystemMessages( ServletPortletHelper.findLocale(null, null, request), @@ -665,13 +638,6 @@ public class VaadinServlet extends HttpServlet implements Constants { private void handleServiceSecurityException(VaadinServletRequest request, VaadinServletResponse response) throws IOException, ServletException { - if (isOnUnloadRequest(request)) { - /* - * Request was an unload request (e.g. window close event) and the - * client expects no response if it fails. - */ - return; - } try { /* @@ -1132,10 +1098,6 @@ public class VaadinServlet extends HttpServlet implements Constants { return false; } - private boolean isOnUnloadRequest(HttpServletRequest request) { - return request.getParameter(ApplicationConstants.PARAM_UNLOADBURST) != null; - } - /** * Remove any heading or trailing "what" from the "string". * |