Class LongTaskResource

java.lang.Object
com.atlassian.confluence.plugins.restapi.resources.LongTaskResource

@Path("/longtask") @Consumes("application/json") @Produces("application/json") public class LongTaskResource extends Object
REST wrapper for the LongTaskService.
  • Constructor Details

    • LongTaskResource

      @Inject public LongTaskResource(LongTaskService longTaskService)
  • Method Details

    • getTasks

      @GET public RestList<LongTaskStatus> getTasks(@QueryParam("expand") @DefaultValue("") String expand, @QueryParam("start") int start, @QueryParam("limit") @DefaultValue("100") int limit, @Context javax.ws.rs.core.UriInfo uriInfo)
    • getTask

      @PublicApi @GET @Path("/{id}") public LongTaskStatus getTask(@PathParam("id") String idStr, @QueryParam("expand") @DefaultValue("") String expand)
    • submissionResponse

      public static javax.ws.rs.core.Response submissionResponse(LongTaskSubmission taskSubmission)
      Produce a HTTP Accept 202 response from some other resource pointing to this class's LongTaskStatus resource.