Interface FetchMetadataFilterConfiguration

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

public interface FetchMetadataFilterConfiguration extends io.micronaut.core.util.Toggleable
Configuration for the Fetch Metadata request filter.

The configuration bean only exists while the filter is enabled, so Toggleable.isEnabled() returns true for any injected instance. Use PROPERTY_ENABLED with @Requires to make a bean depend on whether the filter is enabled.

Since:
5.6.0
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Configuration prefix for the Fetch Metadata request filter.
    static final String
    Property that enables or disables the Fetch Metadata request filter.
    static final String
    Property that sets the request path pattern the Fetch Metadata request filter applies to.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the request path pattern to which the Fetch Metadata filter applies.

    Methods inherited from interface io.micronaut.core.util.Toggleable

    isEnabled
  • Field Details

    • PREFIX

      static final String PREFIX
      Configuration prefix for the Fetch Metadata request filter.
      See Also:
    • PROPERTY_ENABLED

      static final String PROPERTY_ENABLED
      Property that enables or disables the Fetch Metadata request filter.
      See Also:
    • PROPERTY_PATTERN

      static final String PROPERTY_PATTERN
      Property that sets the request path pattern the Fetch Metadata request filter applies to.
      See Also:
  • Method Details

    • getPattern

      String getPattern()
      Returns the request path pattern to which the Fetch Metadata filter applies.
      Returns:
      the pattern the FetchMetadataFilter should match