diff --git a/docs/src/main/asciidoc/rest-client-reactive.adoc b/docs/src/main/asciidoc/rest-client-reactive.adoc index fab6c711e51b7..54e77e33afaaa 100644 --- a/docs/src/main/asciidoc/rest-client-reactive.adoc +++ b/docs/src/main/asciidoc/rest-client-reactive.adoc @@ -517,9 +517,9 @@ And the `RequestUUIDHeaderFactory` would look like: package org.acme.rest.client; import org.eclipse.microprofile.rest.client.ext.ClientHeadersFactory; -import org.jboss.resteasy.specimpl.MultivaluedMapImpl; import javax.enterprise.context.ApplicationScoped; +import javax.ws.rs.core.MultivaluedHashMap; import javax.ws.rs.core.MultivaluedMap; import java.util.UUID; @@ -528,7 +528,7 @@ public class RequestUUIDHeaderFactory implements ClientHeadersFactory { @Override public MultivaluedMap update(MultivaluedMap incomingHeaders, MultivaluedMap clientOutgoingHeaders) { - MultivaluedMap result = new MultivaluedMapImpl<>(); + MultivaluedMap result = new MultivaluedHashMap<>(); result.add("X-request-uuid", UUID.randomUUID().toString()); return result; } diff --git a/docs/src/main/asciidoc/rest-client.adoc b/docs/src/main/asciidoc/rest-client.adoc index 56fdc65fff135..8308ee5c66903 100644 --- a/docs/src/main/asciidoc/rest-client.adoc +++ b/docs/src/main/asciidoc/rest-client.adoc @@ -537,9 +537,9 @@ And the `RequestUUIDHeaderFactory` would look like: package org.acme.rest.client; import org.eclipse.microprofile.rest.client.ext.ClientHeadersFactory; -import org.jboss.resteasy.specimpl.MultivaluedMapImpl; import javax.enterprise.context.ApplicationScoped; +import javax.ws.rs.core.MultivaluedHashMap; import javax.ws.rs.core.MultivaluedMap; import java.util.UUID; @@ -548,7 +548,7 @@ public class RequestUUIDHeaderFactory implements ClientHeadersFactory { @Override public MultivaluedMap update(MultivaluedMap incomingHeaders, MultivaluedMap clientOutgoingHeaders) { - MultivaluedMap result = new MultivaluedMapImpl<>(); + MultivaluedMap result = new MultivaluedHashMap<>(); result.add("X-request-uuid", UUID.randomUUID().toString()); return result; } diff --git a/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/standalone/VertxHttpResponse.java b/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/standalone/VertxHttpResponse.java index 86a5332f78d88..ee0f1951a77df 100644 --- a/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/standalone/VertxHttpResponse.java +++ b/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/standalone/VertxHttpResponse.java @@ -6,11 +6,11 @@ import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletionStage; +import javax.ws.rs.core.MultivaluedHashMap; import javax.ws.rs.core.MultivaluedMap; import javax.ws.rs.core.NewCookie; import javax.ws.rs.ext.RuntimeDelegate; -import org.jboss.resteasy.specimpl.MultivaluedMapImpl; import org.jboss.resteasy.spi.HttpResponse; import org.jboss.resteasy.spi.ResteasyProviderFactory; @@ -38,7 +38,7 @@ public class VertxHttpResponse implements HttpResponse { public VertxHttpResponse(HttpServerRequest request, ResteasyProviderFactory providerFactory, final HttpMethod method, BufferAllocator allocator, VertxOutput output, RoutingContext routingContext) { this.routingContext = routingContext; - outputHeaders = new MultivaluedMapImpl(); + outputHeaders = new MultivaluedHashMap(); this.method = method; os = (method == null || !method.equals(HttpMethod.HEAD)) ? new VertxOutputStream(this, allocator) : null;