import net.pterodactylus.sone.web.page.Page;
import net.pterodactylus.sone.web.page.TemplatePage;
import net.pterodactylus.util.template.Template;
import net.pterodactylus.sone.web.page.Page;
import net.pterodactylus.sone.web.page.TemplatePage;
import net.pterodactylus.util.template.Template;
- protected Session getCurrentSession(Request request) {
- return getCurrentSession(request, true);
+ protected Session getCurrentSession(ToadletContext toadletContenxt) {
+ return getCurrentSession(toadletContenxt, true);
}
/**
* Returns the current session, creating a new session if there is no
* current session and {@code create} is {@code true}.
*
}
/**
* Returns the current session, creating a new session if there is no
* current session and {@code create} is {@code true}.
*
* @param create
* {@code true} to create a new session if there is no current
* session, {@code false} otherwise
* @return The current session, or {@code null} if there is no current
* session
*/
* @param create
* {@code true} to create a new session if there is no current
* session, {@code false} otherwise
* @return The current session, or {@code null} if there is no current
* session
*/
- protected Sone getCurrentSone(Request request) {
- Session session = getCurrentSession(request);
+ protected Sone getCurrentSone(ToadletContext toadletContenxt) {
+ Session session = getCurrentSession(toadletContenxt);
- protected void setCurrentSone(Request request, Sone sone) {
- Session session = getCurrentSession(request);
+ protected void setCurrentSone(ToadletContext toadletContext, Sone sone) {
+ Session session = getCurrentSession(toadletContext);