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

📄 session.html

📁 开源软件openfire的API文件。进行openfire的二次开发所必需的工具。
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<CODE>&nbsp;<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/session/Session.html#getServerName()">getServerName</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Obtain the name of the server this session belongs to.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jivesoftware/openfire/session/Session.html#getStatus()">getStatus</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Obtain the current status of this session.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../org/jivesoftware/openfire/StreamID.html" title="interface in org.jivesoftware.openfire">StreamID</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jivesoftware/openfire/session/Session.html#getStreamID()">getStreamID</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Obtain the stream ID associated with this sesison.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jivesoftware/openfire/session/Session.html#isClosed()">isClosed</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if the connection/session is closed.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jivesoftware/openfire/session/Session.html#isSecure()">isSecure</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if this connection is secure.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jivesoftware/openfire/session/Session.html#process(org.xmpp.packet.Packet)">process</A></B>(<A HREF="../../../../org/xmpp/packet/Packet.html" title="class in org.xmpp.packet">Packet</A>&nbsp;packet)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Process an XMPP packet.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jivesoftware/openfire/session/Session.html#validate()">validate</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Verifies that the connection is still live.</TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><A NAME="field_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>Field Detail</B></FONT></TH></TR></TABLE><A NAME="MAJOR_VERSION"><!-- --></A><H3>MAJOR_VERSION</H3><PRE>static final int <B>MAJOR_VERSION</B></PRE><DL><DD>Version of the XMPP spec supported as MAJOR_VERSION.MINOR_VERSION (e.g. 1.0).<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.jivesoftware.openfire.session.Session.MAJOR_VERSION">Constant Field Values</A></DL></DL><HR><A NAME="MINOR_VERSION"><!-- --></A><H3>MINOR_VERSION</H3><PRE>static final int <B>MINOR_VERSION</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.jivesoftware.openfire.session.Session.MINOR_VERSION">Constant Field Values</A></DL></DL><HR><A NAME="STATUS_CLOSED"><!-- --></A><H3>STATUS_CLOSED</H3><PRE>static final int <B>STATUS_CLOSED</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.jivesoftware.openfire.session.Session.STATUS_CLOSED">Constant Field Values</A></DL></DL><HR><A NAME="STATUS_CONNECTED"><!-- --></A><H3>STATUS_CONNECTED</H3><PRE>static final int <B>STATUS_CONNECTED</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.jivesoftware.openfire.session.Session.STATUS_CONNECTED">Constant Field Values</A></DL></DL><HR><A NAME="STATUS_AUTHENTICATED"><!-- --></A><H3>STATUS_AUTHENTICATED</H3><PRE>static final int <B>STATUS_AUTHENTICATED</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.jivesoftware.openfire.session.Session.STATUS_AUTHENTICATED">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="getAddress()"><!-- --></A><H3>getAddress</H3><PRE><A HREF="../../../../org/xmpp/packet/JID.html" title="class in org.xmpp.packet">JID</A> <B>getAddress</B>()</PRE><DL><DD>Obtain the address of the user. The address is used by services like the core server packet router to determine if a packet should be sent to the handler. Handlers that are working on behalf of the server should use the generic server hostname address (e.g. server.com).<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jivesoftware/openfire/RoutableChannelHandler.html#getAddress()">getAddress</A></CODE> in interface <CODE><A HREF="../../../../org/jivesoftware/openfire/RoutableChannelHandler.html" title="interface in org.jivesoftware.openfire">RoutableChannelHandler</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the address of the packet handler.</DL></DD></DL><HR><A NAME="getStatus()"><!-- --></A><H3>getStatus</H3><PRE>int <B>getStatus</B>()</PRE><DL><DD>Obtain the current status of this session.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The status code for this session</DL></DD></DL><HR><A NAME="getStreamID()"><!-- --></A><H3>getStreamID</H3><PRE><A HREF="../../../../org/jivesoftware/openfire/StreamID.html" title="interface in org.jivesoftware.openfire">StreamID</A> <B>getStreamID</B>()</PRE><DL><DD>Obtain the stream ID associated with this sesison. Stream ID's are generated by the server and should be unique and random.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>This session's assigned stream ID</DL></DD></DL><HR><A NAME="getServerName()"><!-- --></A><H3>getServerName</H3><PRE><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> <B>getServerName</B>()</PRE><DL><DD>Obtain the name of the server this session belongs to.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the server name.</DL></DD></DL><HR><A NAME="getCreationDate()"><!-- --></A><H3>getCreationDate</H3><PRE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/Date.html" title="class or interface in java.util">Date</A> <B>getCreationDate</B>()</PRE><DL><DD>Obtain the date the session was created.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the session's creation date.</DL></DD></DL><HR><A NAME="getLastActiveDate()"><!-- --></A><H3>getLastActiveDate</H3><PRE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/Date.html" title="class or interface in java.util">Date</A> <B>getLastActiveDate</B>()</PRE><DL><DD>Obtain the time the session last had activity.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The last time the session received activity.</DL></DD></DL><HR><A NAME="getNumClientPackets()"><!-- --></A><H3>getNumClientPackets</H3><PRE>long <B>getNumClientPackets</B>()</PRE><DL><DD>Obtain the number of packets sent from the client to the server.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The number of packets sent from the client to the server.</DL></DD></DL><HR>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -