RE: Setting scheme on catalina Requests

2010-06-14 Thread Matthew Peterson
From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Tuesday, 15 June 2010 8:06 AM To: Tomcat Users List Subject: Re: Setting scheme on catalina Requests -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Matt, On 6/13/2010 6:03 PM, Matt Peterson wrote: > I am trying to develop a

Re: Setting scheme on catalina Requests

2010-06-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Matt, On 6/13/2010 6:03 PM, Matt Peterson wrote: > I am trying to develop a valve to modify requests based on a HTTP request > header as set by our SSL terminating load balancer. The valve is to watch > out for a particular header and when found, call

Re: Setting scheme on catalina Requests

2010-06-14 Thread Mark Thomas
r time. Mark > > Cheers, > Matt. > > > -Original Message- > From: Mark Thomas [mailto:ma...@apache.org] > Sent: Monday, 14 June 2010 9:58 AM > To: Tomcat Users List > Subject: Re: Setting scheme on catalina Requests > > On 13/06/2010 23:40, Matthew Peterson wrot

RE: Setting scheme on catalina Requests

2010-06-13 Thread Matthew Peterson
homas [mailto:ma...@apache.org] Sent: Monday, 14 June 2010 9:58 AM To: Tomcat Users List Subject: Re: Setting scheme on catalina Requests On 13/06/2010 23:40, Matthew Peterson wrote: > I still don't understand why the catalina.Request object doesn't implement > the convenience method se

Re: Setting scheme on catalina Requests

2010-06-13 Thread Mark Thomas
On 13/06/2010 23:40, Matthew Peterson wrote: > I still don't understand why the catalina.Request object doesn't implement > the convenience method setScheme(String) for this... Try searching the archives. This has bee discussed previously. Mark

RE: Setting scheme on catalina Requests

2010-06-13 Thread Matthew Peterson
Never mind. I found out how to do it. For anyone else interested, from a catalina.Request object you need to get the underlying coyote.Request object, access it's Scheme object (type MessageByte) and then set it's String value to "https". I still don't understand why the catalina.Request object