Package com.cheetahdigital.corekit.rest
Interface RestController
-
- All Known Implementing Classes:
ActivitiesAPI,AuthenticationAPI,BadgesAPI,BeaconsAPI,ChallengesAPI,CodesAPI,ConnectionsAPI,ContentPagesAPI,ContentTokenAPI,Controller,EventsAPI,FeedbackAPI,FriendsAPI,GiftcardsAPI,GroupsAPI,HouseholdAPI,InfoAPI,LeaderboardAPI,MembersAPI,MessagesAPI,MetaReferencesAPI,NewsfeedAPI,OffersAPI,OrdersAPI,PaymentAPI,PlacesAPI,PreferencesAPI,ProductsAPI,ProfileAPI,PunchcardAPI,ReceiptAPI,ReferralAPI,RewardsAPI,StaticFilesAPI,SummaryAPI,TrackingAPI,TransactionsAPI,UpgradeCheckAPI
public interface RestControllerBasic abstraction for REST controllers that consume API with support for Caches
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description okhttp3.CachecreateCache()Method for creating a cached file used to stored temporary data for requestsvoidevictAllCache()Method for removing/evicting all the Cache, ideally called during Logout Make sure that a call toinitialize()was properly made first before calling this method.voidremoveResponsesFromCache(java.lang.String path)Removes cached responses which contains the specified path.
-
-
-
Method Detail
-
createCache
okhttp3.Cache createCache()
Method for creating a cached file used to stored temporary data for requests- Returns:
- new
Cachefor caching requests
-
evictAllCache
void evictAllCache()
Method for removing/evicting all the Cache, ideally called during Logout Make sure that a call toinitialize()was properly made first before calling this method.
-
removeResponsesFromCache
void removeResponsesFromCache(java.lang.String path)
Removes cached responses which contains the specified path. Make sure that a call toinitialize()was properly made first before calling this method.- Parameters:
path- the path that will be used to search the cached data.
-
-