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.context.ApplicationListener

public class BlossomDispatcherServlet
extends org.springframework.web.servlet.DispatcherServlet
implements BlossomDispatcher

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  void onRefresh(org.springframework.context.ApplicationContext context)
           
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, 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, initWebApplicationContext, 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

onRefresh

protected void onRefresh(org.springframework.context.ApplicationContext context)
                  throws org.springframework.beans.BeansException
Overrides:
onRefresh in class org.springframework.web.servlet.DispatcherServlet
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-2011 Magnolia International Ltd.. All Rights Reserved.