Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.github.edgarespina.mwa.view;
 
 
 
Provide additional models attributes to a view.

Author(s):
edgar.espina
Since:
0.1.0
public interface ModelContribution {

  
Store the view's name in the model.
  String VIEW = "viewName";

  
Store the context path variable in the model.
  String CONTEXT_PATH = "contextPath";

  
Add new model attributes to the view.

Parameters:
request The HTTP request.
response The HTTP response.
modelAndView The org.springframework.web.servlet.ModelAndView.
Throws:
java.io.IOException If something goes wrong.
  void contribute(HttpServletRequest requestHttpServletResponse response,
      ModelAndView modelAndViewthrows IOException;

  
Turn on/off the cache. In 'dev' the cache is off.

Parameters:
cache True for turning on the cache.
  void setUseCache(boolean cache);
New to GrepCode? Check out our FAQ X