Interface RequestHandler

    • Method Detail

      • handle

        Flowable<Response> handle​(org.forgerock.services.context.Context context,
                                  Request request)
                           throws Exception
        Returns a Flowable representing the asynchronous Response of the given request.

        Successful responses (@see ResultCode.isExceptional() must be provided to the subscriber through the Subscriber.onNext(Object) method. All erroneous responses (e.g: no such object) must be published to the subscriber through the Subscriber.onError(Throwable) method.

        Parameters:
        context - The request context.
        request - The request.
        Returns:
        A Flowable of zero or several Response to be returned to the caller.
        Throws:
        Exception - If an error occurred during the processing of the request.