Package org.glassfish.jersey.server.mvc

Examples of org.glassfish.jersey.server.mvc.Viewable


        }

        @POST
        @Path("absolute")
        public Viewable postAbs() {
            return new Viewable("/org/glassfish/jersey/tests/e2e/server/mvc/ViewProcessorTest/ExplicitTemplate/absolute/show",
                    "post");
        }
View Full Code Here


            return "ImplicitExplicitTemplate";
        }

        @POST
        public Viewable post() {
            return new Viewable("show", "post");
        }
View Full Code Here

        }

        @GET
        @Path("sub")
        public Viewable get() {
            return new Viewable("show", "get");
        }
View Full Code Here

    public static class ExplicitTemplate {

        @GET
        @Template
        public Viewable getViewable() {
            return new Viewable("", "method");
        }
View Full Code Here

        @GET
        public Viewable get() {
            final Map<String, String> map = new HashMap<String, String>();
            map.put("user", MESSAGE);

            return new Viewable("/org/glassfish/jersey/tests/e2e/server/mvc/MvcEncodingTest/" + templateName, map);
        }
View Full Code Here

        @Produces("text/plain")
        public Viewable getTextPlain() {
            final Map<String, String> map = new HashMap<String, String>();
            map.put("user", MESSAGE);

            return new Viewable("/org/glassfish/jersey/tests/e2e/server/mvc/MvcEncodingTest/" + templateName, map);
        }
View Full Code Here

        @Produces("text/plain;charset=UTF-16")
        public Viewable getTextPlainUTF16() {
            final Map<String, String> map = new HashMap<String, String>();
            map.put("user", MESSAGE);

            return new Viewable("/org/glassfish/jersey/tests/e2e/server/mvc/MvcEncodingTest/" + templateName, map);
        }
View Full Code Here

    @Path("/explicit")
    public static class ExplicitTemplate extends ExplicitTemplateBase {

        @GET
        public Viewable get() {
            return new Viewable("show", "get");
        }
View Full Code Here

        }

        @Path("inherit")
        @GET
        public Viewable getInherited() {
            return new Viewable("inherit", "get");
        }
View Full Code Here

        }

        @Path("override")
        @GET
        public Viewable getOverriden() {
            return new Viewable("override", "get");
        }
View Full Code Here

TOP

Related Classes of org.glassfish.jersey.server.mvc.Viewable

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.