Browse Source

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
pull/808/head
Brian Clozel 11 years ago
parent
commit
9e6494eef6
  1. 13
      spring-webmvc/src/main/java/org/springframework/web/servlet/support/WebContentGenerator.java

13
spring-webmvc/src/main/java/org/springframework/web/servlet/support/WebContentGenerator.java

@ -312,6 +312,19 @@ public abstract class WebContentGenerator extends WebApplicationObjectSupport { @@ -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 {

Loading…
Cancel
Save