-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support large files in multipart for resteasy reactive
I've added tests for resteasy reactive and also resteasy reactive rest client. Fix #24472
- Loading branch information
Showing
7 changed files
with
105 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
...untime/src/main/java/org/jboss/resteasy/reactive/client/impl/VertxBufferOutputStream.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package org.jboss.resteasy.reactive.client.impl; | ||
|
||
import io.vertx.core.buffer.Buffer; | ||
import java.io.IOException; | ||
import java.io.OutputStream; | ||
|
||
public class VertxBufferOutputStream extends OutputStream { | ||
private Buffer buffer; | ||
|
||
public VertxBufferOutputStream() { | ||
this.buffer = Buffer.buffer(); | ||
} | ||
|
||
@Override | ||
public void write(int b) throws IOException { | ||
buffer.appendByte((byte) (b & 0xFF)); | ||
} | ||
|
||
@Override | ||
public void write(byte[] b) throws IOException { | ||
buffer.appendBytes(b); | ||
} | ||
|
||
@Override | ||
public void write(byte[] b, int off, int len) throws IOException { | ||
buffer.appendBytes(b, off, len); | ||
} | ||
|
||
public Buffer getBuffer() { | ||
return this.buffer.copy(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters