Interface ServletStaticResourceConfiguration

All Superinterfaces:
io.micronaut.core.util.Toggleable

@EachProperty("micronaut.router.static-resources") @Indexed(ServletStaticResourceConfiguration.class) public interface ServletStaticResourceConfiguration extends io.micronaut.core.util.Toggleable
Configuration for static resources for servlet engines.
Since:
1.0.0
Author:
graemerocher
  • Field Details

  • Method Details

    • getMapping

      @Bindable(defaultValue="/**") String getMapping()
      Returns:
      The mapping
    • getPaths

      List<String> getPaths()
      Returns:
      The paths
    • isEnabled

      @Bindable(defaultValue="true") boolean isEnabled()
      Specified by:
      isEnabled in interface io.micronaut.core.util.Toggleable
    • getCacheControl

      @Bindable(defaultValue="private,max-age=60") String getCacheControl()
      For Jetty based servers, allow configuring the cache control header for static resource mappings (defaults to "private,max-age=60").
      Returns:
      The cache control header
      Since:
      4.0.4