| 1 | package fr.sii.ogham.spring.v3.template.thymeleaf; | |
| 2 | ||
| 3 | import fr.sii.ogham.spring.template.thymeleaf.ServletRequestContextProvider; | |
| 4 | import fr.sii.ogham.spring.util.compat.HttpServletRequestWrapper; | |
| 5 | import fr.sii.ogham.spring.util.compat.HttpServletResponseWrapper; | |
| 6 | import fr.sii.ogham.spring.util.compat.ServletContextWrapper; | |
| 7 | import org.springframework.web.servlet.support.RequestContext; | |
| 8 | ||
| 9 | import java.util.Map; | |
| 10 | ||
| 11 | public class RequestContextProvider implements ServletRequestContextProvider { | |
| 12 | ||
| 13 | @Override | |
| 14 | public RequestContext getRequestContext(HttpServletRequestWrapper request, HttpServletResponseWrapper response, ServletContextWrapper servletContext, Map<String, Object> springModel) { | |
| 15 |
1
1. getRequestContext : replaced return value with null for fr/sii/ogham/spring/v3/template/thymeleaf/RequestContextProvider::getRequestContext → KILLED |
return new RequestContext(request.get(), response.get(), servletContext.get(), springModel); |
| 16 | } | |
| 17 | ||
| 18 | } | |
Mutations | ||
| 15 |
1.1 |