[Migration 1.5] Howto configure HttpsMapper to ignore https protocol by configuration?

2011-09-25 Thread Mike Mander
Hi, on my integration server there is another application using the ssl port (certificate etc.). I can't disable it so far. Because ssl certificate can only be used for one app, i disabled ssl by configuration for my app with wicket 1.4.x. I configured the https port to -1 and so ssl (with Http

Re: [Migration 1.5] Howto configure HttpsMapper to ignore https protocol by configuration?

2011-09-26 Thread Martin Grigorov
Just override org.apache.wicket.protocol.https.HttpsMapper.mapRequest(Request) and/or org.apache.wicket.protocol.https.HttpsMapper.mapHandler(IRequestHandler) and do whatever you need. This class is very simple. You can even create your own. On Mon, Sep 26, 2011 at 8:39 AM, Mike Mander wrote: > H

Re: [Migration 1.5] Howto configure HttpsMapper to ignore https protocol by configuration?

2011-09-26 Thread Mike Mander
Thanks Martin, Overriding / implementing my own mapper would be an option if i could use the HttpsRequestChecker. But it's package private (1.5.0). But thinking about that again lead me to another option => set the https_port in config. setRootRequestMapper(new HttpsMapper(getRootRequestMappe

Re: [Migration 1.5] Howto configure HttpsMapper to ignore https protocol by configuration?

2011-09-26 Thread Martin Grigorov
Can't you just return the passed IRequestHandler/Url in mapHandler/mapRequest() methods if the https port is -1 ? No need to use HttpsRequestChecker at all. On Mon, Sep 26, 2011 at 11:17 AM, Mike Mander wrote: > Thanks Martin, > > Overriding / implementing my own mapper would be an option if i co

Re: [Migration 1.5] Howto configure HttpsMapper to ignore https protocol by configuration?

2011-09-26 Thread Mike Mander
Thanks Martin, Problem solved. Instead of implementing something i've configured the mapper: if (_httpsPort > -1) { setRootRequestMapper(new HttpsMapper(getRootRequestMapper(), new HttpsConfig(_httpPort, _httpsPort))); } :-) That is simple and no need to copy cod