Got the solution..
log.info("x-forwarded-host
-"+getWebRequestCycle().getWebRequest().getHttpServletRequest().getHeader("x-forwarded-host"));
if(getWebRequestCycle().getWebRequest().getHttpServletRequest().getHeader("x-forwarded-host").equals("my-server-one")){
add(HeaderContributor.forCss(ApplicationBasePage.class,
"ServerOneApplication.css"));
}
"x-forwarded-host" Header actually contains that information.
Thanks guys. Hopefully it will help someone later
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Extract-DNS-web-url-from-Wicket-request-tp2068948p2069072.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]