io.quarkus.spring.web.runtime.ResponseEntityHandler Maven / Gradle / Ivy
package io.quarkus.spring.web.runtime;
import org.jboss.resteasy.reactive.server.core.ResteasyReactiveRequestContext;
import org.jboss.resteasy.reactive.server.spi.ServerRestHandler;
import org.springframework.http.ResponseEntity;
import io.quarkus.spring.web.runtime.common.ResponseEntityConverter;
public class ResponseEntityHandler implements ServerRestHandler {
@Override
public void handle(ResteasyReactiveRequestContext requestContext) throws Exception {
Object result = requestContext.getResult();
if (result instanceof ResponseEntity) {
requestContext.setResult(ResponseEntityConverter.toResponse((ResponseEntity>) result, null));
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy