Prepares the
ServletResponse instance that will be passed to the
FilterChain for request
processing.
This implementation delegates to
#wrapServletRequest(javax.servlet.http.HttpServletRequest)only if Shiro-based sessions are enabled (that is, !
#isHttpSessions()) and the request instance is a
ShiroHttpServletRequest. This ensures that any URL rewriting that occurs is handled correctly using the
Shiro-managed Session's sessionId and not a servlet container session ID.
If HTTP-based sessions are enabled (the default), then this method does nothing and just returns the
ServletResponse argument as-is, relying on the default Servlet Container URL rewriting logic.