Fix typos in WebRequest.checkNotModified docs
Closes gh-1035
This commit is contained in:
parent
6316a353bb
commit
23aeba0e46
|
|
@ -140,7 +140,7 @@ public interface WebRequest extends RequestAttributes {
|
|||
* and HTTP status when applicable.
|
||||
* <p>Typical usage:
|
||||
* <pre class="code">
|
||||
* public String myHandleMethod(WebRequest webRequest, Model model) {
|
||||
* public String myHandleMethod(WebRequest request, Model model) {
|
||||
* long lastModified = // application-specific calculation
|
||||
* if (request.checkNotModified(lastModified)) {
|
||||
* // shortcut exit - no further processing necessary
|
||||
|
|
@ -177,7 +177,7 @@ public interface WebRequest extends RequestAttributes {
|
|||
* and HTTP status when applicable.
|
||||
* <p>Typical usage:
|
||||
* <pre class="code">
|
||||
* public String myHandleMethod(WebRequest webRequest, Model model) {
|
||||
* public String myHandleMethod(WebRequest request, Model model) {
|
||||
* String eTag = // application-specific calculation
|
||||
* if (request.checkNotModified(eTag)) {
|
||||
* // shortcut exit - no further processing necessary
|
||||
|
|
@ -208,7 +208,7 @@ public interface WebRequest extends RequestAttributes {
|
|||
* response headers, and HTTP status when applicable.
|
||||
* <p>Typical usage:
|
||||
* <pre class="code">
|
||||
* public String myHandleMethod(WebRequest webRequest, Model model) {
|
||||
* public String myHandleMethod(WebRequest request, Model model) {
|
||||
* String eTag = // application-specific calculation
|
||||
* long lastModified = // application-specific calculation
|
||||
* if (request.checkNotModified(eTag, lastModified)) {
|
||||
|
|
|
|||
|
|
@ -4813,7 +4813,7 @@ as the following example shows:
|
|||
.Java
|
||||
----
|
||||
@RequestMapping
|
||||
public String myHandleMethod(WebRequest webRequest, Model model) {
|
||||
public String myHandleMethod(WebRequest request, Model model) {
|
||||
|
||||
long eTag = ... // <1>
|
||||
|
||||
|
|
@ -4833,7 +4833,7 @@ as the following example shows:
|
|||
.Kotlin
|
||||
----
|
||||
@RequestMapping
|
||||
fun myHandleMethod(webRequest: WebRequest, model: Model): String? {
|
||||
fun myHandleMethod(request: WebRequest, model: Model): String? {
|
||||
|
||||
val eTag: Long = ... // <1>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue