]> source.dussan.org Git - vaadin-framework.git/commitdiff
Revert "Added a heartbeat timer to RootConnector (#9265)"
authorJohannes Dahlström <johannesd@vaadin.com>
Tue, 21 Aug 2012 09:34:06 +0000 (12:34 +0300)
committerJohannes Dahlström <johannesd@vaadin.com>
Tue, 21 Aug 2012 09:34:06 +0000 (12:34 +0300)
This reverts commit ff4988f6beaa0a1c8b908e098525afc3505ece64.

Conflicts:

client/src/com/vaadin/terminal/gwt/client/ui/root/RootConnector.java

client/src/com/vaadin/terminal/gwt/client/ui/root/RootConnector.java
shared/src/com/vaadin/shared/ui/root/RootState.java

index 9b5c3cd767b56888bba519826d7d191ef6d0643e..b3490effa7810c060a8f847e65043a49fd7e0de7 100644 (file)
@@ -25,16 +25,10 @@ import com.google.gwt.dom.client.Style;
 import com.google.gwt.dom.client.Style.Position;
 import com.google.gwt.event.logical.shared.ResizeEvent;
 import com.google.gwt.event.logical.shared.ResizeHandler;
-import com.google.gwt.http.client.Request;
-import com.google.gwt.http.client.RequestBuilder;
-import com.google.gwt.http.client.RequestCallback;
-import com.google.gwt.http.client.RequestException;
-import com.google.gwt.http.client.Response;
 import com.google.gwt.user.client.Command;
 import com.google.gwt.user.client.DOM;
 import com.google.gwt.user.client.Event;
 import com.google.gwt.user.client.History;
-import com.google.gwt.user.client.Timer;
 import com.google.gwt.user.client.Window;
 import com.google.gwt.user.client.ui.RootPanel;
 import com.google.gwt.user.client.ui.Widget;
@@ -92,14 +86,6 @@ public class RootConnector extends AbstractComponentContainerConnector
                 com.google.gwt.user.client.Window.setTitle(title);
             }
         });
-        final int heartbeatInterval = getState().getHeartbeatInterval();
-        new Timer() {
-            @Override
-            public void run() {
-                sendHeartbeat();
-                schedule(heartbeatInterval);
-            }
-        }.schedule(heartbeatInterval);
         getWidget().addResizeHandler(new ResizeHandler() {
             @Override
             public void onResize(ResizeEvent event) {
@@ -468,28 +454,4 @@ public class RootConnector extends AbstractComponentContainerConnector
         });
     }
 
-    private void sendHeartbeat() {
-        RequestBuilder rb = new RequestBuilder(RequestBuilder.POST, "url");
-
-        rb.setCallback(new RequestCallback() {
-
-            @Override
-            public void onResponseReceived(Request request, Response response) {
-                // TODO Auto-generated method stub
-
-            }
-
-            @Override
-            public void onError(Request request, Throwable exception) {
-                // TODO Auto-generated method stub
-
-            }
-        });
-
-        try {
-            rb.send();
-        } catch (RequestException re) {
-
-        }
-    }
 }
index 07c71c8167b3334004d29c1249be685c472a1c52..b7c2c88ce5fe751a1e80e64fdfeb640b5f970614 100644 (file)
@@ -20,7 +20,6 @@ import com.vaadin.shared.Connector;
 
 public class RootState extends ComponentState {
     private Connector content;
-    private int heartbeatInterval;
 
     public Connector getContent() {
         return content;
@@ -30,11 +29,4 @@ public class RootState extends ComponentState {
         this.content = content;
     }
 
-    public int getHeartbeatInterval() {
-        return heartbeatInterval;
-    }
-
-    public void setHeartbeatInterval(int heartbeatInterval) {
-        this.heartbeatInterval = heartbeatInterval;
-    }
 }
\ No newline at end of file