Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor ResteasyReactiveOutputStream so that it can be used by Quarkus CXF #40995

Merged
merged 1 commit into from
Jun 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions bom/application/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4898,6 +4898,11 @@
<artifactId>resteasy-reactive-client-processor</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>io.quarkus.vertx.utils</groupId>
<artifactId>quarkus-vertx-utils</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.wildfly.common</groupId>
<artifactId>wildfly-common</artifactId>
Expand Down
4 changes: 4 additions & 0 deletions extensions/resteasy-classic/resteasy/runtime/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
<groupId>io.quarkus</groupId>
<artifactId>quarkus-vertx-http</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus.vertx.utils</groupId>
<artifactId>quarkus-vertx-utils</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-resteasy-server-common</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

import io.netty.buffer.ByteBuf;
import io.quarkus.runtime.BlockingOperationNotAllowedException;
import io.quarkus.vertx.core.runtime.VertxBufferImpl;
import io.quarkus.vertx.utils.NoBoundChecksBuffer;
import io.vertx.core.AsyncResult;
import io.vertx.core.Context;
import io.vertx.core.Handler;
Expand Down Expand Up @@ -62,7 +62,7 @@ public void terminateResponse() {
}

Buffer createBuffer(ByteBuf data) {
return new VertxBufferImpl(data);
return new NoBoundChecksBuffer(data);
}

@Override
Expand Down
4 changes: 4 additions & 0 deletions extensions/websockets-next/runtime/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
<groupId>io.quarkus</groupId>
<artifactId>quarkus-vertx-http</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus.vertx.utils</groupId>
<artifactId>quarkus-vertx-utils</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-jackson</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import org.jboss.logging.Logger;

import io.quarkus.vertx.core.runtime.VertxBufferImpl;
import io.quarkus.vertx.utils.NoBoundChecksBuffer;
import io.quarkus.websockets.next.CloseReason;
import io.quarkus.websockets.next.HandshakeRequest;
import io.quarkus.websockets.next.WebSocketConnection.BroadcastSender;
Expand Down Expand Up @@ -62,7 +62,7 @@ public <M> Uni<Void> sendText(M message) {
String text;
// Use the same conversion rules as defined for the OnTextMessage
if (message instanceof JsonObject || message instanceof JsonArray || message instanceof BufferImpl
|| message instanceof VertxBufferImpl) {
|| message instanceof NoBoundChecksBuffer) {
text = message.toString();
} else if (message.getClass().isArray() && message.getClass().arrayType().equals(byte.class)) {
text = Buffer.buffer((byte[]) message).toString();
Expand Down
6 changes: 6 additions & 0 deletions independent-projects/resteasy-reactive/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,12 @@
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>io.quarkus.vertx.utils</groupId>
<artifactId>quarkus-vertx-utils</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>io.quarkus.resteasy.reactive</groupId>
<artifactId>resteasy-reactive-client-processor</artifactId>
Expand Down
4 changes: 4 additions & 0 deletions independent-projects/resteasy-reactive/server/vertx/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@
<groupId>io.quarkus.resteasy.reactive</groupId>
<artifactId>resteasy-reactive</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus.vertx.utils</groupId>
<artifactId>quarkus-vertx-utils</artifactId>
</dependency>
<dependency>
<groupId>jakarta.enterprise</groupId>
<artifactId>jakarta.enterprise.cdi-api</artifactId>
Expand Down
Loading
Loading