@ Override public void saveRequest ( HttpServletRequest request , HttpServletResponse response ) { if ( anyRequestMatcher . matches ( request ) && ! ajaxRequestMatcher . matches ( request ) ) { DefaultSavedRequest savedRequest = new DefaultSavedRequest ( request , portResolver ) ; HttpUtils . setStateParam ( Config . RETURNTO_COOKIE , Utils . base64enc ( savedRequest . getRedirectUrl ( ) . getBytes ( ) ) , request , response ) ; } }
Saves a request in cache .