Package org.mojavemvc.tests.views

Examples of org.mojavemvc.tests.views.HTMLPage


        for (int i = 0; i < vals.length; i++) {
            sb.append(vals[i]);
            if (i+1 < vals.length) sb.append(",");
        }
       
        return new HTMLPage()
            .withH2Content(sb.toString());
    }
View Full Code Here


    @Action("expects")
    @ParamPath("plaintext/pojo/with/params")
    @Expects("text/plain")
    public View expectPlainTextWithPojoWithParams(@Entity SimplePojo pojo,
            @Param("p1") String p1) {
        return new HTMLPage()
            .withH2Content(p1 + ", " + pojo.getVal());
    }
View Full Code Here

    }

    @Action("test-init")
    public View testInitAction() {
       
        return new HTMLPage()
            .withH2Content("index/test-init " + initVal);
    }
View Full Code Here

    }

    @DefaultAction
    public View defaultActn() {
       
        return new HTMLPage()
            .withH2Content(reqCtxCntrl + ":" + reqCtxActn);
    }
View Full Code Here

    }

    @Action("test")
    public View testAction() {
       
        return new HTMLPage()
            .withH1Content("index/test");
    }
View Full Code Here

    }

    @Action("with-param")
    public View withParamAction() {
       
        return new HTMLPage()
            .withH2Content("index/with-param " + getParameter("var"));
    }
View Full Code Here

    }

    @Action("another-param")
    public View anotherParamAction() {
       
        return new HTMLPage()
            .withH2Content("index/another-param " + getParameter("var"));
    }
View Full Code Here

    @Action("some-service")
    public View someServiceAction() {
       
        String answer = someService.answerRequest(getParameter("var"));

        return new HTMLPage()
            .withH2Content("index/some-service " + answer);
    }
View Full Code Here

    @Action("some-provided-service")
    public View someProvidedServiceAction(@Param("var") String var) {
       
        String processed = someProvidedService.processRequest(var);
       
        return new HTMLPage()
            .withH2Content(processed);
    }
View Full Code Here

    }

    @Action("test-annotation")
    public View doAnnotationTest() {
       
        return new HTMLPage()
            .withH2Content("index/test-annotation " + getParameter("var"));
    }
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.