Class AbstractRemoteService<P>
java.lang.Object
com.atlassian.confluence.rest.client.AbstractRemoteService<P>
- Type Parameters:
P- - the interface of the local service that this is a remote service of, used by RemoteServiceProxyCreator
- Direct Known Subclasses:
AbstractRemoteChildContentService,AbstractRemoteChildContentService.AbstractRemoteChildContentFinder,AbstractRemoteContentLabelService,AbstractRemoteContentService,AbstractRemoteContentService.AbstractRemoteContentFinder,AbstractRemoteWebView,AbstractRemoteWebViewService,RemoteAccessModeServiceImpl,RemoteAttachmentServiceImpl,RemoteAttachmentServiceImpl.RemoteAttachmentFinderImpl,RemoteContentBlueprintServiceImpl,RemoteContentBodyConversionServiceImpl,RemoteContentDraftServiceImpl,RemoteContentMacroServiceImpl,RemoteContentMacroServiceImpl.RemoteMacroFinderImpl,RemoteContentPropertyServiceImpl,RemoteContentPropertyServiceImpl.RemoteContentPropertyFinderImpl,RemoteContentRestrictionServiceImpl,RemoteContentTemplateServiceImpl,RemoteContentTemplateServiceImpl.RemoteTemplateFinderImpl,RemoteContentTrashServiceImpl,RemoteContentVersionServiceImpl,RemoteContentVersionServiceImpl.RemoteVersionFinderImpl,RemoteCQLSearchServiceImpl,RemoteGroupServiceImpl,RemoteGroupServiceImpl.RemoteGroupFinderImpl,RemoteLongTaskServiceImpl,RemotePersonServiceImpl,RemotePersonServiceImpl.RemotePersonFinderImpl,RemoteRelationServiceImpl,RemoteSpacePropertyServiceImpl,RemoteSpacePropertyServiceImpl.RemoteSpacePropertyFinderImpl,RemoteSpaceServiceImpl,RemoteSpaceServiceImpl.RemoteSpaceContentFinderImpl,RemoteSpaceServiceImpl.RemoteSpaceFinderImpl,RemoteWatchServiceImpl
Common parent class of all Confluence API Remote Service implementations, handling authentication and REST
infrastructure.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedAbstractRemoteService(AuthenticatedWebResourceProvider provider, ExecutorService executor) -
Method Summary
Modifier and TypeMethodDescriptionprotected com.sun.jersey.api.client.WebResourceaddExpansions(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 expandprotected com.sun.jersey.api.client.WebResourceaddPageRequest(com.sun.jersey.api.client.WebResource resource, PageRequest pageRequest) protected com.sun.jersey.api.client.WebResourceaddPageRequestParams(com.sun.jersey.api.client.WebResource resource, @Nullable PageRequest request) Adds start and limit query params to honour the pageRequest valuesprotected CompletionStage<Void> deleteCompletionStage(com.sun.jersey.api.client.WebResource resource) protected <T> CompletionStage<T> deleteCompletionStage(com.sun.jersey.api.client.WebResource resource, Class<? extends T> responseClass) protected <T> CompletionStage<T> getCompletionStage(com.sun.jersey.api.client.WebResource resource, Class<? extends T> entityClass) protected <E> CompletionStage<Iterable<E>> getCompletionStageGenericCollection(com.sun.jersey.api.client.WebResource resource, Class<? extends Iterable> collectionType, Class<E> contentType) protected <K,V> CompletionStage <Map<K, V>> getCompletionStageMap(com.sun.jersey.api.client.WebResource resource, Class<K> keyClass, Class<V> valueClass) protected <K,V> CompletionStage <Map<K, PageResponse<V>>> getCompletionStageMapOfPageResponses(com.sun.jersey.api.client.WebResource resource, Class<K> keyClass, Class<V> listContentClass) protected <T> CompletionStage<Optional<T>> getCompletionStageOptional(com.sun.jersey.api.client.WebResource resource, Class<? extends T> entityClass) protected <E> CompletionStage<PageResponse<E>> getCompletionStagePageResponseList(com.sun.jersey.api.client.WebResource resource, Class<E> contentClass) protected <E> CompletionStage<SearchPageResponse<E>> getCompletionStageSearchPageResponseList(com.sun.jersey.api.client.WebResource resource, Class<E> contentClass) protected ExecutorServiceprotected com.sun.jersey.api.client.WebResourceprotected com.sun.jersey.api.client.WebResourceprotected <E> CompletionStage<E> postCompletionStage(com.sun.jersey.api.client.WebResource resource, Class<? extends E> entityClass, @Nullable Object postEntity) 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) protected <E> CompletionStage<E> postCompletionStage(com.sun.jersey.api.client.WebResource resource, Class<E> collectionClass, Class contentType, Object postEntity) protected <T> CompletionStage<PageResponse<T>> postCompletionStageToPageResponse(com.sun.jersey.api.client.WebResource resource, Class<T> entityClass, Object postEntity, javax.ws.rs.core.MediaType mediaType) protected CompletionStage<Void> postVoidCompletionStage(com.sun.jersey.api.client.WebResource resource, @Nullable Object postEntity) protected <T> CompletionStage<T> putCompletionStage(com.sun.jersey.api.client.WebResource resource, Class<? extends T> entityClass, @Nullable Object putEntity)
-
Field Details
-
provider
-
-
Constructor Details
-
AbstractRemoteService
-
AbstractRemoteService
protected AbstractRemoteService(AuthenticatedWebResourceProvider provider, ExecutorService executor)
-
-
Method Details
-
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
-
postVoidCompletionStage
protected CompletionStage<Void> postVoidCompletionStage(com.sun.jersey.api.client.WebResource resource, @Nullable Object postEntity) - Since:
- 8.4.0
-
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 returnedexpansions- - 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 torequest- - 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)
-