P
- - the interface of the local service that this is a remote service of, used by RemoteServiceProxyCreatorpublic abstract class AbstractRemoteService<P> extends Object
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,
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,
PageRequest request)
Adds start and limit query params to honour the pageRequest values
|
protected com.atlassian.util.concurrent.Promise<Void> |
deleteFuture(com.sun.jersey.api.client.WebResource resource) |
protected <T> com.atlassian.util.concurrent.Promise<T> |
deleteFuture(com.sun.jersey.api.client.WebResource resource,
Class<? extends T> responseClass) |
protected <T> com.atlassian.util.concurrent.Promise<T> |
getFuture(com.sun.jersey.api.client.WebResource resource,
Class<? extends T> entityClass) |
protected <E> com.atlassian.util.concurrent.Promise<? extends Iterable<E>> |
getFutureGenericCollection(com.sun.jersey.api.client.WebResource resource,
Class<? extends Iterable> collectionType,
Class<E> contentType) |
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) |
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) |
protected <T> com.atlassian.util.concurrent.Promise<com.atlassian.fugue.Option<T>> |
getFutureOption(com.sun.jersey.api.client.WebResource resource,
Class<? extends T> entityClass) |
protected <E> com.atlassian.util.concurrent.Promise<PageResponse<E>> |
getFuturePageResponseList(com.sun.jersey.api.client.WebResource resource,
Class<E> contentClass) |
protected com.sun.jersey.api.client.WebResource |
newExperimentalRestWebResource() |
protected com.sun.jersey.api.client.WebResource |
newRestWebResource() |
protected <E> com.atlassian.util.concurrent.Promise<E> |
postFuture(com.sun.jersey.api.client.WebResource resource,
Class<? extends E> entityClass,
Object postEntity) |
protected <E> com.atlassian.util.concurrent.Promise<E> |
postFuture(com.sun.jersey.api.client.WebResource resource,
Class<? extends E> 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<E> collectionClass,
Class contentType,
Object postEntity) |
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) |
protected <T> com.atlassian.util.concurrent.Promise<T> |
putFuture(com.sun.jersey.api.client.WebResource resource,
Class<? extends T> entityClass,
Object putEntity) |
protected AbstractRemoteService(AuthenticatedWebResourceProvider provider, com.google.common.util.concurrent.ListeningExecutorService executor)
protected AbstractRemoteService(AbstractRemoteService other)
protected AbstractRemoteService(AuthenticatedWebResourceProvider provider, PromisingExecutorService executor)
protected com.sun.jersey.api.client.WebResource newRestWebResource()
protected com.sun.jersey.api.client.WebResource newExperimentalRestWebResource()
protected <T> com.atlassian.util.concurrent.Promise<T> getFuture(com.sun.jersey.api.client.WebResource resource, Class<? extends T> entityClass)
protected <T> com.atlassian.util.concurrent.Promise<com.atlassian.fugue.Option<T>> getFutureOption(com.sun.jersey.api.client.WebResource resource, Class<? extends T> entityClass)
protected <E> com.atlassian.util.concurrent.Promise<PageResponse<E>> getFuturePageResponseList(com.sun.jersey.api.client.WebResource resource, Class<E> contentClass)
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)
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)
protected <E> com.atlassian.util.concurrent.Promise<? extends Iterable<E>> getFutureGenericCollection(com.sun.jersey.api.client.WebResource resource, Class<? extends Iterable> collectionType, Class<E> contentType)
protected <E> com.atlassian.util.concurrent.Promise<E> postFuture(com.sun.jersey.api.client.WebResource resource, Class<? extends E> entityClass, Object postEntity)
protected <E> com.atlassian.util.concurrent.Promise<E> postFuture(com.sun.jersey.api.client.WebResource resource, Class<? extends E> 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<E> collectionClass, Class contentType, Object postEntity)
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)
protected <T> com.atlassian.util.concurrent.Promise<T> putFuture(com.sun.jersey.api.client.WebResource resource, Class<? extends T> entityClass, Object putEntity)
protected com.atlassian.util.concurrent.Promise<Void> deleteFuture(com.sun.jersey.api.client.WebResource resource)
protected <T> com.atlassian.util.concurrent.Promise<T> deleteFuture(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, 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–2016 Atlassian. All rights reserved.