|
JSF-Spring | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.springframework.web.servlet.HttpServletBean
org.springframework.web.servlet.FrameworkServlet
org.springframework.web.servlet.DispatcherServlet
de.mindmatters.faces.spring.context.servlet.FacesDispatcherServlet
public class FacesDispatcherServlet
Central dispatcher which integrates Spring's MVC framework to the faces lifecycle. For further information please have a look at the Spring docs.
| Nested Class Summary | |
|---|---|
static class |
FacesDispatcherServlet.DefaultApplicationContext
Default ApplicationContext for the
FacesDispatcherServlet. |
| Field Summary |
|---|
| 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 | |
|---|---|
FacesDispatcherServlet()
Standard Constructor. |
|
| Method Summary | |
|---|---|
protected HandlerAdapter |
getHandlerAdapter(java.lang.Object handler)
Return the HandlerAdapter for this handler object. |
protected void |
initDispatcherServlet()
This method will be invoked after any bean properties have been set and the WebApplicationContext has been loaded. |
protected void |
initFrameworkServlet()
Overridden method, invoked after any bean properties have been set and the WebApplicationContext and BeanFactory for this namespace is available. |
protected WebApplicationContext |
initWebApplicationContext()
Initialize and publish the WebApplicationContext for this servlet. |
protected ModelAndView |
processHandlerException(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.Object handler,
java.lang.Exception ex)
Determine an error ModelAndView via the registered HandlerExceptionResolvers. |
void |
service(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response)
|
| Methods inherited from class org.springframework.web.servlet.DispatcherServlet |
|---|
checkMultipart, createDefaultStrategy, doDispatch, doService, getDefaultStrategies, getDefaultStrategy, getDefaultViewName, getHandler, getLastModified, getThemeSource, noHandlerFound, render, resolveViewName, setCleanupAfterInclude, setDetectAllHandlerAdapters, setDetectAllHandlerExceptionResolvers, setDetectAllHandlerMappings, setDetectAllViewResolvers |
| Methods inherited from class org.springframework.web.servlet.FrameworkServlet |
|---|
createWebApplicationContext, destroy, doDelete, doGet, doPost, doPut, getContextClass, getContextConfigLocation, getNamespace, getServletContextAttributeName, getUsernameForRequest, getWebApplicationContext, initServletBean, isPublishContext, isPublishEvents, processRequest, setContextClass, setContextConfigLocation, 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, doOptions, doTrace, 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 |
|---|
public FacesDispatcherServlet()
| Method Detail |
|---|
protected WebApplicationContext initWebApplicationContext()
initWebApplicationContext in class FrameworkServletFrameworkServlet.createWebApplicationContext(org.springframework.web.context.WebApplicationContext)
public final void service(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
service in interface javax.servlet.Servletservice in class javax.servlet.http.HttpServletjavax.servlet.ServletException
java.io.IOException
protected final void initFrameworkServlet()
throws javax.servlet.ServletException
Loads HandlerMapping and HandlerAdapter objects, and configures a ViewResolver and a LocaleResolver.
initFrameworkServlet in class DispatcherServletjavax.servlet.ServletException - in case of an initialization exception
protected void initDispatcherServlet()
throws javax.servlet.ServletException
javax.servlet.ServletException - in case of an initialization exception
BeansException - if thrown by ApplicationContext methods
protected final HandlerAdapter getHandlerAdapter(java.lang.Object handler)
throws javax.servlet.ServletException
getHandlerAdapter in class DispatcherServlethandler - the handler object to find an adapter for
javax.servlet.ServletException - if no HandlerAdapter can be found for the handler.
This is a fatal error.
protected final ModelAndView processHandlerException(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.Object handler,
java.lang.Exception ex)
throws java.lang.Exception
processHandlerException in class DispatcherServletrequest - current HTTP requestresponse - current HTTP responsehandler - the executed handler, or null if none chosen at the time of
the exception (for example, if multipart resolution failed)ex - the exception that got thrown during handler execution
java.lang.Exception - if no error ModelAndView found
|
JSF-Spring | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||