Class StaticFilesAPI
- java.lang.Object
-
- com.cheetahdigital.corekit.models.module.Controller
-
- com.cheetahdigital.content.core.api.staticfile.StaticFilesAPI
-
- All Implemented Interfaces:
RestController
public class StaticFilesAPI extends Controller
Class for setting the query parameters of Static Files API. AllNullableparameters means you can remove the parameter by passing anullvalue.
-
-
Field Summary
-
Fields inherited from class com.cheetahdigital.corekit.models.module.Controller
STANDARD_DATE_FORMAT, TIMEZONE_DATE_FORMAT
-
-
Constructor Summary
Constructors Constructor Description StaticFilesAPI()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidgetStaticFile(StaticFilesParams staticFilesParams, boolean clearCache, Listener<java.lang.String> listener)Get a specific static file from the servervoidgetStaticFiles(StaticFilesParams staticFilesParams, boolean clearCache, ListenerModel<BaseModel<StaticFiles>,StaticFiles> listener)Get All Static Files-
Methods inherited from class com.cheetahdigital.corekit.models.module.Controller
createCache, createHttpClient, createRetrofitInterface, evictAllCache, getGsonConfiguration, getRestAdapter, getTimeoutConnectionInSeconds, getTimeoutSocketInSeconds, initialize, removeResponsesFromCache
-
-
-
-
Method Detail
-
getStaticFile
public void getStaticFile(StaticFilesParams staticFilesParams, boolean clearCache, Listener<java.lang.String> listener)
Get a specific static file from the server- Parameters:
staticFilesParams- theStaticFilesParamsfor Static Files APIclearCache- set totrueto clear previously stored cachelistener- callback to handle the results
-
getStaticFiles
public void getStaticFiles(StaticFilesParams staticFilesParams, boolean clearCache, ListenerModel<BaseModel<StaticFiles>,StaticFiles> listener)
Get All Static Files- Parameters:
staticFilesParams- theStaticFilesParamsfor Static Files APIclearCache- set totrueto clear previously stored cachelistener- callback to handle the results
-
-