File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
spring-web/src/main/java/org/springframework/http Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2012 the original author or authors.
2
+ * Copyright 2002-2013 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -412,8 +412,19 @@ public void setIfModifiedSince(long ifModifiedSince) {
412
412
* Returns the value of the {@code IfModifiedSince} header.
413
413
* <p>The date is returned as the number of milliseconds since January 1, 1970 GMT. Returns -1 when the date is unknown.
414
414
* @return the header value
415
+ * @deprecated use {@link #getIfModifiedSince()}
415
416
*/
417
+ @ Deprecated
416
418
public long getIfNotModifiedSince () {
419
+ return getIfModifiedSince ();
420
+ }
421
+
422
+ /**
423
+ * Returns the value of the {@code If-Modified-Since} header.
424
+ * <p>The date is returned as the number of milliseconds since January 1, 1970 GMT. Returns -1 when the date is unknown.
425
+ * @return the header value
426
+ */
427
+ public long getIfModifiedSince () {
417
428
return getFirstDate (IF_MODIFIED_SINCE );
418
429
}
419
430
You can’t perform that action at this time.
0 commit comments