IdP access to server environment variables
putmanb at georgetown.edu
Thu Sep 29 20:16:28 BST 2011
On 9/29/11 12:57 PM, Liam Hoekenga wrote:
>> For the general case use getAttribute, e.g.
>> and omit the 'AJP_'.
> But is this somehow available within the scripted attribute resolver?
Yes, and I already mentioned how earlier in the thread. However, I just
actually looked at the classes and I had forgotten that it's simpler
than than (casting to HttpServletRequestAdapter, etc) because the
Transport interface directly provides access to transport attributes,
which in the case of the HttpServletRequestAdapter will be the servlet
request attributes. So you can do something like this (depending on the
scripting language you are using):
As Jim said, the "AJP_" prefix should be omitted from what you supply as
the 'name' parameter there.
> Would I need to import javax.servlet and javax.servlet.http?
No, since all the servlet request stuff is hidden behind the interface
More information about the users