*/
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) {
*
* @return The node’s session manager
*/
- public SessionManager sessionManager() {
+ public SessionManager getSessionManager() {
try {
return sonePlugin.pluginRespirator().getSessionManager(new URI("/"));
} catch (URISyntaxException use1) {
*/
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) {