Просмотр исходного кода

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 лет назад
Родитель
Сommit
6c61a9797c

+ 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,

Загрузка…
Отмена
Сохранить