Spring Framework VelocityLayoutView - 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 VelocityLayoutView class.

This code example shows how to use the following methods:
 
/** 
 *  
 *  
 */ 
public class CustomVelocityLayoutView extends VelocityLayoutView { 
 
    private final Logger logger = LoggerFactory.getLogger(getClass()); 
 
    @Override 
    protected void mergeTemplate(Template template, Context context, HttpServletResponse response) throws Exception { 
        try { 
            EhCacheCacheManager ehCacheCacheManager = (EhCacheCacheManager) getAttributesMap().get("ehCacheCacheManager"); 
            CacheManager cacheManager = ehCacheCacheManager.getCacheManager(); 
            String cacheName = (String) getAttributesMap().get("cacheName"); 
            Cache cache = cacheManager != null && StringUtils.isNotEmpty(cacheName) ? cacheManager.getCache(cacheName) : null; 
 
            HttpServletRequest request = ((ChainedContext) context).getRequest(); 
            boolean isGet = StringUtils.equals("GET", request.getMethod()); 
 
3
CodeRank
Connect your IDE to all the code out there  Get Codota for Java