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

📄 resourceresponse.html.svn-base

📁 portal越来越流行了
💻 SVN-BASE
📖 第 1 页 / 共 2 页
字号:
HTTP_STATUS_CODE</H3><PRE>static final java.lang.String <B>HTTP_STATUS_CODE</B></PRE><DL><DD>Constant for setting the HTTP status code via the  <code>setProperty</code> method.<P><DL><DT><B>See Also:</B><DD><A HREF="../../constant-values.html#javax.portlet.ResourceResponse.HTTP_STATUS_CODE">Constant Field Values</A></DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="setLocale(java.util.Locale)"><!-- --></A><H3>setLocale</H3><PRE>void <B>setLocale</B>(java.util.Locale&nbsp;loc)</PRE><DL><DD>Sets the locale of the response, setting the headers  (including the Content-Type's charset) as appropriate.  This method should be called before a call to getWriter().  By default, the response locale is the default locale provided by the portlet container.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>loc</CODE> - the new locale of the response</DL></DD></DL><HR><A NAME="setCharacterEncoding(java.lang.String)"><!-- --></A><H3>setCharacterEncoding</H3><PRE>void <B>setCharacterEncoding</B>(java.lang.String&nbsp;charset)</PRE><DL><DD>Sets the character encoding (MIME charset) of the response being  sent to the client, for example, to UTF-8. If the character encoding  has already been set by either the portlet container, <code>setContentType(java.lang.String)</code> or  <code>setLocale(java.util.Locale)</code>, this method overrides it. Calling  <code>setContentType(java.lang.String)</code> with the String  of  <code>text/html</code> and calling this method with the String of  <code>UTF-8</code> is equivalent with calling <code>setContentType</code>  with the String of <code>text/html; charset=UTF-8</code>. <p> This method can be called repeatedly to change the character encoding.  This method has no effect if it is called after getWriter has been called  or after the response has been committed.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>charset</CODE> - a String specifying only the character set defined by                 IANA Character Sets (http://www.iana.org/assignments/character-sets)</DL></DD></DL><HR><A NAME="setContentLength(int)"><!-- --></A><H3>setContentLength</H3><PRE>void <B>setContentLength</B>(int&nbsp;len)</PRE><DL><DD>Sets the length of the content body in the response.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>len</CODE> - an integer specifying the length of the content being returned</DL></DD></DL><HR><A NAME="createRenderURL()"><!-- --></A><H3>createRenderURL</H3><PRE><A HREF="../../javax/portlet/PortletURL.html" title="interface in javax.portlet">PortletURL</A> <B>createRenderURL</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../javax/portlet/MimeResponse.html#createRenderURL()">MimeResponse</A></CODE></B></DD><DD>Creates a portlet URL targeting the portlet. If no portlet mode, window state or security modifier is set in the PortletURL the current values are preserved. If a request is triggered by the PortletURL, it results in a render request. <p> The returned URL can be further extended by adding portlet-specific parameters and portlet modes and window states. <p> The created URL will per default not contain any parameters of the current render request.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../javax/portlet/MimeResponse.html#createRenderURL()">createRenderURL</A></CODE> in interface <CODE><A HREF="../../javax/portlet/MimeResponse.html" title="interface in javax.portlet">MimeResponse</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>a portlet render URL<DT><B>Throws:</B><DD><CODE>java.lang.IllegalStateException</CODE> - if the cacheability level of the resource URL             triggering this <code>serveResource</code> call             is not <code>PAGE</code> and thus does not allow             for creating render URLs.</DL></DD></DL><HR><A NAME="createActionURL()"><!-- --></A><H3>createActionURL</H3><PRE><A HREF="../../javax/portlet/PortletURL.html" title="interface in javax.portlet">PortletURL</A> <B>createActionURL</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../javax/portlet/MimeResponse.html#createActionURL()">MimeResponse</A></CODE></B></DD><DD>Creates a portlet URL targeting the portlet. If no portlet mode, window state or security modifier is set in the PortletURL the current values are preserved. If a request is triggered by the PortletURL, it results in an action request. <p> The returned URL can be further extended by adding portlet-specific parameters and portlet modes and window states. <p> The created URL will per default not contain any parameters of the current render request.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../javax/portlet/MimeResponse.html#createActionURL()">createActionURL</A></CODE> in interface <CODE><A HREF="../../javax/portlet/MimeResponse.html" title="interface in javax.portlet">MimeResponse</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>a portlet action URL<DT><B>Throws:</B><DD><CODE>java.lang.IllegalStateException</CODE> - if the cacheability level of the resource URL             triggering this <code>serveResource</code> call             is not <code>PAGE</code> and thus does not allow             for creating action URLs.</DL></DD></DL><HR><A NAME="createResourceURL()"><!-- --></A><H3>createResourceURL</H3><PRE><A HREF="../../javax/portlet/ResourceURL.html" title="interface in javax.portlet">ResourceURL</A> <B>createResourceURL</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../javax/portlet/MimeResponse.html#createResourceURL()">MimeResponse</A></CODE></B></DD><DD>Creates a portlet URL targeting the portlet. If no security modifier is set in the PortletURL the current values are preserved. The current render parameters, portlet mode and window state are preserved. <p> If a request is triggered by the PortletURL, it results in a serve resource request of the <code>ResourceServingPortlet</code> interface. <p> The returned URL can be further extended by adding portlet-specific parameters . <p> The created URL will per default contain the current  cacheability setting of the parent resource.  If no parent resource is available, <code>PAGE</code> is the default.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../javax/portlet/MimeResponse.html#createResourceURL()">createResourceURL</A></CODE> in interface <CODE><A HREF="../../javax/portlet/MimeResponse.html" title="interface in javax.portlet">MimeResponse</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>a portlet resource URL<DT><B>Throws:</B><DD><CODE>java.lang.IllegalStateException</CODE> - if the cacheability level of the resource URL             triggering this <code>serveResource</code> call,             or one of the parent calls, have defined a stricter             cachability level.</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=2 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;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/ResourceResponse.html"><FONT CLASS="NavBarFont1"><B>Use</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="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../index-files/index-1.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="../../javax/portlet/ResourceRequest.html" title="interface in javax.portlet"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../javax/portlet/ResourceServingPortlet.html" title="interface in javax.portlet"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../index.html?javax/portlet/ResourceResponse.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="ResourceResponse.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;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&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 + -