public abstract class AbstractRestApiServiceClient extends Object implements RestApiServiceClient, FlexibleResourceClient, FlexibleServiceClient
| Constructor and Description |
|---|
AbstractRestApiServiceClient() |
protected void init()
public RestServiceClient getRestServiceClient()
protected FlexibleResourceClient getFlexibleRestServiceClient()
public ApiServiceClient getApiServiceClient()
protected FlexibleResourceClient getFlexibleApiServiceClient()
public boolean isMethodSupported(String methodName)
isMethodSupported in interface MethodFilterpublic String getResourceBaseUrl()
ResourceClientgetResourceBaseUrl in interface ResourceClientpublic ClientCredential getClientCredential()
ServiceClientgetClientCredential in interface ServiceClientpublic void setClientCredential(ClientCredential clientCredential)
setClientCredential in interface FlexibleServiceClientpublic AuthRefreshPolicy getRestServiceAuthRefreshPolicy()
public void setRestServiceAuthRefreshPolicy(AuthRefreshPolicy authRefreshPolicy)
public RequestRetryPolicy getRestServiceRequestRetryPolicy()
public void setRestServiceRequestRetryPolicy(RequestRetryPolicy requestRetryPolicy)
public ClientCachePolicy getRestServiceClientCachePolicy()
public void setRestServiceClientCachePolicy(ClientCachePolicy clientCachePolicy)
public CacheControlPolicy getRestServiceCacheControlPolicy()
public void setRestServiceCacheControlPolicy(CacheControlPolicy cacheControlPolicy)
public AutoRedirectPolicy getRestServiceAutoRedirectPolicy()
public void setRestServiceAutoRedirectPolicy(AutoRedirectPolicy autoRedirectPolicy)
public Set<String> getRequiredScopes()
getRequiredScopes in interface DataAccessClientpublic boolean requiresScope(String scope)
requiresScope in interface DataAccessClientpublic boolean isAccessAllowed(DataAccessCredential dataAccessCredential)
isAccessAllowed in interface DataAccessClientpublic AuthRefreshPolicy getAuthRefreshPolicy()
getAuthRefreshPolicy in interface WebClientpublic void setAuthRefreshPolicy(AuthRefreshPolicy authRefreshPolicy)
setAuthRefreshPolicy in interface FlexibleWebClientpublic RequestRetryPolicy getRequestRetryPolicy()
getRequestRetryPolicy in interface WebClientpublic void setRequestRetryPolicy(RequestRetryPolicy requestRetryPolicy)
setRequestRetryPolicy in interface FlexibleWebClientpublic ClientCachePolicy getClientCachePolicy()
getClientCachePolicy in interface WebClientpublic void setClientCachePolicy(ClientCachePolicy clientCachePolicy)
setClientCachePolicy in interface FlexibleWebClientpublic CacheControlPolicy getCacheControlPolicy()
getCacheControlPolicy in interface WebClientpublic void setCacheControlPolicy(CacheControlPolicy cacheControlPolicy)
setCacheControlPolicy in interface FlexibleWebClientpublic AutoRedirectPolicy getAutoRedirectPolicy()
getAutoRedirectPolicy in interface WebClientpublic void setAutoRedirectPolicy(AutoRedirectPolicy autoRedirectPolicy)
setAutoRedirectPolicy in interface FlexibleWebClientpublic Map<String,Object> get(UserCredential credential, String id, Map<String,Object> params) throws IOException
RestServiceClientget in interface RestServiceClientcredential - Auth credential of a user needed to access the resource on behalf of the user.id - Resource id.params - URL query parameters to select a collection.IOException - TODOpublic Map<String,Object> post(UserCredential credential, Object inputData) throws IOException
RestServiceClientpost in interface RestServiceClientcredential - Auth credential of a user needed to access the resource on behalf of the user.inputData - The object to be created.IOException - TODOpublic Map<String,Object> put(UserCredential credential, Object inputData, String id) throws IOException
RestServiceClientput in interface RestServiceClientcredential - Auth credential of a user needed to access the resource on behalf of the user.inputData - The new resource.id - Resource id.IOException - TODOpublic Map<String,Object> patch(UserCredential credential, Object partialData, String id) throws IOException
patch in interface RestServiceClientIOExceptionpublic Map<String,Object> delete(UserCredential credential, String id, Map<String,Object> params) throws IOException
RestServiceClientdelete in interface RestServiceClientcredential - Auth credential of a user needed to access the resource on behalf of the user.id - Resource id.params - URL query parameters to select a collection.IOException - TODOpublic Object get(UserCredential credential, String id) throws RestApiException, IOException
get in interface ApiServiceClientRestApiException - TODOIOException - TODOpublic List<Object> list(UserCredential credential, Map<String,Object> params) throws RestApiException, IOException
list in interface ApiServiceClientRestApiException - TODOIOException - TODOpublic List<String> keys(UserCredential credential, Map<String,Object> params) throws RestApiException, IOException
keys in interface ApiServiceClientRestApiException - TODOIOException - TODOpublic Object create(UserCredential credential, Object inputData) throws RestApiException, IOException
create in interface ApiServiceClientRestApiException - TODOIOException - TODOpublic Object create(UserCredential credential, Object inputData, String id) throws RestApiException, IOException
create in interface ApiServiceClientRestApiException - TODOIOException - TODOpublic Object update(UserCredential credential, Object inputData, String id) throws RestApiException, IOException
update in interface ApiServiceClientRestApiException - TODOIOException - TODOpublic Object modify(UserCredential credential, Object partialData, String id) throws RestApiException, IOException
ApiServiceClientmodify in interface ApiServiceClientRestApiExceptionIOExceptionpublic boolean delete(UserCredential credential, String id) throws RestApiException, IOException
delete in interface ApiServiceClientRestApiException - TODOIOException - TODOpublic int delete(UserCredential credential, Map<String,Object> params) throws RestApiException, IOException
delete in interface ApiServiceClientRestApiException - TODOIOException - TODOCopyright © 2013. All rights reserved.