Idp v3 HttpServletRequestResponseContext usage

Cantor, Scott cantor.2 at osu.edu
Wed Aug 12 14:07:40 EDT 2015


On 8/12/15, 1:51 PM, "dev on behalf of Misagh Moayyed" <dev-bounces at shibboleth.net on behalf of mmoayyed at unicon.net> wrote:



>Could someone please point out where and how “HttpServletRequestResponseContext” is used? I mostly see it referenced in tests.

It's a static class. Outside of tests, it's only used inside the HttpRequest/ResponseProxy classes that use it to retrieve the thread-local copies of the underlying servlet objects.

Any component that needs the request or response is injected with shibboleth.HttpServletRequest and shibboleth.HttpServletResponse. There's a bit of magic inside the classes those point to that does the work, and most of that is inside the static functions of the class you're asking about. The name is a bit confusing, it's not part of our context tree business.

-- Scott



More information about the dev mailing list