Package org.glassfish.jersey.server.mvc

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


    }

    List<UserEventGroup> groups = toGroups(requests);

    UserEventGroupsModel model = new UserEventGroupsModel(account, apiClient, groups);
    return new Viewable("/manage/api-user-events.jsp", model);
  }
View Full Code Here


    List<ApiRequest> requests = config.getApiRequestStore().getByClientAndDevice(apiClient, deviceId);
    List<UserEventGroup> groups = toGroups(requests);
    List<UserEventSession> sessions = groups.get(0).getSessions();

    UserEventSessionsModel model = new UserEventSessionsModel(account, apiClient, deviceId, sessions);
    return new Viewable("/manage/api-user-event.jsp", model);
  }
View Full Code Here

  @GET
  public Viewable viewEmailEvents() throws Exception {
    List<ApiRequest> requests = config.getApiRequestStore().getByClientAndType(apiClient, PushType.email);
    EmailsModel model = new EmailsModel(account, apiClient, requests);
    return new Viewable("/manage/api-emails.jsp", model);
  }
View Full Code Here

    ApiRequest apiRequest = config.getApiRequestStore().getByApiRequestId(apiRequestId);
    EmailPush email = apiRequest.getEmailPush();

    EmailModel model = new EmailModel(account, apiClient, apiRequest, email);
    return new Viewable("/manage/api-email.jsp", model);
  }
View Full Code Here

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

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

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

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

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

  @GET
  @Produces("text/css")
  @Path("{resource: ([^\\s]+(\\.(?i)(css|CSS))$) }")
  public Viewable renderCSS() throws Exception {
    String path = "/" + getRequestConfig().getUriInfo().getPath();
    return new Viewable(path);
  }
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.