📄 portalurlwriter.html
字号:
descriptor that it supports this state, or the current user is not allowed to switch to this state.<DD><CODE>java.lang.IllegalArgumentException</CODE> - - if <br> 1. the given content node or portlet window is not valid or not accessible for the current user<br> 2. the given portal state is not supported<br> 3. the given locale is not supported</DL></DD></DL><HR><A NAME="writePortletRenderURL(java.io.Writer, java.lang.String, java.lang.String)"><!-- --></A><H3>writePortletRenderURL</H3><PRE>public java.io.Writer <B>writePortletRenderURL</B>(java.io.Writer writer, java.lang.String contentNode, java.lang.String portletWindow) throws java.io.IOException</PRE><DL><DD>Creates a render URL that points to the specified portlet window. <p> The current render parameters of all portlets and the current state is preserved. </p><P><DD><DL><DT><B>Parameters:</B><DD><CODE>writer</CODE> - Destination stream that receives the character representation of the URL (must not be null)<DD><CODE>contentNode</CODE> - Unique name of the content node the portlet window belongs to (must not be null). The content node is needed in order to make the URL gneration operation less expensive.<DD><CODE>portletWindow</CODE> - Unique name of the target portlet window (must not be null)<DT><B>Returns:</B><DD>Reference to the writer<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - - error occured on the underlying streams<DD><CODE>java.lang.IllegalArgumentException</CODE> - - if the given content node or portlet window is not valid or not accessible</DL></DD></DL><HR><A NAME="writePortletRenderURL(java.io.Writer, java.lang.String, java.lang.String, javax.portlet.PortletMode)"><!-- --></A><H3>writePortletRenderURL</H3><PRE>public java.io.Writer <B>writePortletRenderURL</B>(java.io.Writer writer, java.lang.String contentNode, java.lang.String portletWindow, javax.portlet.PortletMode newPortletMode) throws java.io.IOException, javax.portlet.PortletModeException</PRE><DL><DD>Creates a render URL that points to the specified portlet window with the specified portlet mode. <p> The current render parameters of all portlets and the current state is preserved. </p><P><DD><DL><DT><B>Parameters:</B><DD><CODE>writer</CODE> - Destination stream that receives the character representation of the URL (must not be null)<DD><CODE>contentNode</CODE> - Unique name of the content node the portlet window belongs to (must not be null). The content node is needed in order to make the URL gneration operation less expensive.<DD><CODE>portletWindow</CODE> - Unique name of the target portlet window (must not be null)<DD><CODE>newPortletMode</CODE> - New portlet mode of the target portlet (must not be null)<DT><B>Returns:</B><DD>Reference to the writer<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - - error occured on the underlying streams<DD><CODE>javax.portlet.PortletModeException</CODE> - - if the target portlet cannot switch to this mode, because the portal does not support this mode, the portlet has not declared in its deployment descriptor that it supports this mode for the current markup, or the current user is not allowed to switch to this mode.<DD><CODE>java.lang.IllegalArgumentException</CODE> - - if the given content node or portlet window is not valid or not accessible</DL></DD></DL><HR><A NAME="writePortletRenderURL(java.io.Writer, java.lang.String, java.lang.String, javax.portlet.WindowState)"><!-- --></A><H3>writePortletRenderURL</H3><PRE>public java.io.Writer <B>writePortletRenderURL</B>(java.io.Writer writer, java.lang.String contentNode, java.lang.String portletWindow, javax.portlet.WindowState newWindowState) throws java.io.IOException, javax.portlet.WindowStateException</PRE><DL><DD>Creates a render URL that points to the specified portlet window with the new window state. <p> The current render parameters of all portlets and the current state is preserved. </p><P><DD><DL><DT><B>Parameters:</B><DD><CODE>writer</CODE> - Destination stream that receives the character representation of the URL (must not be null)<DD><CODE>contentNode</CODE> - Unique name of the content node the portlet window belongs to (must not be null). The content node is needed in order to make the URL gneration operation less expensive.<DD><CODE>portletWindow</CODE> - Unique name of the target portlet window (must not be null)<DD><CODE>newWindowState</CODE> - New portlet window state of the target portlet (must not be null)<DT><B>Returns:</B><DD>Reference to the writer<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - - error occured on the underlying streams<DD><CODE>javax.portlet.WindowStateException</CODE> - - if the portlet cannot switch to this state, because the portal does not support this state, the portlet has not declared in its deployment descriptor that it supports this state, or the current user is not allowed to switch to this state.<DD><CODE>java.lang.IllegalArgumentException</CODE> - - if the given content node or portlet window is not valid or not accessible</DL></DD></DL><HR><A NAME="writePortletRenderURL(java.io.Writer, java.lang.String, java.lang.String, java.util.Map)"><!-- --></A><H3>writePortletRenderURL</H3><PRE>public java.io.Writer <B>writePortletRenderURL</B>(java.io.Writer writer, java.lang.String contentNode, java.lang.String portletWindow, java.util.Map newRenderParameters) throws java.io.IOException</PRE><DL><DD>Creates a render URL that points to the specified portlet window with the given render parameters. <p> The render parameters of the target portlet are replaced with the specified render parameter and the render parameters of all other portlets and the portal state is preserved. </p><P><DD><DL><DT><B>Parameters:</B><DD><CODE>writer</CODE> - Destination stream that receives the character representation of the URL (must not be null)<DD><CODE>contentNode</CODE> - Unique name of the content node the portlet window belongs to (must not be null). The content node is needed in order to make the URL gneration operation less expensive.<DD><CODE>portletWindow</CODE> - Unique name of the target portlet window (must not be null)<DD><CODE>newRenderParameters</CODE> - New render parameters for the target portlet (may be null)<DT><B>Returns:</B><DD>Reference to the writer<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - - error occured on the underlying streams<DD><CODE>javax.portlet.PortletModeException</CODE> - - if the target portlet cannot switch to this mode, because the portal does not support this mode, the portlet has not declared in its deployment descriptor that it supports this mode for the current markup, or the current user is not allowed to switch to this mode.<DD><CODE>javax.portlet.WindowStateException</CODE> - - if the portlet cannot switch to this state, because the portal does not support this state, the portlet has not declared in its deployment descriptor that it supports this state, or the current user is not allowed to switch to this state.<DD><CODE>java.lang.IllegalArgumentException</CODE> - - if <br> 1. the given content node or portlet window is not valid or not accessible for the current user<br> 2. the given portal state is not supported<br> 3. the given locale is not supported</DL></DD></DL><HR><A NAME="writePortletRenderURL(java.io.Writer, java.lang.String, java.lang.String, com.ibm.portal.portlet.service.url.Constants.PortalState)"><!-- --></A><H3>writePortletRenderURL</H3><PRE>public java.io.Writer <B>writePortletRenderURL</B>(java.io.Writer writer, java.lang.String contentNode, java.lang.String portletWindow, <A HREF="../../../../../../com/ibm/portal/portlet/service/url/Constants.PortalState.html" title="interface in com.ibm.portal.portlet.service.url">Constants.PortalState</A> portalState) throws java.io.IOException</PRE><DL><DD>Creates a render URL that points to the specified portlet window with the given portal state. <p> The current render parameters of all portlets are preserved. </p><P><DD><DL><DT><B>Parameters:</B><DD><CODE>writer</CODE> - Destination stream that receives the character representation of the URL (must not be null)<DD><CODE>contentNode</CODE> - Unique name of the content node the portlet window belongs to (must not be null). The content node is needed in order to make the URL gneration operation less expensive.<DD><CODE>portletWindow</CODE> - Unique name of the target portlet window (must not be null)<DD><CODE>portalState</CODE> - New portal navigational state (e.g. SOLO mode or non-SOLO mode) (may be null)<DT><B>Returns:</B><DD>Reference to the writer<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - - error occured on the underlying streams<DD><CODE>java.lang.IllegalArgumentException</CODE> - - if <br> 1. the given content node or portlet window is not valid or not accessible for the current user<br> 2. the given portal state is not supported<br></DL></DD></DL><HR><A NAME="writePortletRenderURL(java.io.Writer, com.ibm.portal.portlet.service.url.Constants.PortalState)"><!-- --></A><H3>writePortletRenderURL</H3><PRE>public java.io.Writer <B>writePortletRenderURL</B>(java.io.Writer writer, <A HREF="../../../../../../com/ibm/portal/portlet/service/url/Constants.PortalState.html" title="interface in com.ibm.portal.portlet.service.url">Constants.PortalState</A> portalState) throws java.io.IOException</PRE><DL><DD>Creates a render URL that points to the current portlet window with the given portal state. <p> The current render parameters of all portlets are preserved. </p><P><DD><DL><DT><B>Parameters:</B><DD><CODE>writer</CODE> - Destination stream that receives the character representation of the URL (must not be null)<DD><CODE>portalState</CODE> - New portal navigational state (e.g. SOLO mode or non-SOLO mode) (may be null)<DT><B>Returns:</B><DD>Reference to the writer<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - - error occured on the underlying streams<DD><CODE>java.lang.IllegalArgumentException</CODE> - - if the given portal state is not supported</DL></DD></DL><HR>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -