com.atlassian.confluence.plugins.quickreload
Class QuickReloadResource
java.lang.Object
com.atlassian.confluence.plugins.quickreload.QuickReloadResource
public class QuickReloadResource
- extends java.lang.Object
Endpoint for retrieving comments and page content after a specified time.
Useful for showing live updates to a page.
Method Summary |
javax.ws.rs.core.Response |
getAll(javax.servlet.http.HttpServletRequest request,
java.lang.Long pageId,
java.lang.Long since)
Finds any new comments or edits to this page since a given time, and returns the rendered html and user details. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QuickReloadResource
public QuickReloadResource(CommentManager commentManager,
CommentRenderService commentRenderer,
UserAccessor userAccessor,
PageManager pageManager,
PermissionManager permissionManager)
getAll
public javax.ws.rs.core.Response getAll(@Context
javax.servlet.http.HttpServletRequest request,
java.lang.Long pageId,
java.lang.Long since)
- Finds any new comments or edits 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 pagesince
- Time of last poll
Copyright © 2003-2014 Atlassian. All Rights Reserved.