generated from quarkiverse/quarkiverse-template
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Keep AppendBuffer and VertxServletOutputStream in sync with the origi…
…nals in Quarkus fix #1111
- Loading branch information
Showing
9 changed files
with
889 additions
and
43 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
59 changes: 59 additions & 0 deletions
59
.../core/runtime/src/main/java/io/quarkiverse/cxf/transport/VertxReactiveRequestContext.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,59 @@ | ||
package io.quarkiverse.cxf.transport; | ||
|
||
import io.vertx.ext.web.RoutingContext; | ||
|
||
public class VertxReactiveRequestContext { | ||
private final RoutingContext context; | ||
private final Deployment deployment; | ||
|
||
public VertxReactiveRequestContext( | ||
RoutingContext context, | ||
int minChunkSize, | ||
int outputBufferSize) { | ||
super(); | ||
this.context = context; | ||
this.deployment = new Deployment(minChunkSize, outputBufferSize); | ||
} | ||
|
||
public Deployment getDeployment() { | ||
return deployment; | ||
} | ||
|
||
public RoutingContext getContext() { | ||
return context; | ||
} | ||
|
||
public static class Deployment { | ||
|
||
private final ResteasyReactiveConfig resteasyReactiveConfig; | ||
|
||
public Deployment(int minChunkSize, int outputBufferSize) { | ||
super(); | ||
this.resteasyReactiveConfig = new ResteasyReactiveConfig(minChunkSize, outputBufferSize); | ||
} | ||
|
||
public ResteasyReactiveConfig getResteasyReactiveConfig() { | ||
return resteasyReactiveConfig; | ||
} | ||
|
||
} | ||
|
||
public static class ResteasyReactiveConfig { | ||
private final int minChunkSize; | ||
private final int outputBufferSize; | ||
|
||
public ResteasyReactiveConfig(int minChunkSize, int outputBufferSize) { | ||
super(); | ||
this.minChunkSize = minChunkSize; | ||
this.outputBufferSize = outputBufferSize; | ||
} | ||
|
||
public int getOutputBufferSize() { | ||
return outputBufferSize; | ||
} | ||
|
||
public int getMinChunkSize() { | ||
return minChunkSize; | ||
} | ||
} | ||
} |
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
Oops, something went wrong.