📄 wprequestprocessor.html
字号:
so the Request Processor processing stops.<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>path</CODE> - The portion of the request URI for selecting a mapping<DT><B>Returns:</B><DD>returns the action mapping, can be <code>null</code><DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if an input/output error occurs</DL></DD></DL><HR><A NAME="processNoCache(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)"><!-- --></A><H3>processNoCache</H3><PRE>protected void <B>processNoCache</B>(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)</PRE><DL><DD>This method does not call the Struts Request Processor processNoCache implementation. This method is a nop in Portal<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</DL></DD></DL><HR><A NAME="doForward(java.lang.String, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)"><!-- --></A><H3>doForward</H3><PRE>protected void <B>doForward</B>(java.lang.String uri, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException</PRE><DL><DD>Forwards are not directly supported in Portal. This implementation calls doInclude.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>uri</CODE> - Uri or Definition name to forward<DD><CODE>request</CODE> - Current page request<DD><CODE>response</CODE> - Current page response<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="doInclude(java.lang.String, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)"><!-- --></A><H3>doInclude</H3><PRE>protected void <B>doInclude</B>(java.lang.String uri, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException</PRE><DL><DD>Do an include of specified uri. This implementation will include files, or recursively call the RequestProcessor for Struts actions.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>uri</CODE> - Uri of page to include<DD><CODE>request</CODE> - Current page request<DD><CODE>response</CODE> - Current page response<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="processNewActionUri(java.lang.String, javax.portlet.PortletRequest, javax.portlet.PortletResponse, javax.servlet.ServletContext)"><!-- --></A><H3>processNewActionUri</H3><PRE>public static void <B>processNewActionUri</B>(java.lang.String uri, javax.portlet.PortletRequest request, javax.portlet.PortletResponse response, javax.servlet.ServletContext servletContext) throws java.io.IOException, javax.servlet.ServletException</PRE><DL><DD>This method will implement the necessary steps to simulate a forward to a Struts Action. The appropriate Request Processor is looked up and the process method is called. The URI is the path for the Struts Action and can contain a query string. If the URI is not a path for a Struts Action, then the URI will be passed to the <code>ViewCommandFactory</code>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>uri</CODE> - the new URI<DD><CODE>request</CODE> - the request<DD><CODE>response</CODE> - the response<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="setServletContext(javax.servlet.ServletContext)"><!-- --></A><H3>setServletContext</H3><PRE>public void <B>setServletContext</B>(javax.servlet.ServletContext sContext)</PRE><DL><DD>Set the servlet context<P><DD><DL><DT><B>Parameters:</B><DD><CODE>sContext</CODE> - the servlet context object</DL></DD></DL><HR><A NAME="getServletContext()"><!-- --></A><H3>getServletContext</H3><PRE>protected javax.servlet.ServletContext <B>getServletContext</B>()</PRE><DL><DD>Returns the servlet context object<P><DD><DL><DT><B>Returns:</B><DD>returns the servlet context object, can be <code>null</code> if not set</DL></DD></DL><HR><A NAME="getStrutsInfo()"><!-- --></A><H3>getStrutsInfo</H3><PRE>public <A HREF="../../../../../com/ibm/portal/struts/portlet/StrutsInfo.html" title="class in com.ibm.portal.struts.portlet">StrutsInfo</A> <B>getStrutsInfo</B>()</PRE><DL><DD>Get the <code>StrutsInfo</code> object associated with this command processor.<P><DD><DL><DT><B>Returns:</B><DD>returns the Struts Info object</DL></DD></DL><HR><A NAME="getApplicationPrefix()"><!-- --></A><H3>getApplicationPrefix</H3><PRE>public java.lang.String <B>getApplicationPrefix</B>()</PRE><DL><DD>Get the application prefix associated with this command processor.<P><DD><DL><DT><B>Returns:</B><DD>application prefix, can be <code>null</code></DL></DD></DL><HR><A NAME="processRoles(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, org.apache.struts.action.ActionMapping)"><!-- --></A><H3>processRoles</H3><PRE>protected boolean <B>processRoles</B>(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.apache.struts.action.ActionMapping mapping) throws java.io.IOException, javax.servlet.ServletException</PRE><DL><DD>This method will call the super implementation for processing J2EE roles. If the application was configured to use Portal Groups instead then the ActionMapping roles are compared to the user's Portal groups.<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>mapping</CODE> - The mapping we are using<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="processPopulate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, org.apache.struts.action.ActionForm, org.apache.struts.action.ActionMapping)"><!-- --></A><H3>processPopulate</H3><PRE>protected void <B>processPopulate</B>(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.apache.struts.action.ActionForm form, org.apache.struts.action.ActionMapping mapping) throws javax.servlet.ServletException</PRE><DL><DD>Calls the inherited processPopulate. If file upload is used and the max length exceeded is detected then this method will get the request input stream and reads the byte stream.<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>form</CODE> - The ActionForm instance we are populating<DD><CODE>mapping</CODE> - The ActionMapping we are using<DT><B>Throws:</B><DD><CODE>javax.servlet.ServletException</CODE> - if thrown by RequestUtils.populate()</DL></DD></DL><HR><A NAME="processUri(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)"><!-- --></A><H3>processUri</H3><PRE>protected java.lang.String <B>processUri</B>(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException</PRE><DL><DD>Identify and return the path component from the request URI. The path will include the extension mapping. If no such path can be identified, create an error response and return <code>null</code>.<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<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if an input/output error occurs</DL></DD></DL><HR><A NAME="processContent(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)"><!-- --></A><H3>processContent</H3><PRE>protected void <B>processContent</B>(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)</PRE><DL><DD>Override the default function to do nothing since we set the content type elsewhere.<P><DD><DL><DT><B>See Also:</B><DD><A HREF="../../../../../com/ibm/portal/struts/command/StrutsViewCommand.html#execute(javax.portlet.RenderRequest, javax.portlet.RenderResponse, com.ibm.portal.struts.command.ViewCommandExecutionContext)"><CODE>StrutsViewCommand.execute(RenderRequest, RenderResponse, ViewCommandExecutionContext)</CODE></A>, <CODE>RequestProcessor.processContent(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)</CODE></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <A HREF="#main"><FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../serialized-form.html"><FONT CLASS="NavBarFont1"><B>Serialized</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../com/ibm/portal/struts/portlet/WpActionServlet.html" title="class in com.ibm.portal.struts.portlet"><B>PREV CLASS</B></A> <A HREF="../../../../../com/ibm/portal/struts/portlet/WpTilesRequestProcessor.html" title="class in com.ibm.portal.struts.portlet"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../index.html" target="_top"><B>FRAMES</B></A> <A HREF="WpRequestProcessor.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -