⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 actionresponse.html.svn-base

📁 portal越来越流行了
💻 SVN-BASE
📖 第 1 页 / 共 2 页
字号:
</DD></DL><HR><A NAME="setPortletMode(javax.portlet.PortletMode)"><!-- --></A><H3>setPortletMode</H3><PRE>public void <B>setPortletMode</B>(<A HREF="../../javax/portlet/PortletMode.html">PortletMode</A>&nbsp;portletMode)                    throws <A HREF="../../javax/portlet/PortletModeException.html">PortletModeException</A></PRE><DL><DD>Sets the portlet mode of a portlet to the given portlet mode. <p> Possible values are the standard portlet modes and any custom  portlet modes supported by the portal and the portlet. Portlets  must declare in the deployment descriptor the portlet modes they  support for each markup type.   Standard portlet modes are: <ul> <li>EDIT <li>HELP <li>VIEW </ul> <p> Note: The portlet may still be called in a different window       state in the next render call, depending on the portlet container / portal.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>portletMode</CODE> - the new portlet mode<DT><B>Throws:</B><DD><CODE><A HREF="../../javax/portlet/PortletModeException.html">PortletModeException</A></CODE> - if the portlet cannot switch to this portlet mode,                   because the portlet or portal does not support it for this markup,                   or the current user is not allowed to switch to this portlet mode.                   To avoid this exception the portlet can check the allowed                   portlet modes with <code>Request.isPortletModeAllowed()</code>.<DD><CODE>java.lang.IllegalStateException</CODE> - if the method is invoked after <code>sendRedirect</code> has been called.</DL></DD></DL><HR><A NAME="sendRedirect(java.lang.String)"><!-- --></A><H3>sendRedirect</H3><PRE>public void <B>sendRedirect</B>(java.lang.String&nbsp;location)                  throws java.io.IOException</PRE><DL><DD>Instructs the portlet container to send a redirect response  to the client using the specified redirect location URL.   <p> This method only accepts an absolute URL (e.g.  <code>http://my.co/myportal/mywebap/myfolder/myresource.gif</code>) or a full path URI (e.g. <code>/myportal/mywebap/myfolder/myresource.gif</code>). If required,  the portlet container may encode the given URL before the  redirection is issued to the client. <p> The sendRedirect method can not be invoked after any of the  following methods of the ActionResponse interface has been called: <ul> <li>setPortletMode <li>setWindowState <li>setRenderParameter <li>setRenderParameters </ul><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>location</CODE> - the redirect location URL<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if an input or output exception occurs.<DD><CODE>java.lang.IllegalArgumentException</CODE> - if a relative path URL is given<DD><CODE>java.lang.IllegalStateException</CODE> - if the method is invoked after any of above mentioned methods of                     the ActionResponse interface has been called.</DL></DD></DL><HR><A NAME="setRenderParameters(java.util.Map)"><!-- --></A><H3>setRenderParameters</H3><PRE>public void <B>setRenderParameters</B>(java.util.Map&nbsp;parameters)</PRE><DL><DD>Sets a parameter map for the render request. <p> All previously set render parameters are cleared. <p> These parameters will be accessible in all sub-sequent render calls via the <code>PortletRequest.getParameter</code> call until a new request is targeted to the portlet. <p> The given parameters do not need to be encoded prior to calling this method.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>parameters</CODE> - Map containing parameter names for                       the render phase as                       keys and parameter values as map                       values. The keys in the parameter                      map must be of type String. The values                       in the parameter map must be of type                      String array (<code>String[]</code>).<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - if parameters is <code>null</code>, if                      any of the key/values in the Map are <code>null</code>,                       if any of the keys is not a String, or if any of                       the values is not a String array.<DD><CODE>java.lang.IllegalStateException</CODE> - if the method is invoked after <code>sendRedirect</code> has been called.</DL></DD></DL><HR><A NAME="setRenderParameter(java.lang.String, java.lang.String)"><!-- --></A><H3>setRenderParameter</H3><PRE>public void <B>setRenderParameter</B>(java.lang.String&nbsp;key,                               java.lang.String&nbsp;value)</PRE><DL><DD>Sets a String parameter for the render request. <p> These parameters will be accessible in all sub-sequent render calls via the <code>PortletRequest.getParameter</code> call until a request is targeted to the portlet. <p> This method replaces all parameters with the given key. <p> The given parameter do not need to be encoded prior to calling this method.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>key</CODE> - key of the render parameter<DD><CODE>value</CODE> - value of the render parameter<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - if key or value are <code>null</code>.<DD><CODE>java.lang.IllegalStateException</CODE> - if the method is invoked after <code>sendRedirect</code> has been called.</DL></DD></DL><HR><A NAME="setRenderParameter(java.lang.String, java.lang.String[])"><!-- --></A><H3>setRenderParameter</H3><PRE>public void <B>setRenderParameter</B>(java.lang.String&nbsp;key,                               java.lang.String[]&nbsp;values)</PRE><DL><DD>Sets a String array parameter for the render request. <p> These parameters will be accessible in all sub-sequent render calls via the <code>PortletRequest.getParameter</code> call until a request is targeted to the portlet. <p> This method replaces all parameters with the given key. <p> The given parameter do not need to be encoded prior to calling this method.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>key</CODE> - key of the render parameter<DD><CODE>values</CODE> - values of the render parameter<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - if key or value are <code>null</code>.<DD><CODE>java.lang.IllegalStateException</CODE> - if the method is invoked after <code>sendRedirect</code> has been called.</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>Portlet API (V1.0) </EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../javax/portlet/ActionRequest.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../javax/portlet/PortalContext.html"><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>  &nbsp;&nbsp;<A HREF="ActionResponse.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: &nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><a href=license.txt >Copyright</a> &#169; 2003 IBM Corporation and Sun Microsystems, Inc. All rights reserved</BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -