Which is the correct "2.0" approach to writing clients? For example in
com.sun.grizzly.samples.ssl I can see three alternative client
implementations: FilterChain, Standalone, and StringBased. The latter
looks like a more elegant version of the FilterChain implementation, so
I guess there's actually only two fundamentally different approaches:
use FilterChains or use StreamReader/StreamWriters.
Which is the recommended approach? The StreamReader/StreamWriter
approach looks cleaner somehow. Is one approach better than the other?
I seem to remember that Codecs are new in 2.0. Should we use these?
From the server point of view I guess there's only one approach to take
(e.g. SSLEchoServer and other samples). Am I correct? Are there any
preferred 2.0 APIs that we should use in the server?
Cheers,
Matt