Class ModelAndJsonView

java.lang.Object
ch.ralscha.extdirectspring.bean.JsonViewHint
ch.ralscha.extdirectspring.bean.ModelAndJsonView

public class ModelAndJsonView extends JsonViewHint
A ExtDirectMethod can return an instance of this class to specify a JsonView that Jackson uses to serialize the response. Not supported for ExtDirectMethodType.FORM_POST.

If the property jsonView is set it overrides a jsonView specified on ExtDirectMethod.jsonView().

To disable a JsonView specified on ExtDirectMethod.jsonView() set the property jsonView to ExtDirectMethod.NoJsonView.

  • Field Details

  • Constructor Details

    • ModelAndJsonView

      public ModelAndJsonView()
    • ModelAndJsonView

      public ModelAndJsonView(Object model, Class<?> jsonView)
  • Method Details

    • getModel

      public Object getModel()
    • setModel

      public void setModel(Object model)