public class FilesystemProvider extends Object implements RenderAssetProvider
| Constructor and Description |
|---|
FilesystemProvider(File indexfile,
File serverbundlefile,
Charset charset)
Create a new file system provider.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getIndexContent()
Get the content of the index template.
|
File |
getServerBundle()
Get the file of the server bundle.
|
boolean |
isLiveReloadRequired(Date date)
Check if the provider detected an asset chance and wishes a live reload.
|
boolean |
isLiveReloadSupported()
Check if the provider does support live reload.
|
public FilesystemProvider(File indexfile, File serverbundlefile, Charset charset) throws IOException
indexfile - File that will be used to get the content of the index templateserverbundlefile - File that will be used to get the server bundlecharset - Charset that will be used to read the filesIOExceptionpublic String getIndexContent() throws IOException
getIndexContent in interface RenderAssetProviderIOException - Exception in case of an IO problempublic File getServerBundle() throws IOException
getServerBundle in interface RenderAssetProviderIOException - Exception in case of an IO problempublic boolean isLiveReloadSupported()
isLiveReloadSupported in interface RenderAssetProviderpublic boolean isLiveReloadRequired(Date date) throws IOException
isLiveReloadRequired in interface RenderAssetProviderdate - Date of the last reloadIOException - Exception in case of an IO problemCopyright © 2017. All rights reserved.