| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.struts.action.RequestProcessor
org.apache.struts.faces.application.FacesRequestProcessor
public class FacesRequestProcessor
Concrete implementation of RequestProcessor that
 implements the standard Struts request processing lifecycle on a
 request that was received as an ActionEvent by our
 associated ActionListener.  It replaces the request processor
 instance normally configured by Struts, so it must support non-Faces
 requests as well.
| Field Summary | |
|---|---|
| static String | LIFECYCLE_ID_ATTRThe lifecycle id. | 
| protected static Log | logThe log instance for this class. | 
| Fields inherited from class org.apache.struts.action.RequestProcessor | 
|---|
| actions, INCLUDE_PATH_INFO, INCLUDE_SERVLET_PATH, moduleConfig, servlet | 
| Constructor Summary | |
|---|---|
| FacesRequestProcessor() | |
| Method Summary | |
|---|---|
| protected  void | doForward(String uri,
          HttpServletRequest request,
          HttpServletResponse response)Set up a Faces Request if we are not already processing one. | 
| protected  Action | processActionCreate(HttpServletRequest request,
                    HttpServletResponse response,
                    ActionMapping mapping) | 
| protected  ActionForm | processActionForm(HttpServletRequest request,
                  HttpServletResponse response,
                  ActionMapping mapping) | 
| protected  ActionForward | processActionPerform(HttpServletRequest request,
                     HttpServletResponse response,
                     Action action,
                     ActionForm form,
                     ActionMapping mapping) | 
| protected  boolean | processForward(HttpServletRequest request,
               HttpServletResponse response,
               ActionMapping mapping) | 
| protected  void | processForwardConfig(HttpServletRequest request,
                     HttpServletResponse response,
                     ForwardConfig forward) | 
| protected  boolean | processInclude(HttpServletRequest request,
               HttpServletResponse response,
               ActionMapping mapping) | 
| protected  String | processPath(HttpServletRequest request,
            HttpServletResponse response)Identify and return the path component (from the request URI for a non-Faces request, or from the form event for a Faces request) that we will use to select an ActionMapping to dispatch with. | 
| protected  void | processPopulate(HttpServletRequest request,
                HttpServletResponse response,
                ActionForm form,
                ActionMapping mapping)Populate the properties of the specified ActionForminstance from the request parameters included with this request,
 IF this is a non-Faces request. | 
| protected  boolean | processValidate(HttpServletRequest request,
                HttpServletResponse response,
                ActionForm form,
                ActionMapping mapping) | 
| Methods inherited from class org.apache.struts.action.RequestProcessor | 
|---|
| destroy, doInclude, getInternal, getServletContext, init, internalModuleRelativeForward, internalModuleRelativeInclude, process, processCachedMessages, processContent, processException, processLocale, processMapping, processMultipart, processNoCache, processPreprocess, processRoles | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected static Log log
The log instance for this class.
public static final String LIFECYCLE_ID_ATTR
The lifecycle id.
| Constructor Detail | 
|---|
public FacesRequestProcessor()
| Method Detail | 
|---|
protected void doForward(String uri,
                         HttpServletRequest request,
                         HttpServletResponse response)
                  throws IOException,
                         ServletException
Set up a Faces Request if we are not already processing one.  Next,
 create a new view if the specified uri is different from
 the current view identifier.  Finally, cause the new view to be
 rendered, and call FacesContext.responseComplete() to
 indicate that this has already been done.
doForward in class RequestProcessoruri - Context-relative path to forward torequest - Current page requestresponse - Current page response
IOException - if an input/output error occurs
ServletException - if a servlet error occurs
protected Action processActionCreate(HttpServletRequest request,
                                     HttpServletResponse response,
                                     ActionMapping mapping)
                              throws IOException
processActionCreate in class RequestProcessorIOException
protected ActionForm processActionForm(HttpServletRequest request,
                                       HttpServletResponse response,
                                       ActionMapping mapping)
processActionForm in class RequestProcessor
protected ActionForward processActionPerform(HttpServletRequest request,
                                             HttpServletResponse response,
                                             Action action,
                                             ActionForm form,
                                             ActionMapping mapping)
                                      throws IOException,
                                             ServletException
processActionPerform in class RequestProcessorIOException
ServletException
protected boolean processForward(HttpServletRequest request,
                                 HttpServletResponse response,
                                 ActionMapping mapping)
                          throws IOException,
                                 ServletException
processForward in class RequestProcessorIOException
ServletException
protected void processForwardConfig(HttpServletRequest request,
                                    HttpServletResponse response,
                                    ForwardConfig forward)
                             throws IOException,
                                    ServletException
processForwardConfig in class RequestProcessorIOException
ServletException
protected boolean processInclude(HttpServletRequest request,
                                 HttpServletResponse response,
                                 ActionMapping mapping)
                          throws IOException,
                                 ServletException
processInclude in class RequestProcessorIOException
ServletException
protected String processPath(HttpServletRequest request,
                             HttpServletResponse response)
                      throws IOException
Identify and return the path component (from the request URI for a
 non-Faces request, or from the form event for a Faces request)
 that we will use to select an ActionMapping to dispatch with.
 If no such path can be identified, create an error response and return
 null.
processPath in class RequestProcessorrequest - The servlet request we are processingresponse - The servlet response we are creating
IOException - if an input/output error occurs
protected void processPopulate(HttpServletRequest request,
                               HttpServletResponse response,
                               ActionForm form,
                               ActionMapping mapping)
                        throws ServletException
Populate the properties of the specified ActionForm
 instance from the request parameters included with this request,
 IF this is a non-Faces request.  For a Faces request,
 this will have already been done by the Update Model Values
 phase of the request processing lifecycle, so all we have to do is
 recognize whether the request was cancelled or not.
processPopulate in class RequestProcessorrequest - The servlet request we are processingresponse - The servlet response we are creatingform - The ActionForm instance we are populatingmapping - The ActionMapping we are using
ServletException - if thrown by RequestUtils.populate()
protected boolean processValidate(HttpServletRequest request,
                                  HttpServletResponse response,
                                  ActionForm form,
                                  ActionMapping mapping)
                           throws IOException,
                                  ServletException,
                                  InvalidCancelException
processValidate in class RequestProcessorIOException
ServletException
InvalidCancelException| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||