|
JSF-Spring | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.mindmatters.faces.spring.context.servlet.LifecycleExecutor
public class LifecycleExecutor
HandlerAdapter
implementation that delegates it's
work to any given arbitrary HandlerAdapter and integrates it into the
workflow of the request processing of the underliying JSF implementation.
Lifecycle.execute(FacesContext)
Field Summary | |
---|---|
protected org.apache.commons.logging.Log |
log
For logging. |
Constructor Summary | |
---|---|
LifecycleExecutor(HandlerAdapter internalHandlerAdapter)
Creates a LifecycleExecutor with the given internal HandlerAdapter internalHandlerAdapter . |
|
LifecycleExecutor(HandlerAdapter internalHandlerAdapter,
java.lang.String lifecycleId)
Creates a LifecycleExecutor with the given internal HandlerAdapter internalHandlerAdapter . |
Method Summary | |
---|---|
protected static void |
bindHandler(FacesContext context,
java.lang.Object handler)
Associate the given Handler with the current thread. |
static java.lang.Object |
getHandler(FacesContext context)
Returns the current Handler from the current thread. |
long |
getLastModified(javax.servlet.http.HttpServletRequest request,
java.lang.Object handler)
Same contract as for HttpServlet's getLastModified method. |
ModelAndView |
handle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.Object handler)
Use the given handler to handle this request. |
boolean |
supports(java.lang.Object handler)
Given a handler instance, return whether or not this HandlerAdapter can support it. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final org.apache.commons.logging.Log log
Constructor Detail |
---|
public LifecycleExecutor(HandlerAdapter internalHandlerAdapter)
HandlerAdapter
internalHandlerAdapter
.
internalHandlerAdapter
- The arbitrary HandlerAdapter which is decorated an integrated
in the faces lifecyclepublic LifecycleExecutor(HandlerAdapter internalHandlerAdapter, java.lang.String lifecycleId)
HandlerAdapter
internalHandlerAdapter
.
internalHandlerAdapter
- The arbitrary HandlerAdapter which is decorated an integrated
in the faces lifecyclelifecycleId
- the lifecycle id for identifying the proper lifecycle this
adapter will use for integration purposesMethod Detail |
---|
protected static void bindHandler(FacesContext context, java.lang.Object handler)
context
- FacesContext
for the current requesthandler
- the current Handlerpublic static java.lang.Object getHandler(FacesContext context)
context
- FacesContext
for the current request
public final boolean supports(java.lang.Object handler)
A typical implementation:
return (handler instanceof MyHandler);
supports
in interface HandlerAdapter
handler
- handler object to check
public final long getLastModified(javax.servlet.http.HttpServletRequest request, java.lang.Object handler)
getLastModified
method.
Can simply return -1 if there's no support in the handler class.
getLastModified
in interface HandlerAdapter
request
- current HTTP requesthandler
- handler to use
HttpServlet.getLastModified(javax.servlet.http.HttpServletRequest)
,
LastModified.getLastModified(javax.servlet.http.HttpServletRequest)
public ModelAndView handle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.Object handler) throws java.lang.Exception
handle
in interface HandlerAdapter
request
- current HTTP requestresponse
- current HTTP responsehandler
- handler to use. This object must have previously been passed
to the supports
method of this interface, which must have
returned true
.
null
if the request has been handled directly
java.lang.Exception
- in case of errors
|
JSF-Spring | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |