summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2013-04-17 10:14:54 +0300
committerArtur Signell <artur@vaadin.com>2013-04-17 10:14:54 +0300
commit77ff76fb0f1abc2621b0a4193590e68225f9fd05 (patch)
tree01d64364acee9acf9455078f02448a384146b98b /client
parent64055af699fce74303b690af76c8894cfeb42462 (diff)
downloadvaadin-framework-77ff76fb0f1abc2621b0a4193590e68225f9fd05.tar.gz
vaadin-framework-77ff76fb0f1abc2621b0a4193590e68225f9fd05.zip
Use "push" as a keyword in all push related log messages
Change-Id: Ia122959627dc705eb7b6183bc944bca7c690397e
Diffstat (limited to 'client')
-rw-r--r--client/src/com/vaadin/client/communication/PushConnection.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/client/src/com/vaadin/client/communication/PushConnection.java b/client/src/com/vaadin/client/communication/PushConnection.java
index c9f166bdea..0731d513ea 100644
--- a/client/src/com/vaadin/client/communication/PushConnection.java
+++ b/client/src/com/vaadin/client/communication/PushConnection.java
@@ -58,16 +58,16 @@ public class PushConnection {
}
public void connect(String uri) {
- VConsole.log("Establishing Atmosphere connection");
+ VConsole.log("Establishing push connection");
socket = doConnect(uri, getConfig());
}
public void push(String message) {
if (!connected) {
- VConsole.log("Queuing Atmosphere message: " + message);
+ VConsole.log("Queuing push message: " + message);
messageQueue.add(message);
} else {
- VConsole.log("Pushing Atmosphere message: " + message);
+ VConsole.log("Sending push message: " + message);
doPush(socket, message);
}
}
@@ -77,7 +77,7 @@ public class PushConnection {
}
protected void onOpen(AtmosphereResponse response) {
- VConsole.log("Atmosphere connection established using "
+ VConsole.log("Push connection established using "
+ response.getTransport());
connected = true;
for (String message : messageQueue) {
@@ -89,7 +89,7 @@ public class PushConnection {
protected void onMessage(AtmosphereResponse response) {
String message = response.getResponseBody();
if (message.startsWith("for(;;);")) {
- VConsole.log("Received Atmosphere message: " + message);
+ VConsole.log("Received push message: " + message);
// "for(;;);[{json}]" -> "{json}"
message = message.substring(9, message.length() - 1);
connection.handlePushMessage(message);
@@ -101,8 +101,8 @@ public class PushConnection {
* tried
*/
protected void onTransportFailure() {
- VConsole.log("Connection using primary method ("
- + config.getTransport() + ") failed. Falling back to "
+ VConsole.log("Push connection using primary method ("
+ + config.getTransport() + ") failed. Trying with "
+ config.getFallbackTransport());
}
@@ -112,7 +112,7 @@ public class PushConnection {
*
*/
protected void onError() {
- VConsole.error("Atmosphere connection using " + config.getTransport()
+ VConsole.error("Push connection using " + config.getTransport()
+ " failed!");
}