Look carefully at your code. You are setting a header to the RESPONSE object, not the request (because you can't), and since you the response object hasn't got a getHeader() method, you are trying to get it from the ORIGINAL request (where it obviously does not exist). Thus you null result.
SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJD, SCEA/OCMJEA
Live life to an interface, not an implementation!
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads