info.magnolia.module.blossom.render
Class BlossomDispatcherServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.springframework.web.servlet.HttpServletBean
              extended by org.springframework.web.servlet.FrameworkServlet
                  extended by org.springframework.web.servlet.DispatcherServlet
                      extended by info.magnolia.module.blossom.render.BlossomDispatcherServlet
All Implemented Interfaces:
BlossomDispatcher, Serializable, EventListener, javax.servlet.Servlet, javax.servlet.ServletConfig, org.springframework.beans.factory.config.BeanFactoryPostProcessor, org.springframework.context.ApplicationListener

public class BlossomDispatcherServlet
extends org.springframework.web.servlet.DispatcherServlet
implements BlossomDispatcher, org.springframework.beans.factory.config.BeanFactoryPostProcessor

Specialization of DispatcherServlet that detects templates, paragraphs and dialogs factories and expose functionality for rendering and pre-execution.

Since:
0.5
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.springframework.web.servlet.DispatcherServlet
HANDLER_ADAPTER_BEAN_NAME, HANDLER_EXCEPTION_RESOLVER_BEAN_NAME, HANDLER_EXECUTION_CHAIN_ATTRIBUTE, HANDLER_MAPPING_BEAN_NAME, LOCALE_RESOLVER_ATTRIBUTE, LOCALE_RESOLVER_BEAN_NAME, MULTIPART_RESOLVER_BEAN_NAME, PAGE_NOT_FOUND_LOG_CATEGORY, pageNotFoundLogger, REQUEST_TO_VIEW_NAME_TRANSLATOR_BEAN_NAME, THEME_RESOLVER_ATTRIBUTE, THEME_RESOLVER_BEAN_NAME, THEME_SOURCE_ATTRIBUTE, VIEW_RESOLVER_BEAN_NAME, WEB_APPLICATION_CONTEXT_ATTRIBUTE
 
Fields inherited from class org.springframework.web.servlet.FrameworkServlet
DEFAULT_CONTEXT_CLASS, DEFAULT_NAMESPACE_SUFFIX, SERVLET_CONTEXT_PREFIX
 
Fields inherited from class org.springframework.web.servlet.HttpServletBean
logger
 
Constructor Summary
BlossomDispatcherServlet()
           
 
Method Summary
 void forward(String path, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
protected  Object getDefaultStrategy(org.springframework.context.ApplicationContext context, Class strategyInterface)
           
 org.springframework.web.servlet.HandlerAdapter getHandlerAdapter(Object handler)
           
 void include(String path, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
protected  org.springframework.web.context.WebApplicationContext initWebApplicationContext()
           
 void postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
           
protected  void postProcessWebApplicationContext(org.springframework.web.context.ConfigurableWebApplicationContext wac)
           
 
Methods inherited from class org.springframework.web.servlet.DispatcherServlet
buildLocaleContext, checkMultipart, cleanupMultipart, createDefaultStrategy, doDispatch, doService, getDefaultStrategies, getDefaultViewName, getHandler, getLastModified, getMultipartResolver, getThemeSource, initStrategies, noHandlerFound, onRefresh, processHandlerException, render, resolveViewName, setCleanupAfterInclude, setDetectAllHandlerAdapters, setDetectAllHandlerExceptionResolvers, setDetectAllHandlerMappings, setDetectAllViewResolvers, setThreadContextInheritable
 
Methods inherited from class org.springframework.web.servlet.FrameworkServlet
createWebApplicationContext, destroy, doDelete, doGet, doOptions, doPost, doPut, doTrace, findWebApplicationContext, getContextAttribute, getContextClass, getContextConfigLocation, getNamespace, getServletContextAttributeName, getUsernameForRequest, getWebApplicationContext, initFrameworkServlet, initServletBean, onApplicationEvent, processRequest, refresh, setContextAttribute, setContextClass, setContextConfigLocation, setDispatchOptionsRequest, setDispatchTraceRequest, setNamespace, setPublishContext, setPublishEvents
 
Methods inherited from class org.springframework.web.servlet.HttpServletBean
addRequiredProperty, getServletContext, getServletName, init, initBeanWrapper
 
Methods inherited from class javax.servlet.http.HttpServlet
doHead, service, service
 
Methods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletInfo, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlossomDispatcherServlet

public BlossomDispatcherServlet()
Method Detail

getDefaultStrategy

protected Object getDefaultStrategy(org.springframework.context.ApplicationContext context,
                                    Class strategyInterface)
                             throws org.springframework.beans.BeansException
Overrides:
getDefaultStrategy in class org.springframework.web.servlet.DispatcherServlet
Throws:
org.springframework.beans.BeansException

postProcessWebApplicationContext

protected void postProcessWebApplicationContext(org.springframework.web.context.ConfigurableWebApplicationContext wac)
Overrides:
postProcessWebApplicationContext in class org.springframework.web.servlet.FrameworkServlet

postProcessBeanFactory

public void postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
                            throws org.springframework.beans.BeansException
Specified by:
postProcessBeanFactory in interface org.springframework.beans.factory.config.BeanFactoryPostProcessor
Throws:
org.springframework.beans.BeansException

initWebApplicationContext

protected org.springframework.web.context.WebApplicationContext initWebApplicationContext()
                                                                                   throws org.springframework.beans.BeansException
Overrides:
initWebApplicationContext in class org.springframework.web.servlet.FrameworkServlet
Throws:
org.springframework.beans.BeansException

getHandlerAdapter

public org.springframework.web.servlet.HandlerAdapter getHandlerAdapter(Object handler)
                                                                 throws javax.servlet.ServletException
Specified by:
getHandlerAdapter in interface BlossomDispatcher
Overrides:
getHandlerAdapter in class org.springframework.web.servlet.DispatcherServlet
Throws:
javax.servlet.ServletException

forward

public void forward(String path,
                    javax.servlet.http.HttpServletRequest request,
                    javax.servlet.http.HttpServletResponse response)
             throws javax.servlet.ServletException,
                    IOException
Specified by:
forward in interface BlossomDispatcher
Throws:
javax.servlet.ServletException
IOException

include

public void include(String path,
                    javax.servlet.http.HttpServletRequest request,
                    javax.servlet.http.HttpServletResponse response)
             throws javax.servlet.ServletException,
                    IOException
Specified by:
include in interface BlossomDispatcher
Throws:
javax.servlet.ServletException
IOException


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