On 17/12/2015 6:05pm, Andrus Adamchik wrote:
> So how about implementing HttpClientConnection with JAX-RS? It will take care 
> of HTTP(S) as the wire protocol and will provide very clean pluggability 
> layer (MessageBodyReader/MessageBodyWriter). I very much like JAX-RS API, 
> which works on both client and server. And certainly wouldn't want to 
> reimplement all this from scratch. I think this should be compatible with 
> protobuf (and maybe with Hessian), as well as JSON or anything else. 
> 
> One thing I am not sure about is whether we can wrap HTTP/2 support around 
> this?

I'm unclear as to why Cayenne should have any knowledge of the connection at 
all. Why should Cayenne care whether the connection between the client and 
server is HTTP, HTTP2, files on disk, unix sockets or email mime attachments?

I'd like a blob or stream of serialised data passed up to my application. Then 
the app can decide how to transport, compress, encrypt and authenticate it.

Can we create an interface which encapsulates just the data stream?

Ari


-- 
-------------------------->
Aristedes Maniatis
GPG fingerprint CBFB 84B4 738D 4E87 5E5C  5EFA EF6A 7D2E 3E49 102A

Reply via email to