Class BundledRead
- java.lang.Object
-
- org.logdoc.fairhttp.service.http.statics.BundledRead
-
- All Implemented Interfaces:
Function<String,Response>,AssetsRead
public class BundledRead extends Object
- Author:
- Denis Danilin | me@loslobos.ru 25.04.2023 11:44 fair-http-server ☭ sweat and blood
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanautoDirListprotected booleancacheprotected booleangotIndexprotected Set<String>indexFileprotected longmaxCacheLifeprotected longmaxCacheSizeprotected StringnamedRefstatic StringPlaceHolder
-
Constructor Summary
Constructors Constructor Description BundledRead(com.typesafe.config.Config staticsCfg, String prefix)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Responseapply(String webpath)protected voidcacheMe(String id, Response response)booleancanProcess(String path)protected byte[]dirList(String dirName, Collection<org.logdoc.fairhttp.service.http.statics.StaticRead.FRes> content)protected StringgetMime(String ext)protected ResponsepickCached(String id)protected StringrefreshMime(String id)protected voidrememberMime(String id, String mime)
-
-
-
Field Detail
-
PlaceHolder
public static final String PlaceHolder
- See Also:
- Constant Field Values
-
autoDirList
protected final boolean autoDirList
-
gotIndex
protected final boolean gotIndex
-
cache
protected final boolean cache
-
maxCacheSize
protected final long maxCacheSize
-
maxCacheLife
protected final long maxCacheLife
-
namedRef
protected final String namedRef
-
-
Constructor Detail
-
BundledRead
public BundledRead(com.typesafe.config.Config staticsCfg, String prefix)
-
-
Method Detail
-
canProcess
public boolean canProcess(String path)
-
dirList
protected byte[] dirList(String dirName, Collection<org.logdoc.fairhttp.service.http.statics.StaticRead.FRes> content)
-
-