Class QuickReloadResource


  • public class QuickReloadResource
    extends Object
    Endpoint for retrieving comments and page content after a specified time. Useful for showing live updates to a page.
    • Method Detail

      • getAll

        public javax.ws.rs.core.Response getAll​(@Context
                                                javax.servlet.http.HttpServletRequest request,
                                                Long pageId,
                                                Long since)
        Finds any new comments or latest edit to this page since a given time, and returns the rendered html and user details. It is expected that this is polled by a client at regular intervals and, as such, processing done here needs to be as efficient as is humanly possible.
        Parameters:
        pageId - Currently loaded page
        since - Time of last poll