com.atlassian.mywork.host.rest
Class StatusResource

java.lang.Object
  extended by com.atlassian.mywork.host.rest.StatusResource

public class StatusResource
extends java.lang.Object

This resource returns the status of a user's notifications.


Constructor Summary
StatusResource(LocalNotificationService notificationService, UserService userService, TimeoutService timeoutService)
           
 
Method Summary
 javax.ws.rs.core.Response get(javax.servlet.http.HttpServletRequest request)
          Retrieves the count of unseen notifications, as well as the current timeout which needs to be respected by polling clients.
 javax.ws.rs.core.Response getNewNotificationsCount(javax.servlet.http.HttpServletRequest request)
          Retrieves just the count of unseen notifications.
 javax.ws.rs.core.Response getNewNotificationsCountWithTimeout(javax.servlet.http.HttpServletRequest request)
          Retrieves the count of unseen notifications, as well as the current timeout which needs to be respected by polling clients.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatusResource

public StatusResource(LocalNotificationService notificationService,
                      UserService userService,
                      TimeoutService timeoutService)
Method Detail

get

public javax.ws.rs.core.Response get(@Context
                                     javax.servlet.http.HttpServletRequest request)
Retrieves the count of unseen notifications, as well as the current timeout which needs to be respected by polling clients.


getNewNotificationsCount

public javax.ws.rs.core.Response getNewNotificationsCount(@Context
                                                          javax.servlet.http.HttpServletRequest request)
Retrieves just the count of unseen notifications.


getNewNotificationsCountWithTimeout

public javax.ws.rs.core.Response getNewNotificationsCountWithTimeout(@Context
                                                                     javax.servlet.http.HttpServletRequest request)
Retrieves the count of unseen notifications, as well as the current timeout which needs to be respected by polling clients.



Copyright © 2012 Atlassian. All Rights Reserved.