Package org.glassfish.jersey.server.mvc

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


    private UriInfo uriInfo;

    @GET
    @Produces("text/html")
    public Viewable form() {
        return new Viewable("/form",
                Collections.singletonMap("greeting", "Link Shortener"));
    }
View Full Code Here


    @Path("/explicit")
    public static class ExplicitTemplate {
        @GET
        public Viewable get() {
            return new Viewable("show", "get");
        }
View Full Code Here

            return new Viewable("show", "get");
        }

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

            return "ImplicitExplicitTemplate";
        }

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

        }

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

  static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(MetricsResources.class);

  @GET
  @Produces(MediaType.TEXT_HTML)
  public Viewable getMetrics() {
    return new Viewable("/rest/threads/threads.ftl");
  }
View Full Code Here

  @GET
  @Path("/profiles")
  @Produces(MediaType.TEXT_HTML)
  public Viewable getProfiles() {
    QProfiles profiles = getProfilesJSON();
    return new Viewable("/rest/profile/list.ftl", profiles);
  }
View Full Code Here

  @Path("/profiles/{queryid}")
  @Produces(MediaType.TEXT_HTML)
  public Viewable getProfile(@PathParam("queryid") String queryId) {
    ProfileWrapper wrapper = new ProfileWrapper(getQueryProfile(queryId));

    return new Viewable("/rest/profile/profile.ftl", wrapper);

  }
View Full Code Here

  @Path("/running_profiles/{queryid}")
  @Produces(MediaType.TEXT_HTML)
  public Viewable getRunningProfile(@PathParam("queryid") String queryId) {
    ProfileWrapper wrapper = new ProfileWrapper(getRunningQueryProfile(queryId));

    return new Viewable("/rest/profile/profile.ftl", wrapper);

  }
View Full Code Here

  @GET
  @Path("/query")
  @Produces(MediaType.TEXT_HTML)
  public Viewable getQuery() {
    return new Viewable("/rest/query/query.ftl");
  }
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.