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

io.quarkus.rest.client.reactive.runtime.spi.JsonMissingMessageBodyReaderErrorMessageContextualizer Maven / Gradle / Ivy

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

import jakarta.ws.rs.core.MediaType;

import org.jboss.resteasy.reactive.client.spi.MissingMessageBodyReaderErrorMessageContextualizer;

public class JsonMissingMessageBodyReaderErrorMessageContextualizer implements
        MissingMessageBodyReaderErrorMessageContextualizer {
    @Override
    public String provideContextMessage(Input input) {
        if ((input.mediaType() != null) && input.mediaType().isCompatible(MediaType.APPLICATION_JSON_TYPE)) {
            return "Consider adding one the 'quarkus-rest-client-jackson' or 'quarkus-rest-client-jsonb' extensions";
        }
        return null;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy