users@jersey.java.net

[Jersey] x-forwarded-proto and _at_Context

From: Robert DiFalco <robert.difalco_at_gmail.com>
Date: Thu, 6 Feb 2014 10:42:56 -0800

Hi, my server sits on heroku which uses an SSL Endpoint. It looks like
heroku handles the SSL itself and sends the requests on to my server as
HTTP.

I need to create a 303 location that knows if the request was HTTP or
HTTPS. To do this I need to look at the x-forwarded-proto.

How can I get this from within a REST call (for example a GET)? I need to
make sure the location I give to the client for the 303 is properly
specified as HTTP or HTTPS based on this.

Thanks!