You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Jiri Ondrusek (Jira)" <ji...@apache.org> on 2021/06/30 12:29:00 UTC
[jira] [Created] (AVRO-3166) [avro-ipc] Provide similar class as
`ResponderServlet` which is not based on servlets (but could be used with
Vertx)
Jiri Ondrusek created AVRO-3166:
-----------------------------------
Summary: [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
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.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)