Spring Framework SmartView - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Spring Framework SmartView class.

This code example shows how to use the following methods:isRedirectView
		} 
		else if (returnValue instanceof View){
			View view = (View) returnValue;
			mavContainer.setView(view);
			if (view instanceof SmartView) {
				if (((SmartView) view).isRedirectView()) {
					mavContainer.setRedirectModelScenario(true);
				} 
			} 
		} 
		else { 
			// should not happen 
			throw new UnsupportedOperationException("Unexpected return type: " +
					returnType.getParameterType().getName() + " in method: " + returnType.getMethod());
		} 
	} 
 
} 
6
CodeRank
This code example shows how to use the following methods:isRedirectView
		} 
		else { 
			View view = mav.getView();
			mavContainer.setView(view);
			if (view instanceof SmartView) {
				if (((SmartView) view).isRedirectView()) {
					mavContainer.setRedirectModelScenario(true);
				} 
			} 
		} 
		mavContainer.addAllAttributes(mav.getModel());
	} 
 
	/** 
	 * Whether the given view name is a redirect view reference. 
	 * The default implementation checks the configured redirect patterns and 
	 * also if the view name starts with the "redirect:" prefix. 
	 * @param viewName the view name to check, never {@code null} 
	 * @return "true" if the given view name is recognized as a redirect view 
	 * reference; "false" otherwise. 
6
CodeRank
See Code Examples for Spring Framework SmartView Methods: