Reinstate WebContentGenerator.checkAndPrepare variant

Reinstate a variant of the `WebContentGenerator.checkAndPrepare` method
for projects that are using it.

This variant is now marked as deprecated.

Issue: SPR-11792
This commit is contained in:
Brian Clozel
2015-05-22 22:31:56 +02:00
parent bd787769be
commit 9e6494eef6

View File

@@ -312,6 +312,19 @@ public abstract class WebContentGenerator extends WebApplicationObjectSupport {
checkAndPrepare(request, response, this.cacheControl);
}
@Deprecated
protected final void checkAndPrepare(
HttpServletRequest request, HttpServletResponse response, boolean lastModified)
throws ServletException {
if (lastModified) {
checkAndPrepare(request, response, this.cacheControl.mustRevalidate());
}
else {
checkAndPrepare(request, response);
}
}
protected final void checkAndPrepare(
HttpServletRequest request, HttpServletResponse response, int cacheSeconds) throws ServletException {