@groovy.transform.CompileStatic class UpdateRequestContextHolderExceptionTranslationFilter extends ExceptionTranslationFilter
Replaces the current GrailsWebRequest with one that delegates to the real current instance but uses the request and response from the filter chain instead of the cached instances from earlier in the chain to ensure that controllers and other classes that access the request from the thread-local RequestContextHolder use the correct instances.
| Constructor and description |
|---|
UpdateRequestContextHolderExceptionTranslationFilter(AuthenticationEntryPoint authenticationEntryPoint) |
UpdateRequestContextHolderExceptionTranslationFilter(AuthenticationEntryPoint authenticationEntryPoint, RequestCache requestCache) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
doFilter(ServletRequest req, ServletResponse res, FilterChain chain) |