Browse Source

SPR-7070 - MappingJacksonJsonView.renderedAttributes to be made visible to subclasses

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3232 50f2f4bb-b051-0410-bef5-90022cba6387
pull/1/head
Arjen Poutsma 16 years ago
parent
commit
84f9329c3f
  1. 7
      org.springframework.web.servlet/src/main/java/org/springframework/web/servlet/view/json/MappingJacksonJsonView.java

7
org.springframework.web.servlet/src/main/java/org/springframework/web/servlet/view/json/MappingJacksonJsonView.java

@ -103,6 +103,13 @@ public class MappingJacksonJsonView extends AbstractView { @@ -103,6 +103,13 @@ public class MappingJacksonJsonView extends AbstractView {
this.prefixJson = prefixJson;
}
/**
* Returns the attributes in the model that should be rendered by this view.
*/
public Set<String> getRenderedAttributes() {
return renderedAttributes;
}
/**
* Sets the attributes in the model that should be rendered by this view. When set, all other model attributes will be
* ignored.

Loading…
Cancel
Save