📄 wprequestprocessor.html
字号:
<CODE>protected org.apache.struts.action.ActionMapping</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/ibm/portal/struts/portlet/WpRequestProcessor.html#processMapping(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)">processMapping</A></B>(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String path)</CODE><BR> Calls the super processMapping implementation.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected javax.servlet.http.HttpServletRequest</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/ibm/portal/struts/portlet/WpRequestProcessor.html#processMultipart(javax.servlet.http.HttpServletRequest)">processMultipart</A></B>(javax.servlet.http.HttpServletRequest request)</CODE><BR> If this is a multipart request, wrap it with a special wrapper.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/ibm/portal/struts/portlet/WpRequestProcessor.html#processNewActionUri(java.lang.String, javax.portlet.PortletRequest, javax.portlet.PortletResponse, javax.servlet.ServletContext)">processNewActionUri</A></B>(java.lang.String uri, javax.portlet.PortletRequest request, javax.portlet.PortletResponse response, javax.servlet.ServletContext servletContext)</CODE><BR> This method will implement the necessary steps to simulate a forward to a Struts Action.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/ibm/portal/struts/portlet/WpRequestProcessor.html#processNoCache(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)">processNoCache</A></B>(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)</CODE><BR> This method does not call the Struts Request Processor processNoCache implementation.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/ibm/portal/struts/portlet/WpRequestProcessor.html#processPopulate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, org.apache.struts.action.ActionForm, org.apache.struts.action.ActionMapping)">processPopulate</A></B>(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.apache.struts.action.ActionForm form, org.apache.struts.action.ActionMapping mapping)</CODE><BR> Calls the inherited processPopulate.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/ibm/portal/struts/portlet/WpRequestProcessor.html#processRoles(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, org.apache.struts.action.ActionMapping)">processRoles</A></B>(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.apache.struts.action.ActionMapping mapping)</CODE><BR> This method will call the super implementation for processing J2EE roles.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/ibm/portal/struts/portlet/WpRequestProcessor.html#processUri(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)">processUri</A></B>(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)</CODE><BR> Identify and return the path component from the request URI.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/ibm/portal/struts/portlet/WpRequestProcessor.html#setServletContext(javax.servlet.ServletContext)">setServletContext</A></B>(javax.servlet.ServletContext sContext)</CODE><BR> Set the servlet context</TD></TR></TABLE> <A NAME="methods_inherited_from_class_org.apache.struts.action.RequestProcessor"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class org.apache.struts.action.RequestProcessor</B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>destroy, getDebug, getInternal, internalModuleRelativeForward, internalModuleRelativeInclude, log, log, process, processActionCreate, processActionForm, processActionForward, processForward, processInclude, processLocale, processPath, processPreprocess, processValidate</CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="messages"><!-- --></A><H3>messages</H3><PRE>protected static org.apache.struts.util.MessageResources <B>messages</B></PRE><DL><DD>The message resources for the Struts Portlet Framework.<P><DL></DL></DL><HR><A NAME="log"><!-- --></A><H3>log</H3><PRE>protected static org.apache.commons.logging.Log <B>log</B></PRE><DL><DD>Commons Logging instance for this class<P><DL></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="WpRequestProcessor()"><!-- --></A><H3>WpRequestProcessor</H3><PRE>public <B>WpRequestProcessor</B>()</PRE><DL><DD>WpRequestProcessor constructor<P></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="processMultipart(javax.servlet.http.HttpServletRequest)"><!-- --></A><H3>processMultipart</H3><PRE>protected javax.servlet.http.HttpServletRequest <B>processMultipart</B>(javax.servlet.http.HttpServletRequest request)</PRE><DL><DD>If this is a multipart request, wrap it with a special wrapper. Otherwise, return the request unchanged.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>request</CODE> - The HttpServletRequest we are processing<DT><B>Returns:</B><DD>returns a wrapper request object if needed</DL></DD></DL><HR><A NAME="init(org.apache.struts.action.ActionServlet, org.apache.struts.config.ModuleConfig)"><!-- --></A><H3>init</H3><PRE>public void <B>init</B>(org.apache.struts.action.ActionServlet servlet, org.apache.struts.config.ModuleConfig moduleConfig) throws javax.servlet.ServletException</PRE><DL><DD>Initialize this request processor instance.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>servlet</CODE> - The ActionServlet we are associated with<DD><CODE>moduleConfig</CODE> - The ModuleConfig we are associated with.<DT><B>Throws:</B><DD><CODE>javax.servlet.ServletException</CODE> - If an error occor during initialization</DL></DD></DL><HR><A NAME="getModuleContext()"><!-- --></A><H3>getModuleContext</H3><PRE>protected <A HREF="../../../../../com/ibm/portal/struts/common/ModuleContext.html" title="class in com.ibm.portal.struts.common">ModuleContext</A> <B>getModuleContext</B>()</PRE><DL><DD>Return the module context object<P><DD><DL><DT><B>Returns:</B><DD>returns the module context</DL></DD></DL><HR><A NAME="processActionPerform(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, org.apache.struts.action.Action, org.apache.struts.action.ActionForm, org.apache.struts.action.ActionMapping)"><!-- --></A><H3>processActionPerform</H3><PRE>protected org.apache.struts.action.ActionForward <B>processActionPerform</B>(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.apache.struts.action.Action action, org.apache.struts.action.ActionForm form, org.apache.struts.action.ActionMapping mapping) throws java.io.IOException, javax.servlet.ServletException</PRE><DL><DD>Ask the specified <code>Action</code> instance to handle this request. Return the <code>ActionForward</code> instance (if any) returned by the called <code>Action</code> for further processing. This implementation will also check for the Portal friendly StrutsAction class and call the execute method with the portlet objects instead of the http servlet interfaces.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>request</CODE> - The servlet request we are processing<DD><CODE>response</CODE> - The servlet response we are creating<DD><CODE>action</CODE> - The Action instance to be used<DD><CODE>form</CODE> - The ActionForm instance to pass to this Action<DD><CODE>mapping</CODE> - The ActionMapping instance to pass to this Action<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if an input/output error occurs<DD><CODE>javax.servlet.ServletException</CODE> - if a servlet exception occurs</DL></DD></DL><HR><A NAME="processForwardConfig(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, org.apache.struts.config.ForwardConfig)"><!-- --></A><H3>processForwardConfig</H3><PRE>protected void <B>processForwardConfig</B>(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.apache.struts.config.ForwardConfig forward) throws java.io.IOException, javax.servlet.ServletException</PRE><DL><DD>This implementation will process the ForwardConfig and then call doFoward. Redirects are not supported, and instead are handled as a forward. The path is modified as necessary depending on the context relative setting and the path is then passed into doForward.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>request</CODE> - The servlet request we are processing<DD><CODE>response</CODE> - The servlet response we are creating<DD><CODE>forward</CODE> - The ActionForward controlling where we go next<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if an input/output error occurs<DD><CODE>javax.servlet.ServletException</CODE> - if a servlet exception occurs</DL></DD></DL><HR><A NAME="processException(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.Exception, org.apache.struts.action.ActionForm, org.apache.struts.action.ActionMapping)"><!-- --></A><H3>processException</H3><PRE>protected org.apache.struts.action.ActionForward <B>processException</B>(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.Exception exception, org.apache.struts.action.ActionForm form, org.apache.struts.action.ActionMapping mapping) throws java.io.IOException, javax.servlet.ServletException</PRE><DL><DD>This implementation calls the super implementation. If the exception is not handled and is a <code>WpsStrutsException</code> then response.sendError with the exception information is called.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>request</CODE> - The servlet request we are processing<DD><CODE>response</CODE> - The servlet response we are processing<DD><CODE>exception</CODE> - The exception being handled<DD><CODE>form</CODE> - The ActionForm we are processing<DD><CODE>mapping</CODE> - The ActionMapping we are using<DT><B>Returns:</B><DD>returns the ActionForward, can be <code>null</code><DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if an input/output error occurs<DD><CODE>javax.servlet.ServletException</CODE> - if a servlet exception occurs</DL></DD></DL><HR><A NAME="processMapping(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)"><!-- --></A><H3>processMapping</H3><PRE>protected org.apache.struts.action.ActionMapping <B>processMapping</B>(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String path) throws java.io.IOException</PRE><DL><DD>Calls the super processMapping implementation. Then the ActionMapping type is checked to see if the Action implements the IStrutsPrepareRender interface. If
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -