io.quarkus.resteasy.reactive.server.runtime.observability.ObservabilityUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quarkus-rest Show documentation
Show all versions of quarkus-rest Show documentation
A Jakarta REST implementation utilizing build time processing and Vert.x. This extension is not compatible with the quarkus-resteasy extension, or any of the extensions that depend on it.
The newest version!
package io.quarkus.resteasy.reactive.server.runtime.observability;
import io.vertx.core.Context;
import io.vertx.core.http.impl.HttpServerRequestInternal;
import io.vertx.ext.web.RoutingContext;
final class ObservabilityUtil {
private ObservabilityUtil() {
}
static void setUrlPathTemplate(RoutingContext routingContext, String templatePath) {
getRequestContext(routingContext).putLocal("UrlPathTemplate", templatePath);
}
static String getUrlPathTemplate(RoutingContext routingContext) {
return getRequestContext(routingContext).getLocal("UrlPathTemplate");
}
private static Context getRequestContext(RoutingContext routingContext) {
return ((HttpServerRequestInternal) (routingContext.request())).context();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy