📄 httpsession.html
字号:
<TD><CODE><B><A HREF="../../../../org/jivesoftware/openfire/http/HttpSession.html#getHold()">getHold</A></B>()</CODE><BR> Specifies the maximum number of requests the connection manager is allowed to keep waiting at any one time during the session.</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="../../../../org/jivesoftware/openfire/http/HttpSession.html#getInactivityTimeout()">getInactivityTimeout</A></B>()</CODE><BR> Returns the time, in seconds, after which this session will be considered inactive and terminated.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jivesoftware/openfire/http/HttpSession.html#getLanguage()">getLanguage</A></B>()</CODE><BR> Returns the language this session is using.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> long</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jivesoftware/openfire/http/HttpSession.html#getLastAcknowledged()">getLastAcknowledged</A></B>()</CODE><BR> Returns the highest 'rid' attribute the server has received where it has also received all requests with lower 'rid' values.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> long</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jivesoftware/openfire/http/HttpSession.html#getLastActivity()">getLastActivity</A></B>()</CODE><BR> Returns the time in milliseconds since the epoch that this session was last active.</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="../../../../org/jivesoftware/openfire/http/HttpSession.html#getMajorVersion()">getMajorVersion</A></B>()</CODE><BR> Returns the major version of BOSH which this session utilizes.</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="../../../../org/jivesoftware/openfire/http/HttpSession.html#getMaxPause()">getMaxPause</A></B>()</CODE><BR> Returns the maximum length of a temporary session pause (in seconds) that the client MAY 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="../../../../org/jivesoftware/openfire/http/HttpSession.html#getMaxPollingInterval()">getMaxPollingInterval</A></B>()</CODE><BR> Returns the max interval within which a client can send polling requests.</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="../../../../org/jivesoftware/openfire/http/HttpSession.html#getMaxRequests()">getMaxRequests</A></B>()</CODE><BR> Returns the max number of requests it is permissable for this session to have open at any one time.</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="../../../../org/jivesoftware/openfire/http/HttpSession.html#getMinorVersion()">getMinorVersion</A></B>()</CODE><BR> Returns the major version of BOSH which this session utilizes.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/security/cert/X509Certificate.html" title="class or interface in java.security.cert">X509Certificate</A>[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jivesoftware/openfire/http/HttpSession.html#getPeerCertificates()">getPeerCertificates</A></B>()</CODE><BR> Return the X509Certificates associated with this session.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jivesoftware/openfire/http/HttpSession.html#getResponse(long)">getResponse</A></B>(long requestID)</CODE><BR> </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="../../../../org/jivesoftware/openfire/http/HttpSession.html#getWait()">getWait</A></B>()</CODE><BR> Specifies the longest time (in seconds) that the connection manager is allowed to wait before responding to any request during the session.</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="../../../../org/jivesoftware/openfire/http/HttpSession.html#isClosed()">isClosed</A></B>()</CODE><BR> Returns true if this session has been closed and no longer activley accepting connections.</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="../../../../org/jivesoftware/openfire/http/HttpSession.html#isPollingSession()">isPollingSession</A></B>()</CODE><BR> Returns true if this session is a polling session.</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="../../../../org/jivesoftware/openfire/http/HttpSession.html#isSecure()">isSecure</A></B>()</CODE><BR> Returns true if all connections on this session should be secured, and false if they should not.</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="../../../../org/jivesoftware/openfire/http/HttpSession.html#pause(int)">pause</A></B>(int duration)</CODE><BR> Pauses the session for the given amount of time.</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="../../../../org/jivesoftware/openfire/http/HttpSession.html#removeSessionCloseListener(org.jivesoftware.openfire.http.SessionListener)">removeSessionCloseListener</A></B>(<A HREF="../../../../org/jivesoftware/openfire/http/SessionListener.html" title="interface in org.jivesoftware.openfire.http">SessionListener</A> listener)</CODE><BR> Removes a <A HREF="../../../../org/jivesoftware/openfire/http/SessionListener.html" title="interface in org.jivesoftware.openfire.http"><CODE>SessionListener</CODE></A> from this session.</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="../../../../org/jivesoftware/openfire/http/HttpSession.html#resetInactivityTimeout()">resetInactivityTimeout</A></B>()</CODE><BR> Resets the inactivity timeout of this session to default.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jivesoftware/openfire/http/HttpSession.html#sendPendingPackets()">sendPendingPackets</A></B>()</CODE><BR> This methods sends any pending packets in the session.</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="../../../../org/jivesoftware/openfire/http/HttpSession.html#setDefaultInactivityTimeout(int)">setDefaultInactivityTimeout</A></B>(int defaultInactivityTimeout)</CODE><BR> Sets the default inactivity timeout of this session.</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="../../../../org/jivesoftware/openfire/http/HttpSession.html#setHold(int)">setHold</A></B>(int hold)</CODE><BR> Specifies the maximum number of requests the connection manager is allowed to keep waiting at any one time during the session.</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="../../../../org/jivesoftware/openfire/http/HttpSession.html#setInactivityTimeout(int)">setInactivityTimeout</A></B>(int inactivityTimeout)</CODE><BR> Sets the time, in seconds, after which this session will be considered inactive and be be terminated.</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="../../../../org/jivesoftware/openfire/http/HttpSession.html#setLanguage(java.lang.String)">setLanguage</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> language)</CODE><BR> Sets the language this session is using.</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="../../../../org/jivesoftware/openfire/http/HttpSession.html#setLastResponseEmpty(boolean)">setLastResponseEmpty</A></B>(boolean lastResponseEmpty)</CODE><BR> lastResponseEmpty true if last response of this session is an empty body element.</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="../../../../org/jivesoftware/openfire/http/HttpSession.html#setMajorVersion(int)">setMajorVersion</A></B>(int majorVersion)</CODE><BR> Sets the major version of BOSH which the client implements.</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="../../../../org/jivesoftware/openfire/http/HttpSession.html#setMaxPause(int)">setMaxPause</A></B>(int maxPause)</CODE><BR> Sets the maximum length of a temporary session pause (in seconds) that the client MAY 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="../../../../org/jivesoftware/openfire/http/HttpSession.html#setMaxPollingInterval(int)">setMaxPollingInterval</A></B>(int maxPollingInterval)</CODE><BR> Sets the max interval within which a client can send polling requests.</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="../../../../org/jivesoftware/openfire/http/HttpSession.html#setMaxRequests(int)">setMaxRequests</A></B>(int maxRequests)</CODE><BR>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -