|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.springframework.context.support.ApplicationObjectSupport
org.springframework.web.context.support.WebApplicationObjectSupport
org.springframework.web.servlet.support.WebContentGenerator
org.springframework.web.servlet.mvc.AbstractController
de.mindmatters.faces.spring.context.servlet.AbstractFacesController
de.mindmatters.faces.spring.context.servlet.FacesLifecycleController
FacesLifecycleController is a Controller that manages the request processing lifecycle for web applications that are utilizing JavaServer Faces to construct the user interface.
This Controller is an appropriate alternative for the FacesServlet.
| name | default | description |
|---|---|---|
| phaseListeners | null |
a list of PhaseListeners used by the
lifecycle this controller runs in |
FacesServlet| Field Summary | |
static java.lang.String |
APPLICATION_ATTRIBUTE
Request attribute to hold current JSF Application instance. |
static java.lang.String |
LIFECYCLE_ATTRIBUTE
Request attribute to hold current JSF lifecycle. |
| Fields inherited from class de.mindmatters.faces.spring.context.servlet.AbstractFacesController |
log |
| Fields inherited from class org.springframework.web.servlet.support.WebContentGenerator |
HEADER_CACHE_CONTROL, HEADER_EXPIRES, HEADER_PRAGMA, METHOD_GET, METHOD_HEAD, METHOD_POST |
| Fields inherited from class org.springframework.context.support.ApplicationObjectSupport |
logger |
| Constructor Summary | |
FacesLifecycleController()
|
|
| Method Summary | |
protected void |
addPhaseListener(PhaseListener listener)
Adds a PhaseListener listener to the lifecycle this
controller runs in. |
protected ModelAndView |
createModelAndView(FacesContext context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Creates an empty ModelAndView with a FacesInternalResourceView. |
protected Application |
getApplication()
|
protected PhaseListener[] |
getPhaseListeners()
|
protected ModelAndView |
handleRequestInternal(FacesContext context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Executes the faces lifecycle. |
protected void |
initFacesController()
Hook method for subclasses for initialization purposes. |
protected void |
initLifecycle()
Hook method for subclasses for initialization purposes. |
protected void |
removePhaseListener(PhaseListener listener)
Removes a PhaseListener listener from the lifecycle this
controller runs in. |
void |
setPhaseListeners(java.util.List phaseListeners)
Adds the given PhaseListeners phaseListeners to the
lifecycle this controller runs in. |
| Methods inherited from class de.mindmatters.faces.spring.context.servlet.AbstractFacesController |
afterPropertiesSet, doAfterExecution, doBeforeExecution, getLifecycle, handleRequestInternal, setLifecycleId, setServletContext |
| Methods inherited from class org.springframework.web.servlet.mvc.AbstractController |
handleRequest, isSynchronizeOnSession, setSynchronizeOnSession |
| Methods inherited from class org.springframework.web.servlet.support.WebContentGenerator |
applyCacheSeconds, applyCacheSeconds, cacheForSeconds, cacheForSeconds, checkAndPrepare, checkAndPrepare, getCacheSeconds, getSupportedMethods, isRequireSession, isUseCacheControlHeader, isUseExpiresHeader, preventCaching, setCacheSeconds, setRequireSession, setSupportedMethods, setUseCacheControlHeader, setUseExpiresHeader |
| Methods inherited from class org.springframework.web.context.support.WebApplicationObjectSupport |
getServletContext, getTempDir, getWebApplicationContext, isContextRequired |
| Methods inherited from class org.springframework.context.support.ApplicationObjectSupport |
getApplicationContext, getMessageSourceAccessor, initApplicationContext, requiredContextClass, setApplicationContext |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String APPLICATION_ATTRIBUTE
Application instance.
public static final java.lang.String LIFECYCLE_ATTRIBUTE
| Constructor Detail |
public FacesLifecycleController()
| Method Detail |
protected final void initFacesController()
initFacesController in class AbstractFacesControllerprotected void initLifecycle()
protected ModelAndView createModelAndView(FacesContext context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
NavigationHandler).
Subclasses can override this method.
context - current FacesContextrequest - current HTTP requestresponse - current HTTP response
protected final ModelAndView handleRequestInternal(FacesContext context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
handleRequestInternal in class AbstractFacesControllercontext - current FacesContextrequest - current HTTP requestresponse - current HTTP response
createModelAndView(FacesContext, HttpServletRequest,
HttpServletResponse)public final void setPhaseListeners(java.util.List phaseListeners)
phaseListeners to the
lifecycle this controller runs in.
phaseListeners - the listener to addprotected final void removePhaseListener(PhaseListener listener)
listener from the lifecycle this
controller runs in.
listener - the listener to removeprotected final void addPhaseListener(PhaseListener listener)
listener to the lifecycle this
controller runs in.
listener - the listener to addprotected final PhaseListener[] getPhaseListeners()
protected final Application getApplication()
Application instance
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||