Package org.glassfish.jersey.server.mvc

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


    public static class ExplicitTemplate {

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


    @Path("viewable")
    public static class AsViewableResource {
        @GET
        @Produces(MediaType.TEXT_HTML)
        public Viewable getAsHTML() {
            return new Viewable("index.testp", MODEL);
        }
View Full Code Here

    }

    @GET
    @Path("utf")
    public Viewable getItemUtf8() {
        return new Viewable("index.utf8.jsp", this);
    }
View Full Code Here

    }

    @GET
    @Path("iso")
    public Viewable getItemIso88592() {
        return new Viewable("index.iso88592.jsp", this);
    }
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

    public static class ExplicitTemplate {

        @GET
        @Template
        public Response get() {
            return Response.ok().entity(new Viewable("show", "get")).build();
        }
View Full Code Here

            return Response.ok().entity(new Viewable("show", "get")).build();
        }

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

        }

        @GET
        @Path("absolute")
        public Viewable getAbs() {
            return new Viewable("/org/glassfish/jersey/tests/e2e/server/mvc/ViewProcessorTest/ExplicitTemplate/absolute/show",
                    "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.