com.atlassian.confluence.rest.client
Class AbstractRemoteService<T>

java.lang.Object
  extended by com.atlassian.confluence.rest.client.AbstractRemoteService<T>
Type Parameters:
T - - the interface of the local service that this is a remote service of, used by RemoteServiceProxyCreator
Direct Known Subclasses:
RemoteContentBodyConversionServiceImpl, RemoteContentServiceImpl, RemoteSpaceServiceImpl

public abstract class AbstractRemoteService<T>
extends java.lang.Object

Common parent class of all Confluence API Remote Service implementations, handling authentication and REST infrastructure.


Constructor Summary
protected AbstractRemoteService(AuthenticatedWebResourceProvider provider, java.util.concurrent.ExecutorService executor)
           
 
Method Summary
protected  com.sun.jersey.api.client.WebResource addExpansions(com.sun.jersey.api.client.WebResource resource, Expansion[] expansions)
           
protected  java.util.concurrent.Future<java.lang.Void> deleteFuture(com.sun.jersey.api.client.WebResource resource)
           
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
<T> java.util.concurrent.Future<PageResponse<T>>
getFuturePageResponseList(com.sun.jersey.api.client.WebResource resource, java.lang.Class<T> contentClass)
           
protected  com.sun.jersey.api.client.WebResource newRestWebResource()
           
protected
<T> java.util.concurrent.Future<T>
postFuture(com.sun.jersey.api.client.WebResource resource, java.lang.Class<? extends T> entityClass, 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractRemoteService

protected AbstractRemoteService(AuthenticatedWebResourceProvider provider,
                                java.util.concurrent.ExecutorService executor)
Method Detail

newRestWebResource

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

getFutureOption

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)

getFuturePageResponseList

protected <T> java.util.concurrent.Future<PageResponse<T>> getFuturePageResponseList(com.sun.jersey.api.client.WebResource resource,
                                                                                     java.lang.Class<T> contentClass)

postFuture

protected <T> java.util.concurrent.Future<T> postFuture(com.sun.jersey.api.client.WebResource resource,
                                                        java.lang.Class<? extends T> entityClass,
                                                        java.lang.Object postEntity)

putFuture

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)

deleteFuture

protected java.util.concurrent.Future<java.lang.Void> deleteFuture(com.sun.jersey.api.client.WebResource resource)

addExpansions

protected com.sun.jersey.api.client.WebResource addExpansions(com.sun.jersey.api.client.WebResource resource,
                                                              Expansion[] expansions)


Copyright © 2003-2013 Atlassian. All Rights Reserved.