Browse Source

exposed public getModel accessor (SPR-5686)

pull/23217/head
Juergen Hoeller 17 years ago
parent
commit
c230c188be
  1. 12
      org.springframework.web.servlet/src/main/java/org/springframework/web/servlet/support/RequestContext.java

12
org.springframework.web.servlet/src/main/java/org/springframework/web/servlet/support/RequestContext.java

@ -304,7 +304,15 @@ public class RequestContext { @@ -304,7 +304,15 @@ public class RequestContext {
}
/**
* Return the current locale.
* Return the model Map that this RequestContext encapsulates, if any.
* @return the populated model Map, or <code>null</code> if none available
*/
public final Map<String, Object> getModel() {
return this.model;
}
/**
* Return the current Locale (never <code>null</code>).
*/
public final Locale getLocale() {
return this.locale;
@ -312,7 +320,7 @@ public class RequestContext { @@ -312,7 +320,7 @@ public class RequestContext {
/**
* Return the current theme (never <code>null</code>).
* Resolved lazily for more efficiency when theme support is not used.
* <p>Resolved lazily for more efficiency when theme support is not being used.
*/
public final Theme getTheme() {
if (this.theme == null) {

Loading…
Cancel
Save