Hi,
do you want HTTPs to be processed by the same Filter chain as HTTP?
> I have overridden the configureAdapter(SelectorThread) method and
> add an PUReaderFilter.
Try to not add PUReadFilter yourself, but call
SelectorThread.configurePortUnification(), where you can register
finders, handlers, and preprocessor.
Depending on how you want to process HTTPs, you can try to add
TLSPUPreprocessor on PUReadFilter to be able to recognize protocols
over TLS/SSL... but it's depending on your usecase.
We have simple unit test in grizzly-http module (HttpRedirectorTest),
which has several examples how you can handle HTTP and HTTPs...
however in that example we don't process both HTTP and HTTPs, but just
one of them, for other protocol we perform HTTP-redirect.
For example on port 8080 we process just HTTP requests, but if HTTPs
request come - we return HTTP-redirect code and redirect next request
to another port (let's say 8181), which processes just HTTPS.
Hope this will help :)
WBR,
Alexey.
>
>
> If bytes are not http the PUReaderFilter forwards to
> another ProtocolChain which handles the custom protocol.
>
> if bytes are http the PUReaderFilter forwards to an
> FilterChainProtocolHandler and the Servlet gets called.
>
> So I have http and the custom protocol all on one port and am really
> happy!!
>
>
> Now I want to also enable https.
>
> So I don't have much time today and so
> just tried
> to override com.sun.grizzly.standalone.StandaloneMainUtil
> and in createSelectorThread(String args[])
> I create an SSLSelectorThread and give it
> ---------------------Code---------------------------------
> SSLConfig sslConfig = new SSLConfig();
> URL keystoreUrl = cl.getResource("mykeystore.ks");
> if (keystoreUrl != null) {
> sslConfig.setKeyStoreFile(keystoreUrl.getFile());
> }
> sslConfig.setKeyStorePass("test");
> SSLConfig.DEFAULT_CONFIG = sslConfig;
> ----------------------------------------------------------
>
> and a new JSSEImplementation()
>
> But the code is not working.
> Maybe the PUReaderFilter is causing problems?
>
> What do I have to do to have a Servlet (and Portunification) handle
> https?
>
> Many Greetings
> John
>
> --
> Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
> Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>