📄 portletrequest.html
字号:
<DT><B>Parameters:</B><DD><CODE>create</CODE> - <CODE>true</CODE> always return a portlet session, even if none exists and only a temporary session can be created. <CODE>false</CODE> return <CODE>null</CODE> if there is no current session for the portal. Never return a temporary session.<DT><B>Returns:</B><DD>the portlet session</DL></DD></DL><HR><A NAME="getCookies()"><!-- --></A><H3>getCookies</H3><PRE>public javax.servlet.http.Cookie[] <B>getCookies</B>()</PRE><DL><DD><B>Deprecated.</B> <DD>Returns an array containing all of the <code>Cookie</code> objects the client sent with this request. This method returns <code>null</code> if no cookies were sent.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>getCookies</CODE> in interface <CODE>javax.servlet.http.HttpServletRequest</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>an array of all the <code>Cookies</code> included with this request, or <code>null</code> if the request has no cookies</DL></DD></DL><HR><A NAME="getUser()"><!-- --></A><H3>getUser</H3><PRE>public <A HREF="../../../../org/apache/jetspeed/portlet/User.html" title="interface in org.apache.jetspeed.portlet">User</A> <B>getUser</B>()</PRE><DL><DD><B>Deprecated.</B> <DD>Returns the user object. The user object contains useful information about the user and his or her preferences. <P> If the user has not logged in or does not grant access to the portlet, this method returns <CODE>null</CODE>.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the user object</DL></DD></DL><HR><A NAME="getPortletSettings()"><!-- --></A><H3>getPortletSettings</H3><PRE>public <A HREF="../../../../org/apache/jetspeed/portlet/PortletSettings.html" title="interface in org.apache.jetspeed.portlet">PortletSettings</A> <B>getPortletSettings</B>()</PRE><DL><DD><B>Deprecated.</B> <DD>Returns the <CODE>PortletSettings</CODE> object of the concrete portlet.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the PortletSettings object, or NULL if no PortletSettings object is available.</DL></DD></DL><HR><A NAME="getDateHeader(java.lang.String)"><!-- --></A><H3>getDateHeader</H3><PRE>public long <B>getDateHeader</B>(java.lang.String name)</PRE><DL><DD><B>Deprecated.</B> <DD>Returns the value of the specified request header as a <code>long</code> value that represents a <code>Date</code> object. Use this method with headers that contain dates, such as <code>If-Modified-Since</code>. <p>The date is returned as the number of milliseconds since January 1, 1970 GMT. The header name is case insensitive. <p>If the request did not have a header of the specified name, this method returns -1. If the header can't be converted to a date, the method throws an <code>IllegalArgumentException</code>.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>getDateHeader</CODE> in interface <CODE>javax.servlet.http.HttpServletRequest</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - a <code>String</code> specifying the name of the header<DT><B>Returns:</B><DD>a <code>long</code> value representing the date specified in the header expressed as the number of milliseconds since January 1, 1970 GMT, or -1 if the named header was not included with the reqest<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - If the header value can't be converted to a date</DL></DD></DL><HR><A NAME="getHeader(java.lang.String)"><!-- --></A><H3>getHeader</H3><PRE>public java.lang.String <B>getHeader</B>(java.lang.String name)</PRE><DL><DD><B>Deprecated.</B> <DD>Returns the value of the specified request header as a <code>String</code>. If the request did not include a header of the specified name, this method returns <code>null</code>. The header name is case insensitive. You can use this method with any request header.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>getHeader</CODE> in interface <CODE>javax.servlet.http.HttpServletRequest</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - a <code>String</code> specifying the header name<DT><B>Returns:</B><DD>a <code>String</code> containing the value of the requested header, or <code>null</code> if the request does not have a header of that name</DL></DD></DL><HR><A NAME="getHeaders(java.lang.String)"><!-- --></A><H3>getHeaders</H3><PRE>public java.util.Enumeration <B>getHeaders</B>(java.lang.String name)</PRE><DL><DD><B>Deprecated.</B> <DD>Returns all the values of the specified request header as an <code>Enumeration</code> of <code>String</code> objects. <p>Some headers, such as <code>Accept-Language</code> can be sent by clients as several headers each with a different value rather than sending the header as a comma separated list. <p>If the request did not include any headers of the specified name, this method returns an empty <code>Enumeration</code>. The header name is case insensitive. You can use this method with any request header.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>getHeaders</CODE> in interface <CODE>javax.servlet.http.HttpServletRequest</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - a <code>String</code> specifying the header name<DT><B>Returns:</B><DD>a <code>Enumeration</code> containing the values of the requested header, or <code>null</code> if the request does not have any headers of that name</DL></DD></DL><HR><A NAME="getHeaderNames()"><!-- --></A><H3>getHeaderNames</H3><PRE>public java.util.Enumeration <B>getHeaderNames</B>()</PRE><DL><DD><B>Deprecated.</B> <DD>Returns an enumeration of all the header names this request contains. If the request has no headers, this method returns an empty enumeration. <p>Some portlet containers do not allow do not allow portlets to access headers using this method, in which case this method returns <code>null</code><P><DD><DL><DT><B>Specified by:</B><DD><CODE>getHeaderNames</CODE> in interface <CODE>javax.servlet.http.HttpServletRequest</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>an enumeration of all the header names sent with this request; if the request has no headers, an empty enumeration; if the portlet container does not allow portlets to use this method, <code>null</code></DL></DD></DL><HR><A NAME="getIntHeader(java.lang.String)"><!-- --></A><H3>getIntHeader</H3><PRE>public int <B>getIntHeader</B>(java.lang.String name)</PRE><DL><DD><B>Deprecated.</B> <DD>Returns the value of the specified request header as an <code>int</code>. If the request does not have a header of the specified name, this method returns -1. If the header cannot be converted to an integer, this method throws a <code>NumberFormatException</code>. <p>The header name is case insensitive.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>getIntHeader</CODE> in interface <CODE>javax.servlet.http.HttpServletRequest</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - a <code>String</code> specifying the name of a request header<DT><B>Returns:</B><DD>an integer expressing the value of the request header or -1 if the request doesn't have a header of this name<DT><B>Throws:</B><DD><CODE>java.lang.NumberFormatException</CODE> - If the header value can't be converted to an <code>int</code></DL></DD></DL><HR><A NAME="invalidateCache()"><!-- --></A><H3>invalidateCache</H3><PRE>public void <B>invalidateCache</B>()</PRE><DL><DD><B>Deprecated.</B> <DD>Invalidates the cache for all window states, markups and locals<P><DD><DL></DL></DD><DD><DL></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> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <A HREF="#main"><FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../serialized-form.html"><FONT CLASS="NavBarFont1"><B>Serialized</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../org/apache/jetspeed/portlet/PortletLog.html" title="interface in org.apache.jetspeed.portlet"><B>PREV CLASS</B></A> <A HREF="../../../../org/apache/jetspeed/portlet/PortletResponse.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> <A HREF="PortletRequest.html" target="_top"><B>NO FRAMES</B></A> <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: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | CONSTR | <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 + -