Class Features

java.lang.Object
io.kroxylicious.proxy.internal.config.Features

public class Features extends Object
Represents the entire set of proxy features.
  • Method Details

    • supports

      public List<String> supports(Configuration configuration)
      Check whether this configuration is supported by the proxy's features
      Parameters:
      configuration - configuration
      Returns:
      if not supported, returns a list of errors, else an empty list
    • isEnabled

      public boolean isEnabled(Feature feature)
      Parameters:
      feature - feature to test
      Returns:
      true if feature enabled, else false
    • defaultFeatures

      public static Features defaultFeatures()
    • warnings

      public List<String> warnings()
      If any sensitive or unsupported features are enabled, they may return a warning to be logged
      Returns:
      list of warnings, empty if no warnings
    • builder

      public static Features.FeaturesBuilder builder()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object