| java.lang.Object org.apache.struts.action.RequestProcessor org.apache.struts.faces.application.FacesRequestProcessor
FacesRequestProcessor | public class FacesRequestProcessor extends RequestProcessor (Code) | | 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.
version: $Rev: 473326 $ $Date: 2006-11-10 06:58:06 -0600 (Fri, 10 Nov 2006) $ |
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 ActionForm
instance 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) |
LIFECYCLE_ID_ATTR | final public static String LIFECYCLE_ID_ATTR(Code) | | The lifecycle id.
|
log | protected static Log log(Code) | | The log instance for this class.
|
doForward | protected void doForward(String uri, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException(Code) | | 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.
Parameters: uri - Context-relative path to forward to Parameters: request - Current page request Parameters: response - Current page response exception: IOException - if an input/output error occurs exception: ServletException - if a servlet error occurs |
processPath | protected String processPath(HttpServletRequest request, HttpServletResponse response) throws IOException(Code) | | 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 .
Parameters: request - The servlet request we are processing Parameters: response - The servlet response we are creating exception: IOException - if an input/output error occurs |
processPopulate | protected void processPopulate(HttpServletRequest request, HttpServletResponse response, ActionForm form, ActionMapping mapping) throws ServletException(Code) | | 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.
Parameters: request - The servlet request we are processing Parameters: response - The servlet response we are creating Parameters: form - The ActionForm instance we are populating Parameters: mapping - The ActionMapping we are using exception: ServletException - if thrown by RequestUtils.populate() |
Methods inherited from org.apache.struts.action.RequestProcessor | public void destroy()(Code)(Java Doc) protected void doForward(String uri, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException(Code)(Java Doc) protected void doInclude(String uri, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException(Code)(Java Doc) protected MessageResources getInternal()(Code)(Java Doc) protected ServletContext getServletContext()(Code)(Java Doc) public void init(ActionServlet servlet, ModuleConfig moduleConfig) throws ServletException(Code)(Java Doc) protected void internalModuleRelativeForward(String uri, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException(Code)(Java Doc) protected void internalModuleRelativeInclude(String uri, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException(Code)(Java Doc) public void process(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException(Code)(Java Doc) protected Action processActionCreate(HttpServletRequest request, HttpServletResponse response, ActionMapping mapping) throws IOException(Code)(Java Doc) protected ActionForm processActionForm(HttpServletRequest request, HttpServletResponse response, ActionMapping mapping)(Code)(Java Doc) protected ActionForward processActionPerform(HttpServletRequest request, HttpServletResponse response, Action action, ActionForm form, ActionMapping mapping) throws IOException, ServletException(Code)(Java Doc) protected void processCachedMessages(HttpServletRequest request, HttpServletResponse response)(Code)(Java Doc) protected void processContent(HttpServletRequest request, HttpServletResponse response)(Code)(Java Doc) protected ActionForward processException(HttpServletRequest request, HttpServletResponse response, Exception exception, ActionForm form, ActionMapping mapping) throws IOException, ServletException(Code)(Java Doc) protected boolean processForward(HttpServletRequest request, HttpServletResponse response, ActionMapping mapping) throws IOException, ServletException(Code)(Java Doc) protected void processForwardConfig(HttpServletRequest request, HttpServletResponse response, ForwardConfig forward) throws IOException, ServletException(Code)(Java Doc) protected boolean processInclude(HttpServletRequest request, HttpServletResponse response, ActionMapping mapping) throws IOException, ServletException(Code)(Java Doc) protected void processLocale(HttpServletRequest request, HttpServletResponse response)(Code)(Java Doc) protected ActionMapping processMapping(HttpServletRequest request, HttpServletResponse response, String path) throws IOException(Code)(Java Doc) protected HttpServletRequest processMultipart(HttpServletRequest request)(Code)(Java Doc) protected void processNoCache(HttpServletRequest request, HttpServletResponse response)(Code)(Java Doc) protected String processPath(HttpServletRequest request, HttpServletResponse response) throws IOException(Code)(Java Doc) protected void processPopulate(HttpServletRequest request, HttpServletResponse response, ActionForm form, ActionMapping mapping) throws ServletException(Code)(Java Doc) protected boolean processPreprocess(HttpServletRequest request, HttpServletResponse response)(Code)(Java Doc) protected boolean processRoles(HttpServletRequest request, HttpServletResponse response, ActionMapping mapping) throws IOException, ServletException(Code)(Java Doc) protected boolean processValidate(HttpServletRequest request, HttpServletResponse response, ActionForm form, ActionMapping mapping) throws IOException, ServletException, InvalidCancelException(Code)(Java Doc)
|
|
|