Redirect to https for few services using spring
I have an application which uses spring (also spring security) where few services were kept outside the secured resource set by specifying like below in the applicationContext.xml:
Now these services needs to be accessed only via https. Container is configured to have https. Requirement is when user access the above service on http, he should be redirected to https (port number too changes, as it in not the default 443).
<http pattern="/services/rest/nohisb/Msgs" security="none"/>
say from : http://localhost:10000/services/rest/nohisb/Msgs
to : https://localhost:10500/services/rest/nohisb/Msgs
Is it possible to achieve this via spring ?