Examples of StaticResourceHandler


Examples of com.astamuse.asta4d.web.builtin.StaticResourceHandler

    }

    private void initSampleRules(UrlMappingRuleHelper rules) {
        //@formatter:off
       
        rules.add("/js/**/*").handler(new StaticResourceHandler());
       
        rules.add("/app/", "/templates/index.html");
        rules.add("/app/index", "/templates/index.html");

        rules.add("/app/snippet", "/templates/snippet.html");
View Full Code Here

Examples of com.astamuse.asta4d.web.builtin.StaticResourceHandler

    }

    private void initSampleRules(UrlMappingRuleHelper rules) {
        //@formatter:off
       
        rules.add("/js/**/*").handler(new StaticResourceHandler());
       
        rules.add("/app/", "/templates/index.html");
        rules.add("/app/index", "/templates/index.html");

        rules.add("/app/snippet", "/templates/snippet.html");
View Full Code Here

Examples of com.astamuse.asta4d.web.builtin.StaticResourceHandler

    }

    private void initSampleRules(UrlMappingRuleHelper rules) {
        //@formatter:off
       
        rules.add("/js/**/*").handler(new StaticResourceHandler());
       
        rules.add("/app/", "/templates/index.html");
        rules.add("/app/index", "/templates/index.html");

        rules.add("/app/snippet", "/templates/snippet.html");
View Full Code Here

Examples of com.astamuse.asta4d.web.builtin.StaticResourceHandler

    }

    private void initSampleRules(UrlMappingRuleHelper rules) {
        //@formatter:off
       
        rules.add("/js/**/*").handler(new StaticResourceHandler());
       
        rules.add("/app/", "/templates/index.html");
        rules.add("/app/index", "/templates/index.html");

        rules.add("/app/snippet", "/templates/snippet.html");
View Full Code Here

Examples of io.lumify.miniweb.handlers.StaticResourceHandler

    }

    public void registerCss(String cssResourceName) {
        String resourcePath = "/css" + cssResourceName;
        if (devMode) {
            get(resourcePath, new StaticResourceHandler(this.getClass(), cssResourceName, "text/css"));
            pluginsCssResources.add(resourcePath);
        } else {
            pluginsCssResourceHandler.appendResource(cssResourceName);
        }
    }
View Full Code Here

