[
https://issues.apache.org/jira/browse/AVRO-3166?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jiri Ondrusek updated AVRO-3166:
--------------------------------
Description:
I'm fixing issue in avro-rpc extension from camel-quarkus -
[#2651|https://github.com/apache/camel-quarkus/issues/2651]]
I prepared fix, where I'm replacing provider for http server from Jetty to
Vertx ([PR|https://github.com/apache/camel-quarkus/pull/2859]).]
I faced problem, when I needed to call methods: `HttpTransciever#writeBuffers`,
`HttpTransciever#writeLength` and `HttpTranscier#readBuffers`. Unfortunately
the only publicly accessible method is through `ResponderServlet`. Therefore I
had to create simple `HttpServletRequest` and `HttpServletResponse` based on
Vertx's Buffer.
It would be nice, if there was method/methods for such purpose:
* based for example on `InputStream` and `OutputStream`
(I'm using in my [PR|https://github.com/apache/camel-quarkus/pull/2859]
`byte[]` and `ByteArrayOutpuStream`)
* or even based on Vertx
It would be also nice to have a `avro-ipc` artifact without a dependency on
servlet api.
was:
I'm fixing issue in avro-rpc extension from camel-quarkus -
[#2651|[https://github.com/apache/camel-quarkus/issues/2651]]
I prepared fix, where I'm replacing provider for http server from Jetty to
Vertx ([PR|[https://github.com/apache/camel-quarkus/pull/2859]).]
I faced problem, when I needed to call methods: `HttpTransciever#writeBuffers`,
`HttpTransciever#writeLength` and `HttpTranscier#readBuffers`. Unfortunately
the only publicly accessible method is through `ResponderServlet`. Therefore I
had to create simple `HttpServletRequest` and `HttpServletResponse` based on
Vertx's Buffer.
It would be nice, if there was method/methods for such purpose:
* based for example on `InputStream` and `OutputStream`
(I'm using in my
[PR|[https://github.com/apache/camel-quarkus/pull/2859]|https://github.com/apache/camel-quarkus/pull/2859]).]
`byte[]` and `ByteArrayOutpuStream`)
* or even based on Vertx
It would be also nice to have a `avro-ipc` artifact without a dependency on
servlet api.
> [avro-ipc] Provide similar class as `ResponderServlet` which is not based on
> servlets (but could be used with Vertx)
> --------------------------------------------------------------------------------------------------------------------
>
> Key: AVRO-3166
> URL: https://issues.apache.org/jira/browse/AVRO-3166
> Project: Apache Avro
> Issue Type: Improvement
> Components: java
> Affects Versions: 1.10.2
> Reporter: Jiri Ondrusek
> Priority: Major
>
> I'm fixing issue in avro-rpc extension from camel-quarkus -
> [#2651|https://github.com/apache/camel-quarkus/issues/2651]]
>
> I prepared fix, where I'm replacing provider for http server from Jetty to
> Vertx ([PR|https://github.com/apache/camel-quarkus/pull/2859]).]
>
> I faced problem, when I needed to call methods:
> `HttpTransciever#writeBuffers`, `HttpTransciever#writeLength` and
> `HttpTranscier#readBuffers`. Unfortunately the only publicly accessible
> method is through `ResponderServlet`. Therefore I had to create simple
> `HttpServletRequest` and `HttpServletResponse` based on Vertx's Buffer.
>
> It would be nice, if there was method/methods for such purpose:
> * based for example on `InputStream` and `OutputStream`
> (I'm using in my [PR|https://github.com/apache/camel-quarkus/pull/2859]
> `byte[]` and `ByteArrayOutpuStream`)
> * or even based on Vertx
> It would be also nice to have a `avro-ipc` artifact without a dependency on
> servlet api.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)