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

io.quarkus.rest.client.reactive.runtime.spi.XmlMissingMessageBodyReaderErrorMessageContextualizer 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 XmlMissingMessageBodyReaderErrorMessageContextualizer implements
        MissingMessageBodyReaderErrorMessageContextualizer {
    @Override
    public String provideContextMessage(Input input) {
        if ((input.mediaType() != null) && input.mediaType().isCompatible(MediaType.APPLICATION_XML_TYPE)) {
            return "Consider adding the 'quarkus-rest-client-jaxb' extension";
        }
        return null;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy