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 RestController
Basic 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.Cache
createCache()
Method for creating a cached file used to stored temporary data for requestsvoid
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.void
removeResponsesFromCache(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
Cache
for 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.
-
-