request wrappers are included with the framework. The simplest version is SecurityContextHolderAwareRequestWrapper . A more complex and powerful request wrapper is SavedRequestAwareWrapper . The latter is also the default.
To modify the wrapper used, call setWrapperClass(Class) .
Any request wrapper configured for instantiation by this class must provide a public constructor that
accepts two arguments, being a HttpServletRequest and a PortResolver.