Examples of io.lumify.miniweb.handlers.StaticResourceHandler

    @Override
    public void init(WebApp app, ServletContext servletContext, Handler authenticationHandler) {

        app.get("/jsc/io/lumify/termsOfUse/terms-of-use.hbs",
                new StaticResourceHandler(getClass(), "/io/lumify/termsOfUse/terms-of-use.hbs", "text/html"));

        app.registerJavaScript("/io/lumify/termsOfUse/terms-of-use-plugin.js");
        app.registerResourceBundle("/io/lumify/termsOfUse/messages.properties");
        app.get(TERMS_OF_USE_PATH, TermsOfUse.class);
        app.post(TERMS_OF_USE_PATH, TermsOfUse.class);
View Full Code Here

Examples of io.lumify.miniweb.handlers.StaticResourceHandler

import javax.servlet.ServletContext;

public class X509IdentityWebAppPlugin implements WebAppPlugin {
    @Override
    public void init(WebApp app, ServletContext servletContext, Handler authenticationHandler) {
        StaticResourceHandler jsHandler = new StaticResourceHandler(this.getClass(), "/x509/authentication.js", "application/javascript");
        StaticResourceHandler loginTemplateHandler = new StaticResourceHandler(this.getClass(), "/x509/templates/login.hbs", "text/plain");
        StaticResourceHandler lessHandler = new StaticResourceHandler(this.getClass(), "/x509/less/login.less", "text/plain");

        app.registerJavaScript("/x509/logout.js");
        app.registerCss("/x509/css/logout.css");

        app.get("/logout.html", new StaticResourceHandler(this.getClass(), "/x509/logout.html", "text/html"));
        app.get("/jsc/configuration/plugins/authentication/authentication.js", jsHandler);
        app.get("/jsc/configuration/plugins/authentication/templates/login.hbs", loginTemplateHandler);
        app.get("/jsc/configuration/plugins/authentication/less/login.less", lessHandler);

        app.post(AuthenticationHandler.LOGIN_PATH, InjectHelper.getInstance(X509IdentityAuthenticationHandler.class));
View Full Code Here

Examples of io.lumify.miniweb.handlers.StaticResourceHandler

        Class<? extends Handler> authenticationHandlerClass = authenticationHandler.getClass();
        Class<? extends Handler> csrfHandlerClass = LumifyCsrfHandler.class;


        app.get("/jsc/io/lumify/opennlpDictionary/web/templates/add.hbs",
                new StaticResourceHandler(getClass(), "/io/lumify/opennlpDictionary/web/templates/add.hbs", "text/html"));
        app.registerJavaScript("/io/lumify/opennlpDictionary/web/list-plugin.js");
        app.registerJavaScript("/io/lumify/opennlpDictionary/web/add-plugin.js");

        app.get("/admin/dictionary", authenticationHandlerClass, csrfHandlerClass, AdminPrivilegeFilter.class, AdminDictionary.class);
        app.get("/admin/dictionary/concept", authenticationHandlerClass, csrfHandlerClass, AdminPrivilegeFilter.class, AdminDictionaryByConcept.class);
View Full Code Here

Examples of io.lumify.miniweb.handlers.StaticResourceHandler

import javax.servlet.ServletContext;

public class UsernamePasswordWebAppPlugin implements WebAppPlugin {
    @Override
    public void init(WebApp app, ServletContext servletContext, Handler authenticationHandler) {
        StaticResourceHandler jsHandler = new StaticResourceHandler(this.getClass(), "/username-password/authentication.js", "application/javascript");
        StaticResourceHandler loginTemplateHandler = new StaticResourceHandler(this.getClass(), "/username-password/templates/login.hbs", "text/plain");
        StaticResourceHandler lessHandler = new StaticResourceHandler(this.getClass(), "/username-password/less/login.less", "text/plain");

        app.get("/jsc/configuration/plugins/authentication/authentication.js", jsHandler);
        app.get("/jsc/configuration/plugins/authentication/templates/login.hbs", loginTemplateHandler);
        app.get("/jsc/configuration/plugins/authentication/less/login.less", lessHandler);
View Full Code Here

Examples of io.lumify.miniweb.handlers.StaticResourceHandler

    public void init(WebApp app, ServletContext servletContext, Handler authenticationHandler) {
        Class<? extends Handler> authenticationHandlerClass = authenticationHandler.getClass();
        Class<? extends Handler> csrfHandlerClass = LumifyCsrfHandler.class;

        app.get("/jsc/io/lumify/web/importExportWorkspaces/import.hbs",
                new StaticResourceHandler(getClass(), "/io/lumify/web/importExportWorkspaces/import.hbs", "text/html"));
        app.registerJavaScript("/io/lumify/web/importExportWorkspaces/import-plugin.js");
        app.registerResourceBundle("/io/lumify/web/importExportWorkspaces/messages.properties");

        app.get("/jsc/io/lumify/web/importExportWorkspaces/export.hbs",
                new StaticResourceHandler(getClass(), "/io/lumify/web/importExportWorkspaces/export.hbs", "text/html"));
        app.registerJavaScript("/io/lumify/web/importExportWorkspaces/export-plugin.js");

        app.get("/admin/workspace/export", authenticationHandlerClass, csrfHandlerClass, AdminPrivilegeFilter.class, Export.class);
        app.post("/admin/workspace/import", authenticationHandlerClass, csrfHandlerClass, AdminPrivilegeFilter.class, Import.class);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.