P
- - the interface of the local service that this is a remote service of, used by RemoteServiceProxyCreatorpublic abstract class AbstractRemoteService<P> extends Object
Modifier and Type | Field and Description |
---|---|
protected AuthenticatedWebResourceProvider |
provider |
Modifier | Constructor and Description |
---|---|
protected |
AbstractRemoteService(AbstractRemoteService other) |
protected |
AbstractRemoteService(AuthenticatedWebResourceProvider provider,
com.google.common.util.concurrent.ListeningExecutorService executor) |
protected |
AbstractRemoteService(AuthenticatedWebResourceProvider provider,
PromisingExecutorService executor) |
Modifier and Type | Method and Description |
---|---|
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
|
protected com.sun.jersey.api.client.WebResource |
addPageRequest(com.sun.jersey.api.client.WebResource resource,
PageRequest pageRequest) |
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
|
protected 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 com.atlassian.util.concurrent.Promise<Void> |
deleteFuture(com.sun.jersey.api.client.WebResource resource)
Deprecated.
since 7.0.1. Use
deleteCompletionStage(WebResource) instead. |
protected <T> com.atlassian.util.concurrent.Promise<T> |
deleteFuture(com.sun.jersey.api.client.WebResource resource,
Class<? extends T> responseClass)
Deprecated.
since 7.0.1. Use
deleteCompletionStage(WebResource, Class) instead. |
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 Executor |
getExecutor() |
protected <T> com.atlassian.util.concurrent.Promise<T> |
getFuture(com.sun.jersey.api.client.WebResource resource,
Class<? extends T> entityClass)
Deprecated.
since 7.0.1. Use
getCompletionStage(WebResource, Class) instead. |
protected <E> com.atlassian.util.concurrent.Promise<Iterable<E>> |
getFutureGenericCollection(com.sun.jersey.api.client.WebResource resource,
Class<? extends Iterable> collectionType,
Class<E> contentType)
Deprecated.
since 7.0.1. Use
getCompletionStageGenericCollection(WebResource, Class, Class) instead. |
protected <K,V> com.atlassian.util.concurrent.Promise<Map<K,V>> |
getFutureMap(com.sun.jersey.api.client.WebResource resource,
Class<K> keyClass,
Class<V> valueClass)
Deprecated.
since 7.0.1. Use
getCompletionStageMap(WebResource, Class, Class) instead. |
protected <K,V> com.atlassian.util.concurrent.Promise<Map<K,PageResponse<V>>> |
getFutureMapOfPageResponses(com.sun.jersey.api.client.WebResource resource,
Class<K> keyClass,
Class<V> listContentClass)
Deprecated.
since 7.0.1. Use
getCompletionStageMapOfPageResponses(WebResource, Class, Class) instead. |
protected <T> com.atlassian.util.concurrent.Promise<com.atlassian.fugue.Option<T>> |
getFutureOption(com.sun.jersey.api.client.WebResource resource,
Class<? extends T> entityClass)
Deprecated.
since 7.0.1. Use
getCompletionStageOptional(WebResource, Class) instead. |
protected <E> com.atlassian.util.concurrent.Promise<PageResponse<E>> |
getFuturePageResponseList(com.sun.jersey.api.client.WebResource resource,
Class<E> contentClass)
Deprecated.
since 7.0.1. Use
getCompletionStagePageResponseList(WebResource, Class) instead. |
protected com.sun.jersey.api.client.WebResource |
newExperimentalRestWebResource() |
protected com.sun.jersey.api.client.WebResource |
newRestWebResource() |
protected <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 <E> com.atlassian.util.concurrent.Promise<E> |
postFuture(com.sun.jersey.api.client.WebResource resource,
Class<? extends E> entityClass,
@Nullable Object postEntity)
Deprecated.
since 7.0.1. Use
postCompletionStage(WebResource, Class, Object) instead. |
protected <E> com.atlassian.util.concurrent.Promise<E> |
postFuture(com.sun.jersey.api.client.WebResource resource,
Class<? extends E> entityClass,
@Nullable Object postEntity,
javax.ws.rs.core.MediaType mediaType)
Deprecated.
since 7.0.1. Use
postCompletionStage(WebResource, Class, Object, MediaType) instead. |
protected <E> com.atlassian.util.concurrent.Promise<E> |
postFuture(com.sun.jersey.api.client.WebResource resource,
Class<E> collectionClass,
Class contentType,
Object postEntity)
Deprecated.
since 7.0.1. Use
postCompletionStage(WebResource, Class, Class, Object) instead. |
protected <T> com.atlassian.util.concurrent.Promise<PageResponse<T>> |
postFutureToPageResponse(com.sun.jersey.api.client.WebResource resource,
Class<T> entityClass,
Object postEntity,
javax.ws.rs.core.MediaType mediaType)
Deprecated.
since 7.0.1. Use
postCompletionStageToPageResponse(WebResource, Class, Object, MediaType) instead. |
protected <T> CompletionStage<T> |
putCompletionStage(com.sun.jersey.api.client.WebResource resource,
Class<? extends T> entityClass,
@Nullable Object putEntity) |
protected <T> com.atlassian.util.concurrent.Promise<T> |
putFuture(com.sun.jersey.api.client.WebResource resource,
Class<? extends T> entityClass,
@Nullable Object putEntity)
Deprecated.
since 7.0.1. Use
putCompletionStage(WebResource, Class, Object) instead. |
protected final AuthenticatedWebResourceProvider provider
protected AbstractRemoteService(AuthenticatedWebResourceProvider provider, com.google.common.util.concurrent.ListeningExecutorService executor)
protected AbstractRemoteService(AbstractRemoteService other)
protected AbstractRemoteService(AuthenticatedWebResourceProvider provider, PromisingExecutorService executor)
protected Executor getExecutor()
protected com.sun.jersey.api.client.WebResource newRestWebResource()
protected com.sun.jersey.api.client.WebResource newExperimentalRestWebResource()
@Deprecated protected <T> com.atlassian.util.concurrent.Promise<T> getFuture(com.sun.jersey.api.client.WebResource resource, Class<? extends T> entityClass)
getCompletionStage(WebResource, Class)
instead.protected <T> CompletionStage<T> getCompletionStage(com.sun.jersey.api.client.WebResource resource, Class<? extends T> entityClass)
@Deprecated protected <T> com.atlassian.util.concurrent.Promise<com.atlassian.fugue.Option<T>> getFutureOption(com.sun.jersey.api.client.WebResource resource, Class<? extends T> entityClass)
getCompletionStageOptional(WebResource, Class)
instead.protected <T> CompletionStage<Optional<T>> getCompletionStageOptional(com.sun.jersey.api.client.WebResource resource, Class<? extends T> entityClass)
@Deprecated protected <E> com.atlassian.util.concurrent.Promise<PageResponse<E>> getFuturePageResponseList(com.sun.jersey.api.client.WebResource resource, Class<E> contentClass)
getCompletionStagePageResponseList(WebResource, Class)
instead.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)
@Deprecated protected <K,V> com.atlassian.util.concurrent.Promise<Map<K,PageResponse<V>>> getFutureMapOfPageResponses(com.sun.jersey.api.client.WebResource resource, Class<K> keyClass, Class<V> listContentClass)
getCompletionStageMapOfPageResponses(WebResource, Class, Class)
instead.protected <K,V> CompletionStage<Map<K,PageResponse<V>>> getCompletionStageMapOfPageResponses(com.sun.jersey.api.client.WebResource resource, Class<K> keyClass, Class<V> listContentClass)
@Deprecated protected <K,V> com.atlassian.util.concurrent.Promise<Map<K,V>> getFutureMap(com.sun.jersey.api.client.WebResource resource, Class<K> keyClass, Class<V> valueClass)
getCompletionStageMap(WebResource, Class, Class)
instead.protected <K,V> CompletionStage<Map<K,V>> getCompletionStageMap(com.sun.jersey.api.client.WebResource resource, Class<K> keyClass, Class<V> valueClass)
@Deprecated protected <E> com.atlassian.util.concurrent.Promise<Iterable<E>> getFutureGenericCollection(com.sun.jersey.api.client.WebResource resource, Class<? extends Iterable> collectionType, Class<E> contentType)
getCompletionStageGenericCollection(WebResource, Class, Class)
instead.protected <E> CompletionStage<Iterable<E>> getCompletionStageGenericCollection(com.sun.jersey.api.client.WebResource resource, Class<? extends Iterable> collectionType, Class<E> contentType)
@Deprecated protected <E> com.atlassian.util.concurrent.Promise<E> postFuture(com.sun.jersey.api.client.WebResource resource, Class<? extends E> entityClass, @Nullable Object postEntity)
postCompletionStage(WebResource, Class, Object)
instead.protected <E> CompletionStage<E> postCompletionStage(com.sun.jersey.api.client.WebResource resource, Class<? extends E> entityClass, @Nullable Object postEntity)
@Deprecated protected <E> com.atlassian.util.concurrent.Promise<E> postFuture(com.sun.jersey.api.client.WebResource resource, Class<? extends E> entityClass, @Nullable Object postEntity, javax.ws.rs.core.MediaType mediaType)
postCompletionStage(WebResource, Class, Object, MediaType)
instead.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)
@Deprecated protected <E> com.atlassian.util.concurrent.Promise<E> postFuture(com.sun.jersey.api.client.WebResource resource, Class<E> collectionClass, Class contentType, Object postEntity)
postCompletionStage(WebResource, Class, Class, Object)
instead.protected <E> CompletionStage<E> postCompletionStage(com.sun.jersey.api.client.WebResource resource, Class<E> collectionClass, Class contentType, Object postEntity)
@Deprecated protected <T> com.atlassian.util.concurrent.Promise<PageResponse<T>> postFutureToPageResponse(com.sun.jersey.api.client.WebResource resource, Class<T> entityClass, Object postEntity, javax.ws.rs.core.MediaType mediaType)
postCompletionStageToPageResponse(WebResource, Class, Object, MediaType)
instead.protected <T> CompletionStage<PageResponse<T>> postCompletionStageToPageResponse(com.sun.jersey.api.client.WebResource resource, Class<T> entityClass, Object postEntity, javax.ws.rs.core.MediaType mediaType)
@Deprecated protected <T> com.atlassian.util.concurrent.Promise<T> putFuture(com.sun.jersey.api.client.WebResource resource, Class<? extends T> entityClass, @Nullable Object putEntity)
putCompletionStage(WebResource, Class, Object)
instead.protected <T> CompletionStage<T> putCompletionStage(com.sun.jersey.api.client.WebResource resource, Class<? extends T> entityClass, @Nullable Object putEntity)
@Deprecated protected com.atlassian.util.concurrent.Promise<Void> deleteFuture(com.sun.jersey.api.client.WebResource resource)
deleteCompletionStage(WebResource)
instead.protected CompletionStage<Void> deleteCompletionStage(com.sun.jersey.api.client.WebResource resource)
@Deprecated protected <T> com.atlassian.util.concurrent.Promise<T> deleteFuture(com.sun.jersey.api.client.WebResource resource, Class<? extends T> responseClass)
deleteCompletionStage(WebResource, Class)
instead.protected <T> CompletionStage<T> deleteCompletionStage(com.sun.jersey.api.client.WebResource resource, Class<? extends T> responseClass)
protected com.sun.jersey.api.client.WebResource addExpansions(com.sun.jersey.api.client.WebResource resource, @Nullable Expansion[] expansions)
resource
- - the WebResource to add the query param to, a copy of this resource will be returnedexpansions
- - the expansions to addprotected com.sun.jersey.api.client.WebResource addPageRequestParams(com.sun.jersey.api.client.WebResource resource, @Nullable PageRequest request)
resource
- - the resource to add the query params torequest
- - the pageRequest supplying the values for the query params, may be nullprotected com.sun.jersey.api.client.WebResource addPageRequest(com.sun.jersey.api.client.WebResource resource, PageRequest pageRequest)
Copyright © 2003–2020 Atlassian. All rights reserved.