Class TestHTTPConfigSourceInterceptor

java.lang.Object
io.smallrye.config.ExpressionConfigSourceInterceptor
io.quarkus.test.common.http.TestHTTPConfigSourceInterceptor
All Implemented Interfaces:
io.smallrye.config.ConfigSourceInterceptor, Serializable

@Priority(3299) public class TestHTTPConfigSourceInterceptor extends io.smallrye.config.ExpressionConfigSourceInterceptor
Override the expression expansion for test urls so they can be sanitized. A simple interceptor does not work because the test urls values are nested expressions, so when the default expression interceptor runs, either we get the full value expanded or the value unexpanded. In most cases, the test urls are used as expressions, so we need to intercept the expression expansion directly to rewrite what we need.
See Also:
  • Field Summary

    Fields inherited from interface io.smallrye.config.ConfigSourceInterceptor

    EMPTY
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    io.smallrye.config.ConfigValue
    getValue(io.smallrye.config.ConfigSourceInterceptorContext context, String name)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.smallrye.config.ConfigSourceInterceptor

    iterateNames
  • Constructor Details

    • TestHTTPConfigSourceInterceptor

      public TestHTTPConfigSourceInterceptor()
  • Method Details

    • getValue

      public io.smallrye.config.ConfigValue getValue(io.smallrye.config.ConfigSourceInterceptorContext context, String name)
      Specified by:
      getValue in interface io.smallrye.config.ConfigSourceInterceptor
      Overrides:
      getValue in class io.smallrye.config.ExpressionConfigSourceInterceptor