|
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.FacesControllerHandlerAdapter
public final class FacesControllerHandlerAdapter
Adapter to use the FacesController
workflow class with the generic
FacesDispatcherServlet
.
This is an SPI class, not used directly by application code. It's already enabled on deployment of jsf-spring.jar.
Constructor Summary | |
---|---|
FacesControllerHandlerAdapter()
|
Method Summary | |
---|---|
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 |
Constructor Detail |
---|
public FacesControllerHandlerAdapter()
Method Detail |
---|
public boolean supports(java.lang.Object handler)
A typical implementation:
return (handler instanceof MyHandler);
supports
in interface HandlerAdapter
handler
- handler object to check
public 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 |