Package org.mojavemvc.tests.views

Examples of org.mojavemvc.tests.views.HTMLPage


        afterInvokeCount++;
    }

    @DefaultAction
    public View defaultAction() {
        return new HTMLPage()
            .withH2Content("default");
    }
View Full Code Here


*/
public abstract class AbstractController {

    @Action("test")
    public View testInitAction() {
        return new HTMLPage()
            .withH2Content(getVal());
    }
View Full Code Here

    }

    @Action
    public View doSomething() {

        return new HTMLPage()
            .withH2Content("redirecting2");
    }
View Full Code Here

    }

    @Action
    public View doSomething() {

        return new HTMLPage()
            .withH2Content("streaming3");
    }
View Full Code Here

    private String someStatefulVar;

    @DefaultAction
    public View defaultAction() {
        return new HTMLPage();
    }
View Full Code Here

        return new HTMLPage();
    }

    @Action("some-action")
    public View someAction() {
        return new HTMLPage()
            .withH1Content("some-singleton/some-action");
    }
View Full Code Here

    @Action("set-var")
    public View setVarAction(@Param("var") String var) {

        someStatefulVar = var;
        return new HTMLPage()
            .withH1Content("some-singleton/set-var");
    }
View Full Code Here

    }

    @Action("get-var")
    public View getVarAction() {

        return new HTMLPage()
            .withH2Content(someStatefulVar);
    }
View Full Code Here

        Long ts = (Long)request.getAttribute("ts");
        if (ts == null) {
            ts = System.currentTimeMillis();
            request.setAttribute("ts", ts);
        }
        return new HTMLPage()
            .withH2Content(String.valueOf(ts));
    }
View Full Code Here

    }

    @Action("get-inj")
    public View getInjAction() {

        return new HTMLPage()
            .withH2Content(Integer.toHexString(System.identityHashCode(someService)));
    }
View Full Code Here

TOP

Related Classes of org.mojavemvc.tests.views.HTMLPage

Copyright © 2018 www.massapicom. 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.