Interface FileSystemHandlerConfig

All Superinterfaces:
BaseHandlerConfig, Prototype.Api
All Known Implementing Classes:
FileSystemHandlerConfig.BuilderBase.FileSystemHandlerConfigImpl

public interface FileSystemHandlerConfig extends Prototype.Api, BaseHandlerConfig
File system based static content handler configuration.
See Also:
  • Method Details

    • builder

      Create a new fluent API builder to customize configuration.
      Returns:
      a new builder
    • builder

      Create a new fluent API builder from an existing instance.
      Parameters:
      instance - an existing instance used as a base for the builder
      Returns:
      a builder based on an instance
    • create

      static FileSystemHandlerConfig create(Config config)
      Create a new instance from configuration.
      Parameters:
      config - used to configure the new instance
      Returns:
      a new instance configured from configuration
    • create

      @Deprecated static FileSystemHandlerConfig create(Config config)
      Create a new instance from configuration.
      Parameters:
      config - used to configure the new instance
      Returns:
      a new instance configured from configuration
    • create

      static FileSystemHandlerConfig create()
      Create a new instance with default values.
      Returns:
      a new instance
    • create

      static FileSystemHandlerConfig create(Path location)
      Create a new file system based static content configuration from the defined location. All other configuration is default.
      Parameters:
      location - path on file system that is the root of static content (all files under it will be available!)
      Returns:
      a new configuration for classpath static content handler
    • location

      Path location()
      The directory (or a single file) that contains the root of the static content.
      Returns:
      location to serve the static content, such as "/home/user/static-content".