T - - the interface of the local service that this is a remote service of, used by RemoteServiceProxyCreatorpublic abstract class AbstractRemoteService<T>
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractRemoteService(AuthenticatedWebResourceProvider provider,
com.google.common.util.concurrent.ListeningExecutorService 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 |
addPageRequestParams(com.sun.jersey.api.client.WebResource resource,
PageRequest request)
Adds start and limit query params to honour the pageRequest values
|
protected java.util.concurrent.Future<java.lang.Void> |
deleteFuture(com.sun.jersey.api.client.WebResource resource) |
protected <E> com.atlassian.util.concurrent.Promise<? extends java.lang.Iterable<E>> |
getFutureGenericCollection(com.sun.jersey.api.client.WebResource resource,
java.lang.Class<? extends java.lang.Iterable> collectionType,
java.lang.Class<E> contentType) |
protected <T> java.util.concurrent.Future<com.atlassian.fugue.Option<T>> |
getFutureOption(com.sun.jersey.api.client.WebResource resource,
java.lang.Class<? extends T> entityClass) |
protected <E> com.atlassian.util.concurrent.Promise<PageResponse<E>> |
getFuturePageResponseList(com.sun.jersey.api.client.WebResource resource,
java.lang.Class<E> contentClass) |
protected com.sun.jersey.api.client.WebResource |
newRestWebResource() |
protected <E> java.util.concurrent.Future<E> |
postFuture(com.sun.jersey.api.client.WebResource resource,
java.lang.Class<? extends E> entityClass,
java.lang.Object postEntity) |
protected <E> com.atlassian.util.concurrent.Promise<E> |
postFuture(com.sun.jersey.api.client.WebResource resource,
java.lang.Class<E> collectionClass,
java.lang.Class contentType,
java.lang.Object postEntity) |
protected <T> java.util.concurrent.Future<T> |
putFuture(com.sun.jersey.api.client.WebResource resource,
java.lang.Class<? extends T> entityClass,
java.lang.Object putEntity) |
protected AbstractRemoteService(AuthenticatedWebResourceProvider provider, com.google.common.util.concurrent.ListeningExecutorService executor)
protected com.sun.jersey.api.client.WebResource newRestWebResource()
protected <T> java.util.concurrent.Future<com.atlassian.fugue.Option<T>> getFutureOption(com.sun.jersey.api.client.WebResource resource,
java.lang.Class<? extends T> entityClass)
protected <E> com.atlassian.util.concurrent.Promise<PageResponse<E>> getFuturePageResponseList(com.sun.jersey.api.client.WebResource resource, java.lang.Class<E> contentClass)
protected <E> com.atlassian.util.concurrent.Promise<? extends java.lang.Iterable<E>> getFutureGenericCollection(com.sun.jersey.api.client.WebResource resource,
java.lang.Class<? extends java.lang.Iterable> collectionType,
java.lang.Class<E> contentType)
protected <E> java.util.concurrent.Future<E> postFuture(com.sun.jersey.api.client.WebResource resource,
java.lang.Class<? extends E> entityClass,
java.lang.Object postEntity)
protected <E> com.atlassian.util.concurrent.Promise<E> postFuture(com.sun.jersey.api.client.WebResource resource,
java.lang.Class<E> collectionClass,
java.lang.Class contentType,
java.lang.Object postEntity)
protected <T> java.util.concurrent.Future<T> putFuture(com.sun.jersey.api.client.WebResource resource,
java.lang.Class<? extends T> entityClass,
java.lang.Object putEntity)
protected java.util.concurrent.Future<java.lang.Void> deleteFuture(com.sun.jersey.api.client.WebResource resource)
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,
PageRequest request)
resource - - the resource to add the query params torequest - - the pageRequest supplying the values for the query paramsCopyright © 2003-2014 Atlassian. All Rights Reserved.