Uses of Interface
io.avaje.jex.staticcontent.StaticContent.Builder
-
Uses of StaticContent.Builder in io.avaje.jex.staticcontent
Methods in io.avaje.jex.staticcontent that return StaticContent.BuilderModifier and TypeMethodDescriptionstatic StaticContent.BuilderStaticContent.createCP()Create and return a new static content class path configuration with the `/public` directory as the root.static StaticContent.BuilderCreate and return a new static content class path configuration.static StaticContent.BuilderStaticContent.createFile(String resourceRoot) Create and return a new static content configuration for a File.StaticContent.Builder.directoryIndex(String directoryIndex) Sets the index file to be served when a directory is requests.Sets the HTTP path for the static resource handler.StaticContent.Builder.preCompress()Sent resources will be pre-compressed and cached in memory when this is enabledStaticContent.Builder.putMimeTypeMapping(String ext, String mimeType) Adds a new MIME type mapping to the configuration.StaticContent.Builder.putResponseHeader(String key, String value) Adds a new response header to the configuration.StaticContent.Builder.resourceLoader(ClassResourceLoader resourceLoader) Sets a custom resource loader for loading class/module path resources.StaticContent.Builder.skipFilePredicate(Predicate<Context> skipFilePredicate) Sets a predicate to filter files based on the request context.