Class RecordResource


  • public class RecordResource
    extends Object
    Rest endpoint for the record feature.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.forgerock.util.promise.Promise<org.forgerock.json.resource.ActionResponse,​org.forgerock.json.resource.ResourceException> actionStart​(org.forgerock.services.context.Context serverContext, org.forgerock.json.resource.ActionRequest actionRequest)
      Start action
      org.forgerock.util.promise.Promise<org.forgerock.json.resource.ActionResponse,​org.forgerock.json.resource.ResourceException> actionStatus​(org.forgerock.services.context.Context serverContext, org.forgerock.json.resource.ActionRequest actionRequest)
      Status action
      org.forgerock.util.promise.Promise<org.forgerock.json.resource.ActionResponse,​org.forgerock.json.resource.ResourceException> actionStop​(org.forgerock.services.context.Context serverContext, org.forgerock.json.resource.ActionRequest actionRequest)
      Stop action
    • Constructor Detail

      • RecordResource

        @Inject
        public RecordResource​(DebugRecorder debugRecorder)
    • Method Detail

      • actionStart

        public org.forgerock.util.promise.Promise<org.forgerock.json.resource.ActionResponse,​org.forgerock.json.resource.ResourceException> actionStart​(org.forgerock.services.context.Context serverContext,
                                                                                                                                                              org.forgerock.json.resource.ActionRequest actionRequest)
        Start action
        Returns:
        a promise of the action response containing the started recording status
      • actionStatus

        public org.forgerock.util.promise.Promise<org.forgerock.json.resource.ActionResponse,​org.forgerock.json.resource.ResourceException> actionStatus​(org.forgerock.services.context.Context serverContext,
                                                                                                                                                               org.forgerock.json.resource.ActionRequest actionRequest)
        Status action
        Returns:
        a promise of the action response containing the current recording status
      • actionStop

        public org.forgerock.util.promise.Promise<org.forgerock.json.resource.ActionResponse,​org.forgerock.json.resource.ResourceException> actionStop​(org.forgerock.services.context.Context serverContext,
                                                                                                                                                             org.forgerock.json.resource.ActionRequest actionRequest)
        Stop action
        Returns:
        a promise of the action response for the stopped recording