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. AllNullable
parameters means you can remove the parameter by passing anull
value.
-
-
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 void
getStaticFile(StaticFilesParams staticFilesParams, boolean clearCache, Listener<java.lang.String> listener)
Get a specific static file from the servervoid
getStaticFiles(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
- theStaticFilesParams
for Static Files APIclearCache
- set totrue
to 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
- theStaticFilesParams
for Static Files APIclearCache
- set totrue
to clear previously stored cachelistener
- callback to handle the results
-
-