File tree 1 file changed +10
-2
lines changed
org.springframework.web.servlet/src/main/java/org/springframework/web/servlet/support
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -304,15 +304,23 @@ public final MessageSource getMessageSource() {
304
304
}
305
305
306
306
/**
307
- * Return the current locale.
307
+ * Return the model Map that this RequestContext encapsulates, if any.
308
+ * @return the populated model Map, or <code>null</code> if none available
309
+ */
310
+ public final Map <String , Object > getModel () {
311
+ return this .model ;
312
+ }
313
+
314
+ /**
315
+ * Return the current Locale (never <code>null</code>).
308
316
*/
309
317
public final Locale getLocale () {
310
318
return this .locale ;
311
319
}
312
320
313
321
/**
314
322
* Return the current theme (never <code>null</code>).
315
- * Resolved lazily for more efficiency when theme support is not used.
323
+ * <p> Resolved lazily for more efficiency when theme support is not being used.
316
324
*/
317
325
public final Theme getTheme () {
318
326
if (this .theme == null ) {
You can’t perform that action at this time.
0 commit comments