All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jboss.resteasy.reactive.client.handlers.ClientObservabilityHandler Maven / Gradle / Ivy

There is a newer version: 3.17.5
Show newest version
package org.jboss.resteasy.reactive.client.handlers;

import org.jboss.resteasy.reactive.client.impl.RestClientRequestContext;
import org.jboss.resteasy.reactive.client.spi.ClientRestHandler;

/**
 * This is added by the Reactive Rest Client if observability features are enabled
 */
@SuppressWarnings("unused")
public class ClientObservabilityHandler implements ClientRestHandler {

    private final String templatePath;

    public ClientObservabilityHandler(String templatePath) {
        this.templatePath = templatePath;
    }

    @Override
    public void handle(RestClientRequestContext requestContext) throws Exception {
        requestContext.getClientFilterProperties().put("UrlPathTemplate", templatePath);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy