org.spincast.website.controllers.DemosTutorialsController Maven / Gradle / Ivy
                 Go to download
                
        
                    Show more of this group  Show more artifacts with this name
Show all versions of spincast-website Show documentation
                Show all versions of spincast-website Show documentation
Source code for the https://www.spincast.org website.
                
             The newest version!
        
        package org.spincast.website.controllers;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.spincast.core.json.IJsonObject;
import org.spincast.core.utils.SpincastStatics;
import org.spincast.website.exchange.IAppRequestContext;
/**
 * Demos/Tutorials controller
 */
public class DemosTutorialsController {
    protected final Logger logger = LoggerFactory.getLogger(DemosTutorialsController.class);
    public void helloWorld(IAppRequestContext context) {
        context.response().sendTemplateHtml("/templates/demos/helloWorld.html", (IJsonObject)null);
    }
    public void webSockets(IAppRequestContext context) {
        context.response().sendTemplateHtml("/templates/demos/websockets.html",
                                            SpincastStatics.params("isHttps", context.request().isHttps()));
    }
    public void httpAuthentication(IAppRequestContext context) {
        context.response().sendTemplateHtml("/templates/demos/httpAuth.html", (IJsonObject)null);
    }
    public void httpAuthenticationProtectedPage(IAppRequestContext context) {
        context.response().sendTemplateHtml("/templates/demos/httpAuthProtectedPage.html", (IJsonObject)null);
    }
    public void fullWebsite(IAppRequestContext context) {
        context.response().sendTemplateHtml("/templates/demos/fullWebsite.html", (IJsonObject)null);
    }
    public void todoList(IAppRequestContext context) {
        context.response().sendTemplateHtml("/templates/demos/todoList.html", (IJsonObject)null);
    }
}
    © 2015 - 2025 Weber Informatics LLC | Privacy Policy