Monday Dec 08, 2008

Downshifting for Faster Driving - HTTPS to HTTP in GlassFish


Ever been in a Web App that seems to be stuck in the (slow) "https:" protocol? Jan has your solution: downshift! Check out his explanation of How to write a WebApp that switches between HTTP and HTTPS.

Jan's note explains how to use security constraints and Java ACC to solve the problem. The note also includes a sample (see WAR) and instructions on how to run it on GFv2 and GFv3 Prelude.

NB - when I read the title I immediately thought of this Downshifting (specially on older cars where the Syncromesh didn't work as well). I'll confess that I was not even aware of the more modern Downshift :-)