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

📄 portletcontext.html

📁 门户开发
💻 HTML
📖 第 1 页 / 共 3 页
字号:
 the same name (including the package) as the portlet.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>bundle</CODE> - the name of the resource bundle<DD><CODE>key</CODE> - the text key<DD><CODE>locale</CODE> - the locale to observe<DT><B>Returns:</B><DD>the localized text resource</DL></DD></DL><HR><A NAME="send(java.lang.String, org.apache.jetspeed.portlet.PortletMessage, org.apache.jetspeed.portlet.PortletRequest)"><!-- --></A><H3>send</H3><PRE>public void <B>send</B>(java.lang.String&nbsp;portletName,                 org.apache.jetspeed.portlet.PortletMessage&nbsp;message,                 <A HREF="../../../../org/apache/jetspeed/portlet/PortletRequest.html" title="interface in org.apache.jetspeed.portlet">PortletRequest</A>&nbsp;request)          throws <A HREF="../../../../org/apache/jetspeed/portlet/AccessDeniedException.html" title="class in org.apache.jetspeed.portlet">AccessDeniedException</A></PRE><DL><DD><B>Deprecated.</B>&nbsp;<I>since Version 1.1</I><P><DD>Sends the given message to all portlets in the same portlet application on the same page that have the given name. If the portlet name is <CODE>null</CODE> the message is broadcast to all portlets in the same portlet application. If more than one instance of the portlet with the given name exists on the current page, the message is sent to every single instance of that portlet. If the source portlet has the same name as the target portlet(s), the message will not be sent to avoid possible cyclic calls.  <P> The portlet(s) with the given name will only receive the message event if it has/they have implemented the appropriate listener.  <P> This function may only be used during event processing, in any other case the method throws an AccessDeniedException.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>portletName</CODE> - the name of the portlet(s) that this<DD><CODE>message</CODE> - the message to be sent<DD><CODE>request</CODE> - the portlet request<DT><B>Throws:</B><DD><CODE><A HREF="../../../../org/apache/jetspeed/portlet/AccessDeniedException.html" title="class in org.apache.jetspeed.portlet">AccessDeniedException</A></CODE> - if the portlet tries to access this function                   outside of the event processing</DL></DD></DL><HR><A NAME="send(java.lang.String, org.apache.jetspeed.portlet.PortletMessage)"><!-- --></A><H3>send</H3><PRE>public void <B>send</B>(java.lang.String&nbsp;portletName,                 org.apache.jetspeed.portlet.PortletMessage&nbsp;message)          throws <A HREF="../../../../org/apache/jetspeed/portlet/AccessDeniedException.html" title="class in org.apache.jetspeed.portlet">AccessDeniedException</A></PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>Sends the given message to all portlets in the same portlet application on the same page that have the given name. If the portlet name is <CODE>null</CODE> the message is broadcast to all portlets in the same portlet application. If more than one instance of the portlet with the given name exists on the current page, the message is sent to every single instance of that portlet. If the source portlet has the same name as the target portlet(s), the message will not be sent to avoid possible cyclic calls.  <P> The portlet(s) with the given name will only receive the message event if it has/they have implemented the appropriate listener.  <P> This function may only be used during event processing, in any other case the method throws an AccessDeniedException.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>portletName</CODE> - the name of the portlet(s) that this<DD><CODE>message</CODE> - the message to be sent<DT><B>Throws:</B><DD><CODE><A HREF="../../../../org/apache/jetspeed/portlet/AccessDeniedException.html" title="class in org.apache.jetspeed.portlet">AccessDeniedException</A></CODE> - if the portlet tries to access this function                   outside of the event processing</DL></DD></DL><HR><A NAME="send(java.lang.String, org.apache.jetspeed.portlet.DefaultPortletMessage)"><!-- --></A><H3>send</H3><PRE>public void <B>send</B>(java.lang.String&nbsp;portletName,                 org.apache.jetspeed.portlet.DefaultPortletMessage&nbsp;message)          throws <A HREF="../../../../org/apache/jetspeed/portlet/AccessDeniedException.html" title="class in org.apache.jetspeed.portlet">AccessDeniedException</A></PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>Sends the given message to all portlets on the same page that have the given name regardless of the portlet application. If the portlet name is <CODE>null</CODE> the message is broadcast to all portlets on the same page across all portlet application. If more than one instance of the portlet with the given name exists on the current page, the message is sent to every single instance of that portlet. If the source portlet has the same name as the target portlet(s), the message will not be sent to avoid possible cyclic calls.  <P> The portlet(s) with the given name will only receive the message event if it has/they have implemented the appropriate listener.  <P> This function may only be used during event processing, in any other case the method throws an AccessDeniedException.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>portletName</CODE> - the name of the portlet(s) that this<DD><CODE>message</CODE> - the message to be sent<DT><B>Throws:</B><DD><CODE><A HREF="../../../../org/apache/jetspeed/portlet/AccessDeniedException.html" title="class in org.apache.jetspeed.portlet">AccessDeniedException</A></CODE> - if the portlet tries to access this function                   outside of the event processing</DL></DD></DL><HR><A NAME="getService(java.lang.Class)"><!-- --></A><H3>getService</H3><PRE>public <A HREF="../../../../org/apache/jetspeed/portlet/service/PortletService.html" title="interface in org.apache.jetspeed.portlet.service">PortletService</A> <B>getService</B>(java.lang.Class&nbsp;service)                          throws <A HREF="../../../../org/apache/jetspeed/portlet/service/PortletServiceUnavailableException.html" title="class in org.apache.jetspeed.portlet.service">PortletServiceUnavailableException</A>,                                 <A HREF="../../../../org/apache/jetspeed/portlet/service/PortletServiceNotFoundException.html" title="class in org.apache.jetspeed.portlet.service">PortletServiceNotFoundException</A></PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>This function looks up a portlet service with the given classname. <P> Using this method a portlet is able to get additional functionality like a service to get external content over a firewall or to include a servlet.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>service</CODE> - the classname of the service to load<DT><B>Returns:</B><DD>the portlet service<DT><B>Throws:</B><DD><CODE><A HREF="../../../../org/apache/jetspeed/portlet/service/PortletServiceUnavailableException.html" title="class in org.apache.jetspeed.portlet.service">PortletServiceUnavailableException</A></CODE> - if an exception has occurrred that interferes              with the portlet service's normal initialization<DD><CODE><A HREF="../../../../org/apache/jetspeed/portlet/service/PortletServiceNotFoundException.html" title="class in org.apache.jetspeed.portlet.service">PortletServiceNotFoundException</A></CODE> - if the PortletService is not found</DL></DD></DL><HR><A NAME="getMajorVersion()"><!-- --></A><H3>getMajorVersion</H3><PRE>public int <B>getMajorVersion</B>()</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>Returns the major version of the Portlet API that this portlet container supports.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>getMajorVersion</CODE> in interface <CODE>javax.servlet.ServletContext</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the major version<DT><B>See Also:</B><DD><A HREF="../../../../org/apache/jetspeed/portlet/PortletContext.html#getMinorVersion()"><CODE>getMinorVersion()</CODE></A></DL></DD></DL><HR><A NAME="getMinorVersion()"><!-- --></A><H3>getMinorVersion</H3><PRE>public int <B>getMinorVersion</B>()</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>Returns the minor version of the Portlet API that this portlet container supports.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>getMinorVersion</CODE> in interface <CODE>javax.servlet.ServletContext</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the minor version<DT><B>See Also:</B><DD><A HREF="../../../../org/apache/jetspeed/portlet/PortletContext.html#getMajorVersion()"><CODE>getMajorVersion()</CODE></A></DL></DD></DL><HR><A NAME="getContainerInfo()"><!-- --></A><H3>getContainerInfo</H3><PRE>public java.lang.String <B>getContainerInfo</B>()</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>Returns the name and version of the portlet container which the portlet is running in. <P> The form of the returned string is <IT>servername/versionnumber</IT>. For the IBM Portal Server this method may return the string <CODE>IBM WebSphere Portal Server/4.1</CODE>.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the string containing at least name and version number</DL></DD></DL><HR><A NAME="getLog()"><!-- --></A><H3>getLog</H3><PRE>public <A HREF="../../../../org/apache/jetspeed/portlet/PortletLog.html" title="interface in org.apache.jetspeed.portlet">PortletLog</A> <B>getLog</B>()</PRE><DL><DD><B>Deprecated.</B>&nbsp;<DD>Returns the portlet log which allows the portlet to write debug, informational, warning, or error messages to a log.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the portlet log</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>&nbsp;</TD>  <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;<A HREF="#main"><FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT></A>&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="../../../../serialized-form.html"><FONT CLASS="NavBarFont1"><B>Serialized</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></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../../org/apache/jetspeed/portlet/PortletConfig.html" title="interface in org.apache.jetspeed.portlet"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../../org/apache/jetspeed/portlet/PortletData.html" title="interface in org.apache.jetspeed.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>  &nbsp;&nbsp;<A HREF="PortletContext.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<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:&nbsp;NESTED&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><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>

⌨️ 快捷键说明

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