Class CompletionStageRxInvokerImpl

    • Constructor Detail

      • CompletionStageRxInvokerImpl

        public CompletionStageRxInvokerImpl​(SyncInvoker builder)
    • Method Detail

      • get

        public <T> CompletionStage<T> get​(Class<T> responseType)
        Description copied from interface: RxInvoker
        Invoke HTTP GET method for the current request.
        Specified by:
        get in interface CompletionStageRxInvoker
        Specified by:
        get in interface RxInvoker<CompletionStage>
        Type Parameters:
        T - response entity type.
        Parameters:
        responseType - Java type the response entity will be converted to.
        Returns:
        invocation response wrapped in the completion aware type.
      • get

        public <T> CompletionStage<T> get​(GenericType<T> responseType)
        Description copied from interface: RxInvoker
        Invoke HTTP GET method for the current request.
        Specified by:
        get in interface CompletionStageRxInvoker
        Specified by:
        get in interface RxInvoker<CompletionStage>
        Type Parameters:
        T - generic response entity type.
        Parameters:
        responseType - representation of a generic Java type the response entity will be converted to.
        Returns:
        invocation response wrapped in the completion aware type.
      • put

        public CompletionStage<Response> put​(Entity<?> entity)
        Description copied from interface: RxInvoker
        Invoke HTTP PUT method for the current request.
        Specified by:
        put in interface CompletionStageRxInvoker
        Specified by:
        put in interface RxInvoker<CompletionStage>
        Parameters:
        entity - request entity, including it's full Variant information. Any variant-related HTTP headers previously set (namely Content-Type, Content-Language and Content-Encoding) will be overwritten using the entity variant information.
        Returns:
        invocation response wrapped in the completion aware type.
      • put

        public <T> CompletionStage<T> put​(Entity<?> entity,
                                          Class<T> clazz)
        Description copied from interface: RxInvoker
        Invoke HTTP PUT method for the current request.
        Specified by:
        put in interface CompletionStageRxInvoker
        Specified by:
        put in interface RxInvoker<CompletionStage>
        Type Parameters:
        T - response entity type.
        Parameters:
        entity - request entity, including it's full Variant information. Any variant-related HTTP headers previously set (namely Content-Type, Content-Language and Content-Encoding) will be overwritten using the entity variant information.
        clazz - Java type the response entity will be converted to.
        Returns:
        invocation response wrapped in the completion aware type.
      • put

        public <T> CompletionStage<T> put​(Entity<?> entity,
                                          GenericType<T> type)
        Description copied from interface: RxInvoker
        Invoke HTTP PUT method for the current request.
        Specified by:
        put in interface CompletionStageRxInvoker
        Specified by:
        put in interface RxInvoker<CompletionStage>
        Type Parameters:
        T - generic response entity type.
        Parameters:
        entity - request entity, including it's full Variant information. Any variant-related HTTP headers previously set (namely Content-Type, Content-Language and Content-Encoding) will be overwritten using the entity variant information.
        type - representation of a generic Java type the response entity will be converted to.
        Returns:
        invocation response wrapped in the completion aware type.
      • post

        public CompletionStage<Response> post​(Entity<?> entity)
        Description copied from interface: RxInvoker
        Invoke HTTP POST method for the current request.
        Specified by:
        post in interface CompletionStageRxInvoker
        Specified by:
        post in interface RxInvoker<CompletionStage>
        Parameters:
        entity - request entity, including it's full Variant information. Any variant-related HTTP headers previously set (namely Content-Type, Content-Language and Content-Encoding) will be overwritten using the entity variant information.
        Returns:
        invocation response wrapped in the completion aware type.
      • post

        public <T> CompletionStage<T> post​(Entity<?> entity,
                                           Class<T> clazz)
        Description copied from interface: RxInvoker
        Invoke HTTP POST method for the current request.
        Specified by:
        post in interface CompletionStageRxInvoker
        Specified by:
        post in interface RxInvoker<CompletionStage>
        Type Parameters:
        T - response entity type.
        Parameters:
        entity - request entity, including it's full Variant information. Any variant-related HTTP headers previously set (namely Content-Type, Content-Language and Content-Encoding) will be overwritten using the entity variant information.
        clazz - Java type the response entity will be converted to.
        Returns:
        invocation response wrapped in the completion aware type.
      • post

        public <T> CompletionStage<T> post​(Entity<?> entity,
                                           GenericType<T> type)
        Description copied from interface: RxInvoker
        Invoke HTTP POST method for the current request.
        Specified by:
        post in interface CompletionStageRxInvoker
        Specified by:
        post in interface RxInvoker<CompletionStage>
        Type Parameters:
        T - generic response entity type.
        Parameters:
        entity - request entity, including it's full Variant information. Any variant-related HTTP headers previously set (namely Content-Type, Content-Language and Content-Encoding) will be overwritten using the entity variant information.
        type - representation of a generic Java type the response entity will be converted to.
        Returns:
        invocation response wrapped in the completion aware type.
      • delete

        public <T> CompletionStage<T> delete​(Class<T> responseType)
        Description copied from interface: RxInvoker
        Invoke HTTP DELETE method for the current request.
        Specified by:
        delete in interface CompletionStageRxInvoker
        Specified by:
        delete in interface RxInvoker<CompletionStage>
        Type Parameters:
        T - response entity type.
        Parameters:
        responseType - Java type the response entity will be converted to.
        Returns:
        invocation response wrapped in the completion aware type.
      • delete

        public <T> CompletionStage<T> delete​(GenericType<T> responseType)
        Description copied from interface: RxInvoker
        Invoke HTTP DELETE method for the current request.
        Specified by:
        delete in interface CompletionStageRxInvoker
        Specified by:
        delete in interface RxInvoker<CompletionStage>
        Type Parameters:
        T - generic response entity type.
        Parameters:
        responseType - representation of a generic Java type the response entity will be converted to.
        Returns:
        invocation response wrapped in the completion aware type.
      • options

        public <T> CompletionStage<T> options​(Class<T> responseType)
        Description copied from interface: RxInvoker
        Invoke HTTP OPTIONS method for the current request.
        Specified by:
        options in interface CompletionStageRxInvoker
        Specified by:
        options in interface RxInvoker<CompletionStage>
        Type Parameters:
        T - response entity type.
        Parameters:
        responseType - Java type the response entity will be converted to.
        Returns:
        invocation response wrapped in the completion aware type.
      • options

        public <T> CompletionStage<T> options​(GenericType<T> responseType)
        Description copied from interface: RxInvoker
        Invoke HTTP OPTIONS method for the current request.
        Specified by:
        options in interface CompletionStageRxInvoker
        Specified by:
        options in interface RxInvoker<CompletionStage>
        Type Parameters:
        T - generic response entity type.
        Parameters:
        responseType - representation of a generic Java type the response entity will be converted to.
        Returns:
        invocation response wrapped in the completion aware type.
      • trace

        public <T> CompletionStage<T> trace​(Class<T> responseType)
        Description copied from interface: RxInvoker
        Invoke HTTP TRACE method for the current request.
        Specified by:
        trace in interface CompletionStageRxInvoker
        Specified by:
        trace in interface RxInvoker<CompletionStage>
        Type Parameters:
        T - response entity type.
        Parameters:
        responseType - Java type the response entity will be converted to.
        Returns:
        invocation response wrapped in the completion aware type.
      • trace

        public <T> CompletionStage<T> trace​(GenericType<T> responseType)
        Description copied from interface: RxInvoker
        Invoke HTTP TRACE method for the current request.
        Specified by:
        trace in interface CompletionStageRxInvoker
        Specified by:
        trace in interface RxInvoker<CompletionStage>
        Type Parameters:
        T - generic response entity type.
        Parameters:
        responseType - representation of a generic Java type the response entity will be converted to.
        Returns:
        invocation response wrapped in the completion aware type.
      • method

        public <T> CompletionStage<T> method​(String name,
                                             Class<T> responseType)
        Description copied from interface: RxInvoker
        Invoke an arbitrary method for the current request.
        Specified by:
        method in interface CompletionStageRxInvoker
        Specified by:
        method in interface RxInvoker<CompletionStage>
        Type Parameters:
        T - response entity type.
        Parameters:
        name - method name.
        responseType - Java type the response entity will be converted to.
        Returns:
        invocation response wrapped in the completion aware type..
      • method

        public <T> CompletionStage<T> method​(String name,
                                             GenericType<T> responseType)
        Description copied from interface: RxInvoker
        Invoke an arbitrary method for the current request.
        Specified by:
        method in interface CompletionStageRxInvoker
        Specified by:
        method in interface RxInvoker<CompletionStage>
        Type Parameters:
        T - generic response entity type.
        Parameters:
        name - method name.
        responseType - representation of a generic Java type the response entity will be converted to.
        Returns:
        invocation response wrapped in the completion aware type..
      • method

        public CompletionStage<Response> method​(String name,
                                                Entity<?> entity)
        Description copied from interface: RxInvoker
        Invoke an arbitrary method for the current request.
        Specified by:
        method in interface CompletionStageRxInvoker
        Specified by:
        method in interface RxInvoker<CompletionStage>
        Parameters:
        name - method name.
        entity - request entity, including it's full Variant information. Any variant-related HTTP headers previously set (namely Content-Type, Content-Language and Content-Encoding) will be overwritten using the entity variant information.
        Returns:
        invocation response wrapped in the completion aware type..
      • method

        public <T> CompletionStage<T> method​(String name,
                                             Entity<?> entity,
                                             Class<T> responseType)
        Description copied from interface: RxInvoker
        Invoke an arbitrary method for the current request.
        Specified by:
        method in interface CompletionStageRxInvoker
        Specified by:
        method in interface RxInvoker<CompletionStage>
        Type Parameters:
        T - response entity type.
        Parameters:
        name - method name.
        entity - request entity, including it's full Variant information. Any variant-related HTTP headers previously set (namely Content-Type, Content-Language and Content-Encoding) will be overwritten using the entity variant information.
        responseType - Java type the response entity will be converted to.
        Returns:
        invocation response wrapped in the completion aware type..
      • method

        public <T> CompletionStage<T> method​(String name,
                                             Entity<?> entity,
                                             GenericType<T> responseType)
        Description copied from interface: RxInvoker
        Invoke an arbitrary method for the current request.
        Specified by:
        method in interface CompletionStageRxInvoker
        Specified by:
        method in interface RxInvoker<CompletionStage>
        Type Parameters:
        T - generic response entity type.
        Parameters:
        name - method name.
        entity - request entity, including it's full Variant information. Any variant-related HTTP headers previously set (namely Content-Type, Content-Language and Content-Encoding) will be overwritten using the entity variant information.
        responseType - representation of a generic Java type the response entity will be converted to.
        Returns:
        invocation response wrapped in the completion aware type..