📄 httpsession.httpvirtualconnection.html
字号:
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"><B>Method Summary</B></FONT></TH></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.HttpVirtualConnection.html#closeVirtualConnection()">closeVirtualConnection</A></B>()</CODE><BR> Closes the virtual connection.</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.HttpVirtualConnection.html#deliver(org.xmpp.packet.Packet)">deliver</A></B>(<A HREF="../../../../org/xmpp/packet/Packet.html" title="class in org.xmpp.packet">Packet</A> packet)</CODE><BR> Delivers the packet to this connection without checking the recipient.</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.HttpVirtualConnection.html#deliverRawText(java.lang.String)">deliverRawText</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> text)</CODE><BR> Delivers raw text to this connection.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> byte[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jivesoftware/openfire/http/HttpSession.HttpVirtualConnection.html#getAddress()">getAddress</A></B>()</CODE><BR> Returns the raw IP address of this <code>InetAddress</code> object.</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.HttpVirtualConnection.html#getHostAddress()">getHostAddress</A></B>()</CODE><BR> Returns the IP address string in textual presentation.</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.HttpVirtualConnection.html#getHostName()">getHostName</A></B>()</CODE><BR> Gets the host name for this IP address.</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/Certificate.html" title="class or interface in java.security.cert">Certificate</A>[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jivesoftware/openfire/http/HttpSession.HttpVirtualConnection.html#getPeerCertificates()">getPeerCertificates</A></B>()</CODE><BR> Returns the underlying <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/javax/security/cert/X509Certificate.html" title="class or interface in javax.security.cert"><CODE>X509Certificate</CODE></A> for the connection of the peer.</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.HttpVirtualConnection.html#systemShutdown()">systemShutdown</A></B>()</CODE><BR> Notification message indicating that the server is being shutdown.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_org.jivesoftware.openfire.net.VirtualConnection"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class org.jivesoftware.openfire.net.<A HREF="../../../../org/jivesoftware/openfire/net/VirtualConnection.html" title="class in org.jivesoftware.openfire.net">VirtualConnection</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../org/jivesoftware/openfire/net/VirtualConnection.html#addCompression()">addCompression</A>, <A HREF="../../../../org/jivesoftware/openfire/net/VirtualConnection.html#close()">close</A>, <A HREF="../../../../org/jivesoftware/openfire/net/VirtualConnection.html#getCompressionPolicy()">getCompressionPolicy</A>, <A HREF="../../../../org/jivesoftware/openfire/net/VirtualConnection.html#getLanguage()">getLanguage</A>, <A HREF="../../../../org/jivesoftware/openfire/net/VirtualConnection.html#getLocalCertificates()">getLocalCertificates</A>, <A HREF="../../../../org/jivesoftware/openfire/net/VirtualConnection.html#getMajorXMPPVersion()">getMajorXMPPVersion</A>, <A HREF="../../../../org/jivesoftware/openfire/net/VirtualConnection.html#getMinorXMPPVersion()">getMinorXMPPVersion</A>, <A HREF="../../../../org/jivesoftware/openfire/net/VirtualConnection.html#getPacketDeliverer()">getPacketDeliverer</A>, <A HREF="../../../../org/jivesoftware/openfire/net/VirtualConnection.html#getTlsPolicy()">getTlsPolicy</A>, <A HREF="../../../../org/jivesoftware/openfire/net/VirtualConnection.html#init(org.jivesoftware.openfire.session.LocalSession)">init</A>, <A HREF="../../../../org/jivesoftware/openfire/net/VirtualConnection.html#isClosed()">isClosed</A>, <A HREF="../../../../org/jivesoftware/openfire/net/VirtualConnection.html#isCompressed()">isCompressed</A>, <A HREF="../../../../org/jivesoftware/openfire/net/VirtualConnection.html#isFlashClient()">isFlashClient</A>, <A HREF="../../../../org/jivesoftware/openfire/net/VirtualConnection.html#isSecure()">isSecure</A>, <A HREF="../../../../org/jivesoftware/openfire/net/VirtualConnection.html#isUsingSelfSignedCertificate()">isUsingSelfSignedCertificate</A>, <A HREF="../../../../org/jivesoftware/openfire/net/VirtualConnection.html#registerCloseListener(org.jivesoftware.openfire.ConnectionCloseListener, java.lang.Object)">registerCloseListener</A>, <A HREF="../../../../org/jivesoftware/openfire/net/VirtualConnection.html#removeCloseListener(org.jivesoftware.openfire.ConnectionCloseListener)">removeCloseListener</A>, <A HREF="../../../../org/jivesoftware/openfire/net/VirtualConnection.html#setCompressionPolicy(org.jivesoftware.openfire.Connection.CompressionPolicy)">setCompressionPolicy</A>, <A HREF="../../../../org/jivesoftware/openfire/net/VirtualConnection.html#setFlashClient(boolean)">setFlashClient</A>, <A HREF="../../../../org/jivesoftware/openfire/net/VirtualConnection.html#setLanaguage(java.lang.String)">setLanaguage</A>, <A HREF="../../../../org/jivesoftware/openfire/net/VirtualConnection.html#setTlsPolicy(org.jivesoftware.openfire.Connection.TLSPolicy)">setTlsPolicy</A>, <A HREF="../../../../org/jivesoftware/openfire/net/VirtualConnection.html#setUsingSelfSignedCertificate(boolean)">setUsingSelfSignedCertificate</A>, <A HREF="../../../../org/jivesoftware/openfire/net/VirtualConnection.html#setXMPPVersion(int, int)">setXMPPVersion</A>, <A HREF="../../../../org/jivesoftware/openfire/net/VirtualConnection.html#startCompression()">startCompression</A>, <A HREF="../../../../org/jivesoftware/openfire/net/VirtualConnection.html#startTLS(boolean, java.lang.String, org.jivesoftware.openfire.Connection.ClientAuth)">startTLS</A>, <A HREF="../../../../org/jivesoftware/openfire/net/VirtualConnection.html#validate()">validate</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD></TR></TABLE> <P><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_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>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="HttpSession.HttpVirtualConnection(java.net.InetAddress)"><!-- --></A><H3>HttpSession.HttpVirtualConnection</H3><PRE>public <B>HttpSession.HttpVirtualConnection</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/net/InetAddress.html" title="class or interface in java.net">InetAddress</A> address)</PRE><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="closeVirtualConnection()"><!-- --></A><H3>closeVirtualConnection</H3><PRE>public void <B>closeVirtualConnection</B>()</PRE><DL><DD><B>Description copied from class: <CODE><A HREF="../../../../org/jivesoftware/openfire/net/VirtualConnection.html#closeVirtualConnection()">VirtualConnection</A></CODE></B></DD><DD>Closes the virtual connection. Subsclasses should indicate what closing a virtual connection means. At this point the session has a CLOSED state.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jivesoftware/openfire/net/VirtualConnection.html#closeVirtualConnection()">closeVirtualConnection</A></CODE> in class <CODE><A HREF="../../../../org/jivesoftware/openfire/net/VirtualConnection.html" title="class in org.jivesoftware.openfire.net">VirtualConnection</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getAddress()"><!-- --></A><H3>getAddress</H3><PRE>public byte[] <B>getAddress</B>() throws <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/net/UnknownHostException.html" title="class or interface in java.net">UnknownHostException</A></PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../org/jivesoftware/openfire/Connection.html#getAddress()">Connection</A></CODE></B></DD><DD>Returns the raw IP address of this <code>InetAddress</code> object. The result is in network byte order: the highest order byte of the address is in <code>getAddress()[0]</code>.<P><DD><DL><DT><B>Returns:</B><DD>the raw IP address of this object.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/net/UnknownHostException.html" title="class or interface in java.net">UnknownHostException</A></CODE> - if IP address of host could not be determined.</DL></DD></DL><HR><A NAME="getHostAddress()"><!-- --></A><H3>getHostAddress</H3><PRE>public <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>getHostAddress</B>() throws <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/net/UnknownHostException.html" title="class or interface in java.net">UnknownHostException</A></PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../org/jivesoftware/openfire/Connection.html#getHostAddress()">Connection</A></CODE></B></DD><DD>Returns the IP address string in textual presentation.<P><DD><DL><DT><B>Returns:</B><DD>the raw IP address in a string format.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/net/UnknownHostException.html" title="class or interface in java.net">UnknownHostException</A></CODE> - if IP address of host could not be determined.</DL></DD></DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -