Https Connection subdomain
Im Looking to set up my wickets 1.5 application with HTTPS.
I have added the following to my Application Class.
setRootRequestMapper(new HttpsMapper(getRootRequestMapper(), new HttpsConfig(8080, 8443)));
mountPage("/go/securepage", securePage.class);
As i have annotated the securePage.class with "@RequireHttps"
the Link correctly loads the page with HTTPS.
However i want to forward all https connections to a seperate subdomain.
So instead of going to
https://www.example.com/go/securepage
the user is forwarded to
https://securepage.example.com/go/securepage
How can this be done?
I've never needed to do this, but looking at the sources of
HttpsMapper
it seems you will we able to do this by overridingHttpsMapper.mapHandler()
.So, you can override it like this: