info.magnolia.module.blossom.preexecution
Class BlossomHandlerMapping

java.lang.Object
  extended by info.magnolia.module.blossom.preexecution.BlossomHandlerMapping
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware, org.springframework.web.servlet.HandlerMapping

public class BlossomHandlerMapping
extends Object
implements org.springframework.web.servlet.HandlerMapping, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware

Detects pre-execution requests and decorates handlers in order to either grab the returned ModelAndView or render one that was previously returned and now should be rendered.

Since:
0.5

Field Summary
 
Fields inherited from interface org.springframework.web.servlet.HandlerMapping
PATH_WITHIN_HANDLER_MAPPING_ATTRIBUTE
 
Constructor Summary
BlossomHandlerMapping()
           
 
Method Summary
 void afterPropertiesSet()
           
 DirectRenderingVoter getDirectRenderingPolicy()
           
 org.springframework.web.servlet.HandlerExecutionChain getHandler(javax.servlet.http.HttpServletRequest request)
           
 org.springframework.web.servlet.handler.AbstractUrlHandlerMapping[] getTargetHandlerMappings()
           
 void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
           
 void setDirectRenderingPolicy(DirectRenderingVoter directRenderingVoter)
           
 void setTargetHandlerMapping(org.springframework.web.servlet.handler.AbstractUrlHandlerMapping targetHandlerMapping)
           
 void setTargetHandlerMappings(org.springframework.web.servlet.handler.AbstractUrlHandlerMapping[] targetHandlerMappings)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlossomHandlerMapping

public BlossomHandlerMapping()
Method Detail

getTargetHandlerMappings

public org.springframework.web.servlet.handler.AbstractUrlHandlerMapping[] getTargetHandlerMappings()

setTargetHandlerMapping

public void setTargetHandlerMapping(org.springframework.web.servlet.handler.AbstractUrlHandlerMapping targetHandlerMapping)

setTargetHandlerMappings

public void setTargetHandlerMappings(org.springframework.web.servlet.handler.AbstractUrlHandlerMapping[] targetHandlerMappings)

getDirectRenderingPolicy

public DirectRenderingVoter getDirectRenderingPolicy()

setDirectRenderingPolicy

public void setDirectRenderingPolicy(DirectRenderingVoter directRenderingVoter)

getHandler

public org.springframework.web.servlet.HandlerExecutionChain getHandler(javax.servlet.http.HttpServletRequest request)
                                                                 throws Exception
Specified by:
getHandler in interface org.springframework.web.servlet.HandlerMapping
Throws:
Exception

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
Exception

setApplicationContext

public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
                           throws org.springframework.beans.BeansException
Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware
Throws:
org.springframework.beans.BeansException


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