Hi,
I want to program a proxy (actually tunnel). All connections are made to the proxy, the proxy
makes some decisions and forwards them to the server. For my situation many clients connect to
the proxy on port 80, the proxy forwards the requests to a Tomcat server on port 8080 and
writes the response back to the client.
How can I acieve this with Grizzly? I though I had to extend the TCPSelectorHandler, overwrite
the onAcceptInterest method, establish there a new TCPConnectorHandler for the path client-proxy
and one for proxy-server and register CallbackHandlers wo propagate the read and write
operations.
But I don't know how the ProtocolFilter fits into the picture. How do I use it? I also
want to use TLS connections. How can I get the data which is decoded?
Is there any documentation or tutorial for the new Grizzly API?
Regards,
Karsten