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

📄 portletsession.html.svn-base

📁 portal越来越流行了
💻 SVN-BASE
📖 第 1 页 / 共 3 页
字号:
                                        session which has already been invalidated</DL></DD></DL><HR><A NAME="isNew()"><!-- --></A><H3>isNew</H3><PRE>boolean <B>isNew</B>()</PRE><DL><DD>Returns true if the client does not yet know about the session or  if the client chooses not to join the session.<P><DD><DL><DT><B>Returns:</B><DD><code>true</code> if the                                         server has created a session,                                         but the client has not joined yet.<DT><B>Throws:</B><DD><CODE>java.lang.IllegalStateException</CODE> - if this method is called on a                                        session which has already been invalidated</DL></DD></DL><HR><A NAME="removeAttribute(java.lang.String)"><!-- --></A><H3>removeAttribute</H3><PRE>void <B>removeAttribute</B>(java.lang.String&nbsp;name)</PRE><DL><DD>Removes the object bound with the specified name under the <code>PORTLET_SCOPE</code> from this session. If the session does not have an object bound with the specified name, this method does nothing.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the object to be               removed from this session in the                <code> PORTLET_SCOPE</code>.<DT><B>Throws:</B><DD><CODE>java.lang.IllegalStateException</CODE> - if this method is called on a                   session which has been invalidated<DD><CODE>java.lang.IllegalArgumentException</CODE> - if name is <code>null</code>.</DL></DD></DL><HR><A NAME="removeAttribute(java.lang.String, int)"><!-- --></A><H3>removeAttribute</H3><PRE>void <B>removeAttribute</B>(java.lang.String&nbsp;name,                     int&nbsp;scope)</PRE><DL><DD>Removes the object bound with the specified name and the given scope from this session. If the session does not have an object bound with the specified name, this method does nothing.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the object to be               removed from this session<DD><CODE>scope</CODE> - session scope of this attribute<DT><B>Throws:</B><DD><CODE>java.lang.IllegalStateException</CODE> - if this method is called on a                   session which has been invalidated<DD><CODE>java.lang.IllegalArgumentException</CODE> - if name is <code>null</code>.</DL></DD></DL><HR><A NAME="setAttribute(java.lang.String, java.lang.Object)"><!-- --></A><H3>setAttribute</H3><PRE>void <B>setAttribute</B>(java.lang.String&nbsp;name,                  java.lang.Object&nbsp;value)</PRE><DL><DD>Binds an object to this session under the <code>PORTLET_SCOPE</code>, using the name specified.   If an object of the same name in this scope is already bound to the session, that object is replaced. <p>After this method has been executed, and if the new object implements <code>HttpSessionBindingListener</code>, the container calls  <code>HttpSessionBindingListener.valueBound</code>. The container then    notifies any <code>HttpSessionAttributeListeners</code> in the web  application. <p>If an object was already bound to this session  that implements <code>HttpSessionBindingListener</code>, its  <code>HttpSessionBindingListener.valueUnbound</code> method is called. <p>If the value is <code>null</code>, this has the same effect as calling  <code>removeAttribute()</code>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the name to which the object is bound under                            the <code>PORTLET_SCOPE</code>;                                this cannot be <code>null</code>.<DD><CODE>value</CODE> - the object to be bound<DT><B>Throws:</B><DD><CODE>java.lang.IllegalStateException</CODE> - if this method is called on a                                        session which has been invalidated<DD><CODE>java.lang.IllegalArgumentException</CODE> - if name is <code>null</code>.</DL></DD></DL><HR><A NAME="setAttribute(java.lang.String, java.lang.Object, int)"><!-- --></A><H3>setAttribute</H3><PRE>void <B>setAttribute</B>(java.lang.String&nbsp;name,                  java.lang.Object&nbsp;value,                  int&nbsp;scope)</PRE><DL><DD>Binds an object to this session in the given scope, using the name specified.   If an object of the same name in this scope is already bound to the session, that object is replaced. <p>After this method has been executed, and if the new object implements <code>HttpSessionBindingListener</code>, the container calls  <code>HttpSessionBindingListener.valueBound</code>. The container then    notifies any <code>HttpSessionAttributeListeners</code> in the web  application. <p>If an object was already bound to this session  that implements <code>HttpSessionBindingListener</code>, its  <code>HttpSessionBindingListener.valueUnbound</code> method is called. <p>If the value is <code>null</code>, this has the same effect as calling  <code>removeAttribute()</code>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the name to which the object is bound;                                this cannot be <code>null</code>.<DD><CODE>value</CODE> - the object to be bound<DD><CODE>scope</CODE> - session scope of this attribute<DT><B>Throws:</B><DD><CODE>java.lang.IllegalStateException</CODE> - if this method is called on a                                        session which has been invalidated<DD><CODE>java.lang.IllegalArgumentException</CODE> - if name is <code>null</code> or scope is unknown to the container.</DL></DD></DL><HR><A NAME="setMaxInactiveInterval(int)"><!-- --></A><H3>setMaxInactiveInterval</H3><PRE>void <B>setMaxInactiveInterval</B>(int&nbsp;interval)</PRE><DL><DD>Specifies the time, in seconds, between client requests, before the  portlet container invalidates this session. A negative time indicates the session should never timeout.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>interval</CODE> - An integer specifying the number                                of seconds</DL></DD></DL><HR><A NAME="getPortletContext()"><!-- --></A><H3>getPortletContext</H3><PRE><A HREF="../../javax/portlet/PortletContext.html" title="interface in javax.portlet">PortletContext</A> <B>getPortletContext</B>()</PRE><DL><DD>Returns the portlet application context associated with this session.<P><DD><DL><DT><B>Returns:</B><DD>the portlet application context</DL></DD></DL><HR><A NAME="getAttributeMap()"><!-- --></A><H3>getAttributeMap</H3><PRE>java.util.Map&lt;java.lang.String,java.lang.Object&gt; <B>getAttributeMap</B>()</PRE><DL><DD>Returns a <code>Map</code> of the session attributes in the portlet session scope. <p> The keys are of type <code>String</code> and the values in the  returned <code>Map</code> are from type <code>Object</code>. <p> If no session attributes exist this method returns an empty <code>Map</code>.<P><DD><DL><DT><B>Returns:</B><DD>an immutable <code>Map</code> containing the session attributes in the               portlet session scope as keys and attribute values as map values, or an empty <code>Map</code>             if no session attributes exist. The keys in the             map are of type String, the values of type             Object.<DT><B>Since:</B></DT>  <DD>2.0</DD></DL></DD></DL><HR><A NAME="getAttributeMap(int)"><!-- --></A><H3>getAttributeMap</H3><PRE>java.util.Map&lt;java.lang.String,java.lang.Object&gt; <B>getAttributeMap</B>(int&nbsp;scope)</PRE><DL><DD>Returns a <code>Map</code> of the session attributes in the given session scope. <p> The keys are of type <code>String</code> and the values in the  returned <code>Map</code> are from type <code>Object</code>. <p> If no session attributes exist this method returns an empty <code>Map</code>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>scope</CODE> - session scope of this attribute<DT><B>Returns:</B><DD>an immutable <code>Map</code> containing the session attributes in the               given scope as keys and attribute values as map values, or an empty <code>Map</code>             if no session attributes exist. The keys in the             map are of type String, the values of type             Object.<DT><B>Since:</B></DT>  <DD>2.0</DD></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/PortletSession.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/PortletSecurityException.html" title="class in javax.portlet"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../javax/portlet/PortletSessionUtil.html" title="class in javax.portlet"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../index.html?javax/portlet/PortletSession.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="PortletSession.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 + -