Class TypedRequestHandler

    • Constructor Detail

      • TypedRequestHandler

        public TypedRequestHandler()
    • Method Detail

      • handle

        public final Flowable<Response> handle​(org.forgerock.services.context.Context context,
                                               Request request)
                                        throws Exception
        Description copied from interface: RequestHandler
        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.

        Specified by:
        handle in interface RequestHandler
        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.
      • handleAny

        protected Flowable<Response> handleAny​(org.forgerock.services.context.Context context,
                                               Request request)
                                        throws Exception
        Implements the common behavior for all the request types.
        Parameters:
        context - The request context.
        request - The request.
        Returns:
        A Flowable representing the response to be returned to the client.
        Throws:
        Exception - If an error occurred during the processing of the request.
      • handleAbandon

        protected Flowable<Response> handleAbandon​(org.forgerock.services.context.Context context,
                                                   AbandonRequest request)
                                            throws Exception
        Implements the specific behavior for all AbandonRequest.
        Parameters:
        context - The request context.
        request - The request.
        Returns:
        A Flowable representing the response to be returned to the client.
        Throws:
        Exception - If an error occurred during the processing of the request.
      • handleAdd

        protected Flowable<Response> handleAdd​(org.forgerock.services.context.Context context,
                                               AddRequest request)
                                        throws Exception
        Implements the specific behavior for all AddRequest.
        Parameters:
        context - The request context.
        request - The request.
        Returns:
        A Flowable representing the response to be returned to the client.
        Throws:
        Exception - If an error occurred during the processing of the request.
      • handleBind

        protected Flowable<Response> handleBind​(org.forgerock.services.context.Context context,
                                                BindRequest request)
                                         throws Exception
        Implements the specific behavior for all BindRequest.
        Parameters:
        context - The request context.
        request - The request.
        Returns:
        A Flowable representing the response to be returned to the client.
        Throws:
        Exception - If an error occurred during the processing of the request.
      • handleCompare

        protected Flowable<Response> handleCompare​(org.forgerock.services.context.Context context,
                                                   CompareRequest request)
                                            throws Exception
        Implements the specific behavior for all CompareRequest.
        Parameters:
        context - The request context.
        request - The request.
        Returns:
        A Flowable representing the response to be returned to the client.
        Throws:
        Exception - If an error occurred during the processing of the request.
      • handleDelete

        protected Flowable<Response> handleDelete​(org.forgerock.services.context.Context context,
                                                  DeleteRequest request)
                                           throws Exception
        Implements the specific behavior for all DeleteRequest.
        Parameters:
        context - The request context.
        request - The request.
        Returns:
        A Flowable representing the response to be returned to the client.
        Throws:
        Exception - If an error occurred during the processing of the request.
      • handleExtended

        protected Flowable<Response> handleExtended​(org.forgerock.services.context.Context context,
                                                    ExtendedRequest<?> request)
                                             throws Exception
        Implements the specific behavior for all ExtendedRequest.
        Parameters:
        context - The request context.
        request - The request.
        Returns:
        A Flowable representing the response to be returned to the client.
        Throws:
        Exception - If an error occurred during the processing of the request.
      • handleInvalid

        protected Flowable<Response> handleInvalid​(org.forgerock.services.context.Context context,
                                                   InvalidRequest request)
                                            throws Exception
        Implements the specific behavior for all InvalidRequest.
        Parameters:
        context - The request context.
        request - The request.
        Returns:
        A Flowable representing the response to be returned to the client.
        Throws:
        Exception - If an error occurred during the processing of the request.
      • handleSearch

        protected Flowable<Response> handleSearch​(org.forgerock.services.context.Context context,
                                                  SearchRequest request)
                                           throws Exception
        Implements the specific behavior for all SearchRequest.
        Parameters:
        context - The request context.
        request - The request.
        Returns:
        A Flowable representing the response to be returned to the client.
        Throws:
        Exception - If an error occurred during the processing of the request.
      • handleModify

        protected Flowable<Response> handleModify​(org.forgerock.services.context.Context context,
                                                  ModifyRequest request)
                                           throws Exception
        Implements the specific behavior for all ModifyRequest.
        Parameters:
        context - The request context.
        request - The request.
        Returns:
        A Flowable representing the response to be returned to the client.
        Throws:
        Exception - If an error occurred during the processing of the request.
      • handleModifyDn

        protected Flowable<Response> handleModifyDn​(org.forgerock.services.context.Context context,
                                                    ModifyDnRequest request)
                                             throws Exception
        Implements the specific behavior for all ModifyDnRequest.
        Parameters:
        context - The request context.
        request - The request.
        Returns:
        A Flowable representing the response to be returned to the client.
        Throws:
        Exception - If an error occurred during the processing of the request.
      • handleUnbind

        protected Flowable<Response> handleUnbind​(org.forgerock.services.context.Context context,
                                                  UnbindRequest request)
                                           throws Exception
        Implements the specific behavior for all UnbindRequest.
        Parameters:
        context - The request context.
        request - The request.
        Returns:
        A Flowable representing the response to be returned to the client.
        Throws:
        Exception - If an error occurred during the processing of the request.
      • handleUnknown

        protected Flowable<Response> handleUnknown​(org.forgerock.services.context.Context context,
                                                   UnknownRequest request)
                                            throws Exception
        Implements the specific behavior for all UnknownRequest.
        Parameters:
        context - The request context.
        request - The request.
        Returns:
        A Flowable representing the response to be returned to the client.
        Throws:
        Exception - If an error occurred during the processing of the request.