Hi Simone > > All right so what you need is a HttpConnection that upgrades to > HAPConnection, and HAPConnection should be setup similarly to > SslConnection, which delegates (after decryption) to another > connection that happens to be again a (different) HttpConnection. > Have a look at SslConnectionFactory as an example for how an > encryption/decryption ConnectionFactory would work. >
Just a question, why do you prefer this approach above building a customised HttpConnection that does the encryption/decryption itself? I already have a custmised HhttpConnection in place to deal with Apple modifying the HTTP Verb for Event handling. I would mean that I have to adapt OnFillable() to deal with decryption, and modify SendCallback to deal with encryption (e.g. the FLUSH case branch). And then in the application layer, whenever I derive the encryption keys, do an Endpoint.upgrade() to this customised class, and I would not have to deal with al the buffer dynamics of Endpoint itself Thanks Karel _______________________________________________ jetty-users mailing list [email protected] To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/jetty-users
