📄 portletrequest.html.svn-base
字号:
<TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/portlet/PortletRequest.html#getProperty(java.lang.String)">getProperty</A></B>(java.lang.String name)</CODE><BR> Returns the value of the specified request property as a <code>String</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.util.Enumeration</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/portlet/PortletRequest.html#getPropertyNames()">getPropertyNames</A></B>()</CODE><BR> Returns a <code>Enumeration</code> of all the property names this request contains.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/portlet/PortletRequest.html#getRemoteUser()">getRemoteUser</A></B>()</CODE><BR> Returns the login of the user making this request, if the user has been authenticated, or null if the user has not been authenticated.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/portlet/PortletRequest.html#getRequestedSessionId()">getRequestedSessionId</A></B>()</CODE><BR> Returns the session ID indicated in the client request.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/portlet/PortletRequest.html#getResponseContentType()">getResponseContentType</A></B>()</CODE><BR> Returns the portal preferred content type for the response.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.util.Enumeration</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/portlet/PortletRequest.html#getResponseContentTypes()">getResponseContentTypes</A></B>()</CODE><BR> Gets a list of content types which the portal accepts for the response.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/portlet/PortletRequest.html#getScheme()">getScheme</A></B>()</CODE><BR> Returns the name of the scheme used to make this request.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/portlet/PortletRequest.html#getServerName()">getServerName</A></B>()</CODE><BR> Returns the host name of the server that received the request.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/portlet/PortletRequest.html#getServerPort()">getServerPort</A></B>()</CODE><BR> Returns the port number on which this request was received.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.security.Principal</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/portlet/PortletRequest.html#getUserPrincipal()">getUserPrincipal</A></B>()</CODE><BR> Returns a java.security.Principal object containing the name of the current authenticated user.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../javax/portlet/WindowState.html">WindowState</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/portlet/PortletRequest.html#getWindowState()">getWindowState</A></B>()</CODE><BR> Returns the current window state of the portlet.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/portlet/PortletRequest.html#isPortletModeAllowed(javax.portlet.PortletMode)">isPortletModeAllowed</A></B>(<A HREF="../../javax/portlet/PortletMode.html">PortletMode</A> mode)</CODE><BR> Returns true, if the given portlet mode is a valid one to set for this portlet in the context of the current request.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/portlet/PortletRequest.html#isRequestedSessionIdValid()">isRequestedSessionIdValid</A></B>()</CODE><BR> Checks whether the requested session ID is still valid.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/portlet/PortletRequest.html#isSecure()">isSecure</A></B>()</CODE><BR> Returns a boolean indicating whether this request was made using a secure channel between client and the portal, such as HTTPS.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/portlet/PortletRequest.html#isUserInRole(java.lang.String)">isUserInRole</A></B>(java.lang.String role)</CODE><BR> Returns a boolean indicating whether the authenticated user is included in the specified logical "role".</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/portlet/PortletRequest.html#isWindowStateAllowed(javax.portlet.WindowState)">isWindowStateAllowed</A></B>(<A HREF="../../javax/portlet/WindowState.html">WindowState</A> state)</CODE><BR> Returns true, if the given window state is valid to be set for this portlet in the context of the current request.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/portlet/PortletRequest.html#removeAttribute(java.lang.String)">removeAttribute</A></B>(java.lang.String name)</CODE><BR> Removes an attribute from this request.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/portlet/PortletRequest.html#setAttribute(java.lang.String, java.lang.Object)">setAttribute</A></B>(java.lang.String name, java.lang.Object o)</CODE><BR> Stores an attribute in this request.</TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="USER_INFO"><!-- --></A><H3>USER_INFO</H3><PRE>public static final java.lang.String <B>USER_INFO</B></PRE><DL><DD>Used to retrieve user information attributes with the <code>getAttribute</code> call. The user information is returned as a <code>Map</code> object. The portlet must define the user information attribute it is interested in inside the <code>user-attribute</code> section of the deployment descriptor. If an attribute is not supported by the current runtime system it will not show up in the user attribute map.<BR> If the user-attribute is supported by the runtime system, but not defined for a particular user, then for that user the attribute exists in the returned map and the attribute has a <code>null</code> value. <p> If the user-attribute is not defined for the current user it will not show up in the Map. <p> The value is <code>javax.portlet.userinfo</code>.</DL><HR><A NAME="BASIC_AUTH"><!-- --></A><H3>BASIC_AUTH</H3><PRE>public static final java.lang.String <B>BASIC_AUTH</B></PRE><DL><DD>String identifier for Basic authentication. Value "BASIC".</DL><HR><A NAME="FORM_AUTH"><!-- --></A><H3>FORM_AUTH</H3><PRE>public static final java.lang.String <B>FORM_AUTH</B></PRE><DL><DD>String identifier for Form based authentication. Value "FORM".</DL><HR><A NAME="CLIENT_CERT_AUTH"><!-- --></A><H3>CLIENT_CERT_AUTH</H3><PRE>public static final java.lang.String <B>CLIENT_CERT_AUTH</B></PRE><DL><DD>String identifier for Certification based authentication. Value "CLIENT_CERT".</DL><HR><A NAME="DIGEST_AUTH"><!-- --></A><H3>DIGEST_AUTH</H3><PRE>public static final java.lang.String <B>DIGEST_AUTH</B></PRE><DL><DD>String identifier for Digest based authentication. Value "DIGEST".</DL><!-- ========= CONSTRUCTOR DETAIL ======== --><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="isWindowStateAllowed(javax.portlet.WindowState)"><!-- --></A><H3>isWindowStateAllowed</H3><PRE>public boolean <B>isWindowStateAllowed</B>(<A HREF="../../javax/portlet/WindowState.html">WindowState</A> state)</PRE><DL><DD>Returns true, if the given window state is valid to be set for this portlet in the context of the current request.<DD><DL><DT><B>Parameters:</B><DD><CODE>state</CODE> - window state to checked<DT><B>Returns:</B><DD>true, if it is valid for this portlet in this request to change to the given window state</DL></DD></DL><HR><A NAME="isPortletModeAllowed(javax.portlet.PortletMode)"><!-- --></A><H3>isPortletModeAllowed</H3><PRE>public boolean <B>isPortletModeAllowed</B>(<A HREF="../../javax/portlet/PortletMode.html">PortletMode</A> mode)</PRE><DL><DD>Returns true, if the given portlet mode is a valid one to set for this portlet in the context of the current request.<DD><DL><DT><B>Parameters:</B><DD><CODE>mode</CODE> - portlet mode to check<DT><B>Returns:</B><DD>true, if it is valid for this portlet in this request to change to the given portlet mode</DL></DD></DL><HR><A NAME="getPortletMode()"><!-- --></A><H3>getPortletMode</H3><PRE>public <A HREF="../../javax/portlet/PortletMode.html">PortletMode</A> <B>getPortletMode</B>()</PRE><DL><DD>Returns the current portlet mode of the portlet.<DD><DL><DT><B>Returns:</B><DD>the portlet mode</DL></DD></DL><HR><A NAME="getWindowState()"><!-- --></A><H3>getWindowState</H3><PRE>public <A HREF="../../javax/portlet/WindowState.html">WindowState</A> <B>getWindowState</B>()</PRE><DL><DD>Returns the current window state of the portlet.<DD><DL><DT><B>Returns:</B><DD>the window state</DL></DD></DL><HR><A NAME="getPreferences()"><!-- --></A><H3>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -