Class StaticContentSupport.Builder<B extends StaticContentSupport.Builder<B>>

    • Constructor Detail

      • Builder

        protected Builder()
    • Method Detail

      • doBuild

        protected abstract StaticContentSupport doBuild()
        Build the actual instance.
        Returns:
        static content support
      • welcomeFileName

        public B welcomeFileName​(String welcomeFileName)
        Sets a name of the "file" which will be returned if directory is requested.
        Parameters:
        welcomeFileName - a name of the welcome file
        Returns:
        updated builder
      • pathMapper

        public B pathMapper​(Function<String,​String> resolvePathFunction)
        Map request path to resource path. Default uses the same path as requested. This can be used to resolve all paths to a single file, or to filter out files.
        Parameters:
        resolvePathFunction - function
        Returns:
        updated builder