]> source.dussan.org Git - vaadin-framework.git/commitdiff
Make AtmospherePushConnection methods public (#7973)
authorArtur <artur@vaadin.com>
Wed, 14 Dec 2016 09:55:49 +0000 (11:55 +0200)
committerLeif Åstrand <legioth@gmail.com>
Wed, 14 Dec 2016 09:55:49 +0000 (11:55 +0200)
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.

server/src/main/java/com/vaadin/server/communication/AtmospherePushConnection.java

index a5f785b0a87634540b9822ca3d29747b57c9e117..bbab0f96c5e8d84d156f36191ff50921a8634754 100644 (file)
@@ -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;
     }