Package io.quarkus.test.common.http
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 -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
getValuein interfaceio.smallrye.config.ConfigSourceInterceptor- Overrides:
getValuein classio.smallrye.config.ExpressionConfigSourceInterceptor
-