public abstract class AbstractRestApiUserClient extends Object implements RestApiUserClient, FlexibleResourceClient, FlexibleUserClient
| Constructor and Description |
|---|
AbstractRestApiUserClient(RestApiServiceClient restApiServiceClient) |
AbstractRestApiUserClient(RestApiServiceClient restApiServiceClient,
UserCredential authCredential) |
public AbstractRestApiUserClient(RestApiServiceClient restApiServiceClient)
public AbstractRestApiUserClient(RestApiServiceClient restApiServiceClient, UserCredential authCredential)
protected void init()
protected RestApiServiceClient getRestApiServiceClient()
protected FlexibleResourceClient getFlexibleRestApiServiceClient()
public boolean isMethodSupported(String methodName)
isMethodSupported in interface MethodFilterpublic UserCredential getUserCredential()
UserClientgetUserCredential in interface UserClientpublic void setUserCredential(UserCredential userCredential)
setUserCredential in interface FlexibleUserClientpublic String getResourceBaseUrl()
ResourceClientgetResourceBaseUrl in interface ResourceClientpublic 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(String id, Map<String,Object> params) throws IOException
RestUserClientget in interface RestUserClientid - Resource id.params - URL query parameters to select a collection.IOException - TODOpublic Map<String,Object> post(Object inputData) throws IOException
RestUserClientpost in interface RestUserClientinputData - The object to be created.IOException - TODOpublic Map<String,Object> put(Object inputData, String id) throws IOException
RestUserClientput in interface RestUserClientinputData - The new resource.id - Resource id.IOException - TODOpublic Map<String,Object> patch(Object partialData, String id) throws IOException
patch in interface RestUserClientIOExceptionpublic Map<String,Object> delete(String id, Map<String,Object> params) throws IOException
RestUserClientdelete in interface RestUserClientid - Resource id.params - URL query parameters to select a collection.IOException - TODOpublic Object get(String id) throws RestApiException, IOException
get in interface ApiUserClientRestApiExceptionIOExceptionpublic List<Object> list(Map<String,Object> params) throws RestApiException, IOException
list in interface ApiUserClientRestApiExceptionIOExceptionpublic List<String> keys(Map<String,Object> params) throws RestApiException, IOException
keys in interface ApiUserClientRestApiExceptionIOExceptionpublic Object create(Object inputData) throws RestApiException, IOException
create in interface ApiUserClientRestApiExceptionIOExceptionpublic Object create(Object inputData, String id) throws RestApiException, IOException
create in interface ApiUserClientRestApiExceptionIOExceptionpublic Object update(Object inputData, String id) throws RestApiException, IOException
update in interface ApiUserClientRestApiExceptionIOExceptionpublic Object modify(Object partialData, String id) throws RestApiException, IOException
modify in interface ApiUserClientRestApiExceptionIOExceptionpublic boolean delete(String id) throws RestApiException, IOException
delete in interface ApiUserClientRestApiExceptionIOExceptionpublic int delete(Map<String,Object> params) throws RestApiException, IOException
delete in interface ApiUserClientRestApiExceptionIOExceptionCopyright © 2013. All rights reserved.