'Port Unification in grpc-java

I am looking for an approach to enable SSL on demand for gRPC.

Netty doc shows this can be done by adding a custom ByteToMessageDecoder handler, reading through the initial bytes, and making decisions on the fly.

Does grpc-java support port unification? From my initial dig at the code, the server-starter doesn't seem to expose any interface to inject custom handlers.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source