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

📄 portletresponse.html

📁 门户开发
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<DD>Maps the given string value into this portlet's namespace. Should be applied to every variable or name used in the output stream. For example, a parameter used in a form, or a function name in javascript.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>aValue</CODE> - the name to be mapped<DT><B>Returns:</B><DD>the mapped name</DL></DD></DL><HR><A NAME="addCookie(javax.servlet.http.Cookie)"><!-- --></A><H3>addCookie</H3><PRE>public void <B>addCookie</B>(javax.servlet.http.Cookie&nbsp;cookie)</PRE><DL><DD>Adds the specified cookie to the response.  This method can be called multiple times to set more than one cookie. <P> The portlet container encodes the cookie name in the concrete portlet instances' namespace.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>addCookie</CODE> in interface <CODE>javax.servlet.http.HttpServletResponse</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>cookie</CODE> - the Cookie to return to the client<DT><B>Throws:</B><DD><CODE>java.lang.IllegalStateException</CODE> - if the portlet tries to access this function                   outside of the <CODE>beginPage</CODE> method                   of the <CODE>PortletPageListener</CODE></DL></DD></DL><HR><A NAME="containsHeader(java.lang.String)"><!-- --></A><H3>containsHeader</H3><PRE>public boolean <B>containsHeader</B>(java.lang.String&nbsp;name)</PRE><DL><DD>Returns a boolean indicating whether the named response header  has already been set.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>containsHeader</CODE> in interface <CODE>javax.servlet.http.HttpServletResponse</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the header name<DT><B>Returns:</B><DD><code>true</code> if the named response header 			has already been set;  			<code>false</code> otherwise</DL></DD></DL><HR><A NAME="setDateHeader(java.lang.String, long)"><!-- --></A><H3>setDateHeader</H3><PRE>public void <B>setDateHeader</B>(java.lang.String&nbsp;name,                          long&nbsp;date)</PRE><DL><DD>Sets a response header with the given name and date-value.  The date is specified in terms of milliseconds since the epoch.  If the header had already been set, the new value overwrites the previous one.  The <code>containsHeader</code> method can be used to test for the presence of a header before setting its value. <P> <I>We need to think about all header methods and how to solve nameclashes, etc.</I><P><DD><DL><DT><B>Specified by:</B><DD><CODE>setDateHeader</CODE> in interface <CODE>javax.servlet.http.HttpServletResponse</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the header to set<DT><B>Throws:</B><DD><CODE>java.lang.IllegalStateException</CODE> - if the portlet tries to access this function outside of the                   <CODE>beginPage</CODE> method of the <CODE>PortletPageListener</CODE> or                   if the portlet tries to set an portal-wide header<DT><B>See Also:</B><DD><A HREF="../../../../org/apache/jetspeed/portlet/PortletResponse.html#containsHeader(java.lang.String)"><CODE>containsHeader(java.lang.String)</CODE></A>, <A HREF="../../../../org/apache/jetspeed/portlet/PortletResponse.html#addDateHeader(java.lang.String, long)"><CODE>addDateHeader(java.lang.String, long)</CODE></A></DL></DD></DL><HR><A NAME="addDateHeader(java.lang.String, long)"><!-- --></A><H3>addDateHeader</H3><PRE>public void <B>addDateHeader</B>(java.lang.String&nbsp;name,                          long&nbsp;date)</PRE><DL><DD>Adds a response header with the given name and date-value.  The date is specified in terms of milliseconds since the epoch.  This method allows response headers to have multiple values. <P> <I>We need to think about all header methods and how to solve nameclashes, etc.</I><P><DD><DL><DT><B>Specified by:</B><DD><CODE>addDateHeader</CODE> in interface <CODE>javax.servlet.http.HttpServletResponse</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the header to set<DD><CODE>date</CODE> - <DT><B>Throws:</B><DD><CODE>java.lang.IllegalStateException</CODE> - if the portlet tries to access this function outside of the                   <CODE>beginPage</CODE> method of the <CODE>PortletPageListener</CODE> or                   if the portlet tries to set an portal-wide header<DT><B>See Also:</B><DD><A HREF="../../../../org/apache/jetspeed/portlet/PortletResponse.html#setDateHeader(java.lang.String, long)"><CODE>setDateHeader(java.lang.String, long)</CODE></A></DL></DD></DL><HR><A NAME="setHeader(java.lang.String, java.lang.String)"><!-- --></A><H3>setHeader</H3><PRE>public void <B>setHeader</B>(java.lang.String&nbsp;name,                      java.lang.String&nbsp;value)</PRE><DL><DD>Sets a response header with the given name and value. If the header had already been set, the new value overwrites the previous one.  The <code>containsHeader</code> method can be used to test for the presence of a header before setting its value. <P> <I>We need to think about all header methods and how to solve nameclashes, etc.</I><P><DD><DL><DT><B>Specified by:</B><DD><CODE>setHeader</CODE> in interface <CODE>javax.servlet.http.HttpServletResponse</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the header<DD><CODE>value</CODE> - the header value<DT><B>Throws:</B><DD><CODE>java.lang.IllegalStateException</CODE> - if the portlet tries to access this function outside of the                   <CODE>beginPage</CODE> method of the <CODE>PortletPageListener</CODE> or                   if the portlet tries to set an portal-wide header<DT><B>See Also:</B><DD><A HREF="../../../../org/apache/jetspeed/portlet/PortletResponse.html#containsHeader(java.lang.String)"><CODE>containsHeader(java.lang.String)</CODE></A>, <A HREF="../../../../org/apache/jetspeed/portlet/PortletResponse.html#addHeader(java.lang.String, java.lang.String)"><CODE>addHeader(java.lang.String, java.lang.String)</CODE></A></DL></DD></DL><HR><A NAME="addHeader(java.lang.String, java.lang.String)"><!-- --></A><H3>addHeader</H3><PRE>public void <B>addHeader</B>(java.lang.String&nbsp;name,                      java.lang.String&nbsp;value)</PRE><DL><DD>Adds a response header with the given name and value. This method allows response headers to have multiple values. <P> <I>We need to think about all header methods and how to solve nameclashes, etc.</I><P><DD><DL><DT><B>Specified by:</B><DD><CODE>addHeader</CODE> in interface <CODE>javax.servlet.http.HttpServletResponse</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the header<DD><CODE>value</CODE> - the additional header value<DT><B>Throws:</B><DD><CODE>java.lang.IllegalStateException</CODE> - if the portlet tries to access this function outside of the                   <CODE>beginPage</CODE> method of the <CODE>PortletPageListener</CODE> or                   if the portlet tries to set an portal-wide header<DT><B>See Also:</B><DD><A HREF="../../../../org/apache/jetspeed/portlet/PortletResponse.html#setHeader(java.lang.String, java.lang.String)"><CODE>setHeader(java.lang.String, java.lang.String)</CODE></A></DL></DD></DL><HR><A NAME="setIntHeader(java.lang.String, int)"><!-- --></A><H3>setIntHeader</H3><PRE>public void <B>setIntHeader</B>(java.lang.String&nbsp;name,                         int&nbsp;value)</PRE><DL><DD>Sets a response header with the given name and integer value.  If the header had already been set, the new value overwrites the previous one.  The <code>containsHeader</code> method can be used to test for the presence of a header before setting its value. <P> <I>We need to think about all header methods and how to solve nameclashes, etc.</I><P><DD><DL><DT><B>Specified by:</B><DD><CODE>setIntHeader</CODE> in interface <CODE>javax.servlet.http.HttpServletResponse</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the header<DD><CODE>value</CODE> - the assigned integer value<DT><B>Throws:</B><DD><CODE>java.lang.IllegalStateException</CODE> - if the portlet tries to access this function outside of the                   <CODE>beginPage</CODE> method of the <CODE>PortletPageListener</CODE> or                   if the portlet tries to set an portal-wide header<DT><B>See Also:</B><DD><A HREF="../../../../org/apache/jetspeed/portlet/PortletResponse.html#containsHeader(java.lang.String)"><CODE>containsHeader(java.lang.String)</CODE></A>, <A HREF="../../../../org/apache/jetspeed/portlet/PortletResponse.html#addIntHeader(java.lang.String, int)"><CODE>addIntHeader(java.lang.String, int)</CODE></A></DL></DD></DL><HR><A NAME="addIntHeader(java.lang.String, int)"><!-- --></A><H3>addIntHeader</H3><PRE>public void <B>addIntHeader</B>(java.lang.String&nbsp;name,                         int&nbsp;value)</PRE><DL><DD>Adds a response header with the given name and integer value.  This method allows response headers to have multiple values. <P> <I>We need to think about all header methods and how to solve nameclashes, etc.</I><P><DD><DL><DT><B>Specified by:</B><DD><CODE>addIntHeader</CODE> in interface <CODE>javax.servlet.http.HttpServletResponse</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the header<DD><CODE>value</CODE> - the assigned integer value<DT><B>Throws:</B><DD><CODE>java.lang.IllegalStateException</CODE> - if the portlet tries to access this function outside of the                   <CODE>beginPage</CODE> method of the <CODE>PortletPageListener</CODE> or                   if the portlet tries to set an portal-wide header<DT><B>See Also:</B><DD><A HREF="../../../../org/apache/jetspeed/portlet/PortletResponse.html#setIntHeader(java.lang.String, int)"><CODE>setIntHeader(java.lang.String, int)</CODE></A></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/PortletRequest.html" title="interface in org.apache.jetspeed.portlet"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../../org/apache/jetspeed/portlet/PortletSession.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="PortletResponse.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 + -