Class AbstractRemoteService<P>

    • Method Detail

      • getExecutor

        protected Executor getExecutor()
      • newRestWebResource

        protected com.sun.jersey.api.client.WebResource newRestWebResource()
      • newExperimentalRestWebResource

        protected com.sun.jersey.api.client.WebResource newExperimentalRestWebResource()
      • getCompletionStage

        protected <T> CompletionStage<T> getCompletionStage​(com.sun.jersey.api.client.WebResource resource,
                                                            Class<? extends T> entityClass)
        Since:
        7.0.1
      • getCompletionStageOptional

        protected <T> CompletionStage<Optional<T>> getCompletionStageOptional​(com.sun.jersey.api.client.WebResource resource,
                                                                              Class<? extends T> entityClass)
        Since:
        7.0.1
      • getCompletionStagePageResponseList

        protected <E> CompletionStage<PageResponse<E>> getCompletionStagePageResponseList​(com.sun.jersey.api.client.WebResource resource,
                                                                                          Class<E> contentClass)
        Since:
        7.0.1
      • getCompletionStageSearchPageResponseList

        protected <E> CompletionStage<SearchPageResponse<E>> getCompletionStageSearchPageResponseList​(com.sun.jersey.api.client.WebResource resource,
                                                                                                      Class<E> contentClass)
        Since:
        7.0.1
      • getCompletionStageMapOfPageResponses

        protected <K,​V> CompletionStage<Map<K,​PageResponse<V>>> getCompletionStageMapOfPageResponses​(com.sun.jersey.api.client.WebResource resource,
                                                                                                                 Class<K> keyClass,
                                                                                                                 Class<V> listContentClass)
        Since:
        7.0.1
      • getCompletionStageMap

        protected <K,​V> CompletionStage<Map<K,​V>> getCompletionStageMap​(com.sun.jersey.api.client.WebResource resource,
                                                                                    Class<K> keyClass,
                                                                                    Class<V> valueClass)
        Since:
        7.0.1
      • getCompletionStageGenericCollection

        protected <E> CompletionStage<Iterable<E>> getCompletionStageGenericCollection​(com.sun.jersey.api.client.WebResource resource,
                                                                                       Class<? extends Iterable> collectionType,
                                                                                       Class<E> contentType)
        Since:
        7.0.1
      • postCompletionStage

        protected <E> CompletionStage<E> postCompletionStage​(com.sun.jersey.api.client.WebResource resource,
                                                             Class<? extends E> entityClass,
                                                             @Nullable Object postEntity)
        Since:
        7.0.1
      • postCompletionStage

        protected <E> CompletionStage<E> postCompletionStage​(com.sun.jersey.api.client.WebResource resource,
                                                             Class<? extends E> entityClass,
                                                             @Nullable Object postEntity,
                                                             javax.ws.rs.core.MediaType mediaType)
        Since:
        7.0.1
      • postCompletionStage

        protected <E> CompletionStage<E> postCompletionStage​(com.sun.jersey.api.client.WebResource resource,
                                                             Class<E> collectionClass,
                                                             Class contentType,
                                                             Object postEntity)
        Since:
        7.0.1
      • postCompletionStageToPageResponse

        protected <T> CompletionStage<PageResponse<T>> postCompletionStageToPageResponse​(com.sun.jersey.api.client.WebResource resource,
                                                                                         Class<T> entityClass,
                                                                                         Object postEntity,
                                                                                         javax.ws.rs.core.MediaType mediaType)
        Since:
        7.0.1
      • putCompletionStage

        protected <T> CompletionStage<T> putCompletionStage​(com.sun.jersey.api.client.WebResource resource,
                                                            Class<? extends T> entityClass,
                                                            @Nullable Object putEntity)
        Since:
        7.0.1
      • deleteCompletionStage

        protected CompletionStage<Void> deleteCompletionStage​(com.sun.jersey.api.client.WebResource resource)
        Since:
        7.0.1
      • deleteCompletionStage

        protected <T> CompletionStage<T> deleteCompletionStage​(com.sun.jersey.api.client.WebResource resource,
                                                               Class<? extends T> responseClass)
        Since:
        7.0.1
      • addExpansions

        protected com.sun.jersey.api.client.WebResource addExpansions​(com.sun.jersey.api.client.WebResource resource,
                                                                      @Nullable Expansion[] expansions)
        add the expansions to the WebResource as a query param, this specifies which properties on the results to expand
        Parameters:
        resource - - the WebResource to add the query param to, a copy of this resource will be returned
        expansions - - the expansions to add
        Returns:
        a new WebResource with the expansions added to it
      • addPageRequestParams

        protected com.sun.jersey.api.client.WebResource addPageRequestParams​(com.sun.jersey.api.client.WebResource resource,
                                                                             @Nullable PageRequest request)
        Adds start and limit query params to honour the pageRequest values
        Parameters:
        resource - - the resource to add the query params to
        request - - the pageRequest supplying the values for the query params, may be null
      • addPageRequest

        protected com.sun.jersey.api.client.WebResource addPageRequest​(com.sun.jersey.api.client.WebResource resource,
                                                                       PageRequest pageRequest)