Use traditional getter name.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 5 Nov 2010 09:29:10 +0000 (10:29 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 5 Nov 2010 09:29:10 +0000 (10:29 +0100)
src/main/java/net/pterodactylus/sone/web/SoneTemplatePage.java
src/main/java/net/pterodactylus/sone/web/WebInterface.java
src/main/java/net/pterodactylus/sone/web/ajax/JsonPage.java

index 1eef0c4..1646935 100644 (file)
@@ -110,9 +110,9 @@ public class SoneTemplatePage extends TemplatePage {
         */
        protected Session getCurrentSession(ToadletContext toadletContenxt, boolean create) {
                try {
-                       Session session = webInterface.sessionManager().useSession(toadletContenxt);
+                       Session session = webInterface.getSessionManager().useSession(toadletContenxt);
                        if (create && (session == null)) {
-                               session = webInterface.sessionManager().createSession(UUID.randomUUID().toString(), toadletContenxt);
+                               session = webInterface.getSessionManager().createSession(UUID.randomUUID().toString(), toadletContenxt);
                        }
                        return session;
                } catch (freenet.clients.http.RedirectException re1) {
index 08d04a8..2ba96ec 100644 (file)
@@ -129,7 +129,7 @@ public class WebInterface {
         *
         * @return The node’s session manager
         */
-       public SessionManager sessionManager() {
+       public SessionManager getSessionManager() {
                try {
                        return sonePlugin.pluginRespirator().getSessionManager(new URI("/"));
                } catch (URISyntaxException use1) {
index 4f7e08f..94d1602 100644 (file)
@@ -85,9 +85,9 @@ public abstract class JsonPage implements Page {
         */
        protected Session getCurrentSession(ToadletContext toadletContenxt, boolean create) {
                try {
-                       Session session = webInterface.sessionManager().useSession(toadletContenxt);
+                       Session session = webInterface.getSessionManager().useSession(toadletContenxt);
                        if (create && (session == null)) {
-                               session = webInterface.sessionManager().createSession(UUID.randomUUID().toString(), toadletContenxt);
+                               session = webInterface.getSessionManager().createSession(UUID.randomUUID().toString(), toadletContenxt);
                        }
                        return session;
                } catch (freenet.clients.http.RedirectException re1) {