Package org.glassfish.jersey.server.mvc

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


  @GET
  @Produces("application/javascript")
  @Path("{resource: ([^\\s]+(\\.(?i)(js|JS))$) }")
  public Viewable renderJavaScript() throws Exception {
    String path = "/" + getRequestConfig().getUriInfo().getPath();
    return new Viewable(path);
  }
View Full Code Here


  @GET
  @Produces("image/icon")
  @Path("{resource: ([^\\s]+(\\.(?i)(ico|ICO))$) }")
  public Viewable renderICOs() throws Exception {
    String path = "/" + getRequestConfig().getUriInfo().getPath();
    return new Viewable(path);
  }
View Full Code Here

  @GET
  @Produces("application/pdf")
  @Path("{resource: ([^\\s]+(\\.(?i)(pdf|PDF))$) }")
  public Viewable renderPDFs() throws Exception {
    String path = "/" + getRequestConfig().getUriInfo().getPath();
    return new Viewable(path);
  }
View Full Code Here

  }


  @GET @Path("/privacy-policy")
  public Viewable privacyPolicy() {
    return new Viewable("/mun-mon/general/privacy-policy.jsp");
  }
View Full Code Here

    return new Viewable("/mun-mon/general/privacy-policy.jsp");
  }

  @GET @Path("/terms-of-service")
  public Viewable termsOfService() {
    return new Viewable("/mun-mon/general/terms-of-service.jsp");
  }
View Full Code Here


  @GET // TODO - implement the faq.jsp page.
  @Path("{resource: (faq\\.).* }")
  public Viewable getFaq() {
    return new Viewable("/mun-mon/faq.jsp");
  }
View Full Code Here

    return new Viewable("/mun-mon/faq.jsp");
  }
  @GET // TODO - implement the contact.jsp page.
  @Path("{resource: (contact\\.).* }")
  public Viewable getContact() {
    return new Viewable("/mun-mon/contact.jsp");
  }
View Full Code Here

  @GET
  public Viewable getWelcome() {
    SecurityContext context = SecurityContextHolder.getContext();
    Authentication auth = context.getAuthentication();
    return new Viewable("/public/welcome.jsp", new WelcomeModel(auth));
  }
View Full Code Here

  @GET
  @Produces(MediaType.TEXT_HTML)
  public Viewable getStatus() {
    String status = "Running!";
    return new Viewable("/rest/status.ftl", status);
  }
View Full Code Here

  @GET
  @Produces(MediaType.TEXT_HTML)
  public Viewable getHello() {
    String status = "Running!";
    return new Viewable("/rest/index.ftl", status);
  }
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.