Best way to check for https
I am using apache/jboss, and I have just configured apache for ssl. I can now access my web app pages either using http or https.
Obviously, for pages that need to be secure, I need to make sure that they are accessed via https and not http.
The only way I can see to do this is to write an interceptor which examines the requestURL and checks to make sure it starts with https.
I guess this would work, but it feels like a bit of a kludge.
Is there a better way?
Sorry this isn't a very 'spring' question - I'm not sure where else to ask.