diff options
author | Artur <artur@vaadin.com> | 2016-12-14 11:55:49 +0200 |
---|---|---|
committer | Leif Åstrand <legioth@gmail.com> | 2016-12-14 11:55:49 +0200 |
commit | 58e6fc00c21acaec8767b6f29ad7e7e42eefd2c8 (patch) | |
tree | 9cae7633bbe72914c0c7ceb401b0d48614c15a0a /server | |
parent | 5951c9f2558f267826ce8f6350a1df9c1fd7e646 (diff) | |
download | vaadin-framework-58e6fc00c21acaec8767b6f29ad7e7e42eefd2c8.tar.gz vaadin-framework-58e6fc00c21acaec8767b6f29ad7e7e42eefd2c8.zip |
Make AtmospherePushConnection methods public (#7973)
There is no sensible way to use a custom version of APC, so protected
access does not help in any way to access the underlying resource and/or
connected UI.
Diffstat (limited to 'server')
-rw-r--r-- | server/src/main/java/com/vaadin/server/communication/AtmospherePushConnection.java | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/server/src/main/java/com/vaadin/server/communication/AtmospherePushConnection.java b/server/src/main/java/com/vaadin/server/communication/AtmospherePushConnection.java index a5f785b0a8..bbab0f96c5 100644 --- a/server/src/main/java/com/vaadin/server/communication/AtmospherePushConnection.java +++ b/server/src/main/java/com/vaadin/server/communication/AtmospherePushConnection.java @@ -258,17 +258,21 @@ public class AtmospherePushConnection implements PushConnection { } /** - * @return the UI associated with this connection. + * Gets the UI this push connection is associated with. + * + * @return the UI associated with this connection */ - protected UI getUI() { + public UI getUI() { return ui; } /** - * @return The AtmosphereResource associated with this connection or null if - * connection not open. + * Gets the atmosphere resource associated with this connection. + * + * @return The AtmosphereResource associated with this connection or + * <code>null</code> if the connection is not open. */ - protected AtmosphereResource getResource() { + public AtmosphereResource getResource() { return resource; } |