info.magnolia.module.blossom.preexecution
Class DefaultDirectRenderingVoter

java.lang.Object
  extended by info.magnolia.module.blossom.preexecution.DefaultDirectRenderingVoter
All Implemented Interfaces:
DirectRenderingVoter

public class DefaultDirectRenderingVoter
extends Object
implements DirectRenderingVoter

Default implementation of DirectRenderingVoter that considers only redirects to be eligible for direct rendering.

Since:
0.5

Constructor Summary
DefaultDirectRenderingVoter()
           
 
Method Summary
 boolean renderDirectly(org.springframework.web.servlet.ModelAndView mv, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Returns true if this ModelAndView should be rendered directly during pre-execution rather than being put aside and rendered into the page.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultDirectRenderingVoter

public DefaultDirectRenderingVoter()
Method Detail

renderDirectly

public boolean renderDirectly(org.springframework.web.servlet.ModelAndView mv,
                              javax.servlet.http.HttpServletRequest request,
                              javax.servlet.http.HttpServletResponse response)
                       throws Exception
Description copied from interface: DirectRenderingVoter
Returns true if this ModelAndView should be rendered directly during pre-execution rather than being put aside and rendered into the page.

Specified by:
renderDirectly in interface DirectRenderingVoter
Throws:
Exception


Copyright © 2009-2012 Magnolia International Ltd.. All Rights Reserved.