瀏覽代碼

Change sendMessage access modifier to protected. (#9622)

This allows extending AtmospherePushConnection, and then doing overriding sendMessage. One use case is to correlate the IP address and the message in the logs.
tags/8.1.0.rc2
Andrew Spear 6 年之前
父節點
當前提交
6c61a9797c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      server/src/main/java/com/vaadin/server/communication/AtmospherePushConnection.java

+ 1
- 1
server/src/main/java/com/vaadin/server/communication/AtmospherePushConnection.java 查看文件

@@ -180,7 +180,7 @@ public class AtmospherePushConnection implements PushConnection {
* @param message
* The message to send
*/
void sendMessage(String message) {
protected void sendMessage(String message) {
assert (isConnected());
// "Broadcast" the changes to the single client only
outgoingMessage = getResource().getBroadcaster().broadcast(message,

Loading…
取消
儲存