Interface ServletStaticResourceConfiguration

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

@Deprecated(forRemoval=true, since="5.2.0") public interface ServletStaticResourceConfiguration extends io.micronaut.core.util.Toggleable
Deprecated, for removal: This API element is subject to removal in a future version.
Configuration for static resources for servlet engines.
Since:
1.0.0
Author:
graemerocher
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static final String
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static final String
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    For Jetty based servers, allow configuring the cache control header for static resource mappings (defaults to "private,max-age=60").
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Field Details

    • CLASSPATH_PREFIX

      static final String CLASSPATH_PREFIX
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
    • FILE_PREFIX

      static final String FILE_PREFIX
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
    • DEFAULT_CACHE_CONTROL_HEADER

      static final String DEFAULT_CACHE_CONTROL_HEADER
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
  • Method Details

    • getMapping

      @Bindable(defaultValue="/**") String getMapping()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns:
      The mapping
    • getPaths

      List<String> getPaths()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns:
      The paths
    • isEnabled

      @Bindable(defaultValue="true") boolean isEnabled()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      isEnabled in interface io.micronaut.core.util.Toggleable
    • getCacheControl

      @Bindable(defaultValue="private,max-age=60") String getCacheControl()
      Deprecated, for removal: This API element is subject to removal in a future version.
      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