Class QuickReloadResource

java.lang.Object
com.atlassian.confluence.plugins.quickreload.QuickReloadResource

@Path("/{pageId}") @Produces("application/json") public class QuickReloadResource extends Object
Endpoint for retrieving comments and page content after a specified time. Useful for showing live updates to a page.
  • Constructor Details

  • Method Details

    • getAll

      @GET public javax.ws.rs.core.Response getAll(@Context javax.servlet.http.HttpServletRequest request, @PathParam("pageId") Long pageId, @QueryParam("since") 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