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

io.quarkus.rest.client.reactive.runtime.context.HttpClientOptionsContextResolver Maven / Gradle / Ivy

The newest version!
package io.quarkus.rest.client.reactive.runtime.context;

import jakarta.ws.rs.ext.ContextResolver;

import io.vertx.core.http.HttpClientOptions;

public class HttpClientOptionsContextResolver implements ContextResolver {

    private final HttpClientOptions component;

    public HttpClientOptionsContextResolver(HttpClientOptions component) {
        this.component = component;
    }

    @Override
    public HttpClientOptions getContext(Class wantedClass) {
        if (wantedClass.equals(HttpClientOptions.class)) {
            return component;
        }

        return null;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy