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

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

There is a newer version: 3.17.0.CR1
Show newest version
package io.quarkus.rest.client.reactive.runtime.context;

import jakarta.ws.rs.ext.ContextResolver;

import org.eclipse.microprofile.rest.client.ext.ClientHeadersFactory;

public class ClientHeadersFactoryContextResolver implements ContextResolver {

    private final ClientHeadersFactory component;

    public ClientHeadersFactoryContextResolver(ClientHeadersFactory component) {
        this.component = component;
    }

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

        return null;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy