Uses of Interface
io.avaje.jex.StaticContentConfig
Packages that use StaticContentConfig
-
Uses of StaticContentConfig in io.avaje.jex
Methods in io.avaje.jex that return StaticContentConfigModifier and TypeMethodDescriptionstatic StaticContentConfigStaticContentConfig.create()Create and return a new static content configuration.StaticContentConfig.directoryIndex(String directoryIndex) Sets the index file to be served when a directory is requests.Sets the HTTP path for the static resource handler.StaticContentConfig.location(StaticContentConfig.ResourceLocation location) Sets the resource location (CLASSPATH or FILE).StaticContentConfig.putMimeTypeMapping(String ext, String mimeType) Adds a new MIME type mapping to the configuration.StaticContentConfig.putResponseHeader(String key, String value) Adds a new response header to the configuration.Sets the file to serve, or the folder your files are located in.StaticContentConfig.resourceLoader(ClassResourceLoader resourceLoader) Sets a custom resource loader for loading class/module path resources.StaticContentConfig.skipFilePredicate(Predicate<Context> skipFilePredicate) Sets a predicate to filter files based on the request context.Methods in io.avaje.jex with parameters of type StaticContentConfigModifier and TypeMethodDescriptiondefault JexJex.staticResource(StaticContentConfig config) Adds a static resource route using the provided configuration.Method parameters in io.avaje.jex with type arguments of type StaticContentConfigModifier and TypeMethodDescriptiondefault JexJex.staticResource(Consumer<StaticContentConfig> consumer) Adds a static resource route using a consumer to configure theStaticContentConfig.